Codeunit "Std. Item Jnl. Line - Price"

ID 7027
Namespace: Microsoft.Inventory.Journal

Implements

Methods

GetTableNo

procedure GetTableNo(): Integer

Returns

Type Description
Integer

SetLine

procedure SetLine(PriceType: Enum "Price Type", Line: Variant)

Parameters

Name Type Description
PriceType Enum Microsoft.Pricing.PriceList."Price Type"
Line Variant

SetLine

procedure SetLine(PriceType: Enum "Price Type", Header: Variant, Line: Variant)

Parameters

Name Type Description
PriceType Enum Microsoft.Pricing.PriceList."Price Type"
Header Variant
Line Variant

SetSources

procedure SetSources(var NewPriceSourceList: Codeunit "Price Source List")

Parameters

Name Type Description
NewPriceSourceList Codeunit Microsoft.Pricing.Source."Price Source List"

GetLine

procedure GetLine(var Line: Variant)

Parameters

Name Type Description
Line Variant

GetLine

procedure GetLine(var Header: Variant, var Line: Variant)

Parameters

Name Type Description
Header Variant
Line Variant

GetPriceType

procedure GetPriceType(): Enum "Price Type"

Returns

Type Description
Enum Microsoft.Pricing.PriceList."Price Type"

IsPriceUpdateNeeded

procedure IsPriceUpdateNeeded(AmountType: Enum "Price Amount Type", FoundPrice: Boolean, CalledByFieldNo: Integer): Boolean

Parameters

Name Type Description
AmountType Enum Microsoft.Pricing.PriceList."Price Amount Type"
FoundPrice Boolean
CalledByFieldNo Integer

Returns

Type Description
Boolean

IsDiscountAllowed

procedure IsDiscountAllowed(): Boolean

Returns

Type Description
Boolean

Verify

procedure Verify()

SetAssetSourceForSetup

procedure SetAssetSourceForSetup(var DtldPriceCalculationSetup: Record "Dtld. Price Calculation Setup"): Boolean

Parameters

Name Type Description
DtldPriceCalculationSetup Table Microsoft.Pricing.Calculation."Dtld. Price Calculation Setup"

Returns

Type Description
Boolean

GetAssetType

procedure GetAssetType(): Enum "Price Asset Type"

Returns

Type Description
Enum Microsoft.Pricing.Asset."Price Asset Type"

CopyToBuffer

procedure CopyToBuffer(var PriceCalculationBufferMgt: Codeunit "Price Calculation Buffer Mgt."): Boolean

Parameters

Name Type Description
PriceCalculationBufferMgt Codeunit Microsoft.Pricing.Calculation."Price Calculation Buffer Mgt."

Returns

Type Description
Boolean

SetPrice

procedure SetPrice(AmountType: Enum "Price Amount Type", PriceListLine: Record "Price List Line")

Parameters

Name Type Description
AmountType Enum Microsoft.Pricing.PriceList."Price Amount Type"
PriceListLine Table Microsoft.Pricing.PriceList."Price List Line"

ValidatePrice

procedure ValidatePrice(AmountType: Enum "Price Amount Type")

Parameters

Name Type Description
AmountType Enum Microsoft.Pricing.PriceList."Price Amount Type"

Update

procedure Update(AmountType: Enum "Price Amount Type")

Parameters

Name Type Description
AmountType Enum Microsoft.Pricing.PriceList."Price Amount Type"

Events

OnAfterFillBuffer

[IntegrationEvent(False,False)]
local procedure OnAfterFillBuffer(var PriceCalculationBuffer: Record "Price Calculation Buffer" temporary, StandardItemJournalLine: Record "Standard Item Journal Line")

Parameters

Name Type Description
PriceCalculationBuffer Table Microsoft.Pricing.Calculation."Price Calculation Buffer"
StandardItemJournalLine Table Microsoft.Inventory.Journal."Standard Item Journal Line"

OnAfterIsPriceUpdateNeeded

[IntegrationEvent(False,False)]
local procedure OnAfterIsPriceUpdateNeeded(AmountType: Enum "Price Amount Type", FoundPrice: Boolean, CalledByFieldNo: Integer, StandardItemJournalLine: Record "Standard Item Journal Line", var Result: Boolean)

Parameters

Name Type Description
AmountType Enum Microsoft.Pricing.PriceList."Price Amount Type"
FoundPrice Boolean
CalledByFieldNo Integer
StandardItemJournalLine Table Microsoft.Inventory.Journal."Standard Item Journal Line"
Result Boolean

OnAfterSetPrice

[IntegrationEvent(False,False)]
local procedure OnAfterSetPrice(var StandardItemJournalLine: Record "Standard Item Journal Line", PriceListLine: Record "Price List Line", AmountType: Enum "Price Amount Type")

Parameters

Name Type Description
StandardItemJournalLine Table Microsoft.Inventory.Journal."Standard Item Journal Line"
PriceListLine Table Microsoft.Pricing.PriceList."Price List Line"
AmountType Enum Microsoft.Pricing.PriceList."Price Amount Type"

OnBeforeSetPrice

[IntegrationEvent(False,False)]
local procedure OnBeforeSetPrice(var StandardItemJournalLine: Record "Standard Item Journal Line", PriceListLine: Record "Price List Line", AmountType: Enum "Price Amount Type", var IsHandled: Boolean, CurrPriceType: Enum "Price Type")

Parameters

Name Type Description
StandardItemJournalLine Table Microsoft.Inventory.Journal."Standard Item Journal Line"
PriceListLine Table Microsoft.Pricing.PriceList."Price List Line"
AmountType Enum Microsoft.Pricing.PriceList."Price Amount Type"
IsHandled Boolean
CurrPriceType Enum Microsoft.Pricing.PriceList."Price Type"

See also