Codeunit "Price Calc. - Avg. Cost ACCAP"
ID 70345281
Namespace: CapVision.Finance.WeightedAverageCost.Pricing
Implements
- Microsoft.Pricing.Calculation."Price Calculation"
Methods
GetLine
procedure GetLine(var Line: Variant)
Parameters
| Name |
Type |
Description |
|
Line
|
Variant |
|
Init
procedure Init(NewLineWithPrice: Interface "Line With Price", PriceCalculationSetup: Record "Price Calculation Setup")
Parameters
| Name |
Type |
Description |
|
NewLineWithPrice
|
Microsoft.Pricing.PriceList."Line With Price" |
|
|
PriceCalculationSetup
|
Record "Price Calculation Setup" |
|
ApplyDiscount
procedure ApplyDiscount()
ApplyPrice
procedure ApplyPrice(CalledByFieldNo: Integer)
Parameters
| Name |
Type |
Description |
|
CalledByFieldNo
|
Integer |
|
CountDiscount
procedure CountDiscount(ShowAll: Boolean): Integer
Parameters
| Name |
Type |
Description |
|
ShowAll
|
Boolean |
|
Returns
CountPrice
procedure CountPrice(ShowAll: Boolean): Integer
Parameters
| Name |
Type |
Description |
|
ShowAll
|
Boolean |
|
Returns
FindDiscount
procedure FindDiscount(var TempPriceListLine: Record "Price List Line", ShowAll: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
TempPriceListLine
|
Record "Price List Line" |
|
|
ShowAll
|
Boolean |
|
Returns
FindPrice
procedure FindPrice(var TempPriceListLine: Record "Price List Line", ShowAll: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
TempPriceListLine
|
Record "Price List Line" |
|
|
ShowAll
|
Boolean |
|
Returns
IsDiscountExists
procedure IsDiscountExists(ShowAll: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
ShowAll
|
Boolean |
|
Returns
IsPriceExists
procedure IsPriceExists(ShowAll: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
ShowAll
|
Boolean |
|
Returns
PickDiscount
PickPrice
ShowPrices
procedure ShowPrices(var TempPriceListLine: Record "Price List Line")
Parameters
| Name |
Type |
Description |
|
TempPriceListLine
|
Record "Price List Line" |
|
FindLines
procedure FindLines(AmountType: Enum "Price Amount Type", var TempPriceListLine: Record "Price List Line" temporary, var PriceCalculationBufferMgt: Codeunit "Price Calculation Buffer Mgt.", ShowAll: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
AmountType
|
Microsoft.Pricing.PriceList."Price Amount Type" |
|
|
TempPriceListLine
|
Record "Price List Line" temporary |
|
|
PriceCalculationBufferMgt
|
Microsoft.Pricing.Calculation."Price Calculation Buffer Mgt." |
|
|
ShowAll
|
Boolean |
|
Returns
CopyLinesBySource
procedure CopyLinesBySource(var PriceListLine: Record "Price List Line", PriceSource: Record "Price Source" temporary, var PriceAssetList: Codeunit "Price Asset List", var TempPriceListLine: Record "Price List Line" temporary): Boolean
Parameters
| Name |
Type |
Description |
|
PriceListLine
|
Record "Price List Line" |
|
|
PriceSource
|
Record "Price Source" temporary |
|
|
PriceAssetList
|
Microsoft.Pricing.Asset."Price Asset List" |
|
|
TempPriceListLine
|
Record "Price List Line" temporary |
|
Returns
CopyLinesBySource
procedure CopyLinesBySource(var PriceListLine: Record "Price List Line", PriceSource: Record "Price Source" temporary, PriceAsset: Record "Price Asset" temporary, var TempPriceListLine: Record "Price List Line" temporary): Boolean
Parameters
| Name |
Type |
Description |
|
PriceListLine
|
Record "Price List Line" |
|
|
PriceSource
|
Record "Price Source" temporary |
|
|
PriceAsset
|
Record "Price Asset" temporary |
|
|
TempPriceListLine
|
Record "Price List Line" temporary |
|
Returns
Events
OnIsDisabled
[IntegrationEvent(False,False)]
local procedure OnIsDisabled(var Disabled: Boolean)
Parameters
| Name |
Type |
Description |
|
Disabled
|
Boolean |
|
See also