Codeunit 70624443 EOS051 Price List Mgt.

Codeunit 70624443 EOS051 Price List Mgt.

Methods

ConvertUnitPrice

procedure ConvertUnitPrice(var SalesLine: Record "Sales Line"; Direction: Integer)

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • Direction Integer


ConvertUnitPrice

procedure ConvertUnitPrice(var PurchaseLine: Record "Purchase Line"; Direction: Integer)

Parameters / Return Value

  • PurchaseLine Record "Purchase Line"

  • Direction Integer


Events

OnSalesLinePriceOnConvertUnitPrice

local procedure OnSalesLinePriceOnConvertUnitPrice(var SalesLine: Record "Sales Line"; Direction: Integer)

Raised when converting the unit prices based on calculation method.

Parameters / Return Value

  • SalesLine Record "Sales Line"

    The document line.

  • Direction Integer

    0: the unit price is used to calculate the secondary unit price. 1: the secondary unit price is used to calculate the unit price.


OnSalesLinePriceOnAfterSetPrice

local procedure OnSalesLinePriceOnAfterSetPrice(var SalesLine: Record "Sales Line"; PriceListLine: Record "Price List Line"; AmountType: Enum "Price Amount Type")

Raised after retrieving the price (which is always saved in the Unit Price field) from the price list.

Parameters / Return Value

  • SalesLine Record "Sales Line"

    The document line

  • PriceListLine Record "Price List Line"

    The retrieved price list line

  • AmountType Enum "Price Amount Type"

    The amount type


OnBeforeConvertSalesPrice

local procedure OnBeforeConvertSalesPrice(var SalesLine: Record "Sales Line"; Direction: Integer; var IsHandled: Boolean)

Raised before converting the unit price on the given sales line.

Parameters / Return Value

  • SalesLine Record "Sales Line"

    The document line.

  • Direction Integer

    0: the unit price is used to calculate the secondary unit price. 1: the secondary unit price is used to calculate the unit price.

  • IsHandled Boolean

    If true, skips the standard business logic.


OnBeforeUpdateUnitPrice

local procedure OnBeforeUpdateUnitPrice(var Rec: Record "Sales Line"; CurrFieldNo: Integer; var IsHandled: Boolean)

Raised before updating the unit price on the given sales line.

Parameters / Return Value

  • Rec Record "Sales Line"

    The sales line.

  • CurrFieldNo Integer

    Standard parameter.

  • IsHandled Boolean

    If true, skips the standard business logic.


OnPurchaseLinePriceOnConvertUnitPrice

local procedure OnPurchaseLinePriceOnConvertUnitPrice(var PurchaseLine: Record "Purchase Line"; Direction: Integer)

Raised when converting the unit prices based on calculation method.

Parameters / Return Value

  • PurchaseLine Record "Purchase Line"

    The document line.

  • Direction Integer

    0: the unit price is used to calculate the secondary unit price. 1: the secondary unit price is used to calculate the unit price.


OnPurchaseLinePriceOnAfterSetPrice

local procedure OnPurchaseLinePriceOnAfterSetPrice(var PurchaseLine: Record "Purchase Line"; PriceListLine: Record "Price List Line"; AmountType: Enum "Price Amount Type")

Raised after retrieving the price (which is always saved in the Unit Price field) from the price list.

Parameters / Return Value

  • PurchaseLine Record "Purchase Line"

    The document line

  • PriceListLine Record "Price List Line"

    The retrieved price list line

  • AmountType Enum "Price Amount Type"

    The amount type


OnBeforeConvertPurchPrice

local procedure OnBeforeConvertPurchPrice(var PurchaseLine: Record "Purchase Line"; Direction: Integer; var IsHandled: Boolean)

Raised before converting the unit price on the given purchase line.

Parameters / Return Value

  • PurchaseLine Record "Purchase Line"

    The document line.

  • Direction Integer

    0: the unit price is used to calculate the secondary unit price. 1: the secondary unit price is used to calculate the unit price.

  • IsHandled Boolean

    If true, skips the standard business logic.


OnBeforeUpdateDirectUnitCost

local procedure OnBeforeUpdateDirectUnitCost(var Rec: Record "Purchase Line"; CurrFieldNo: Integer; var IsHandled: Boolean)

Raised before updating the direct unit cost on the given purchase line.

Parameters / Return Value

  • Rec Record "Purchase Line"

    The purchase line.

  • CurrFieldNo Integer

    Standard parameter.

  • IsHandled Boolean

    If true, skips the standard business logic.


OnCaseSalesLinePriceCalcMethod_OnAfterFillBuffer

local procedure OnCaseSalesLinePriceCalcMethod_OnAfterFillBuffer(var PriceCalculationBuffer: Record "Price Calculation Buffer"; SalesLine: Record "Sales Line")

Raised after case on “EOS051 Sales Pr. Calc. Method” field in the subscriber OnAfterFillBuffer on Sales Line - Price.

Parameters / Return Value

  • PriceCalculationBuffer Record "Price Calculation Buffer"

    Record “Price Calculation Buffer”

  • SalesLine Record "Sales Line"

    Record “Sales Line”


OnCasePurchLinePriceCalcMethod_OnAfterFillBuffer

local procedure OnCasePurchLinePriceCalcMethod_OnAfterFillBuffer(var PriceCalculationBuffer: Record "Price Calculation Buffer"; PurchaseLine: Record "Purchase Line")

Raised after case on “EOS051 Purch. Pr. Calc. Method” field in the subscriber OnAfterFillBuffer on Purchase Line - Price.

Parameters / Return Value

  • PriceCalculationBuffer Record "Price Calculation Buffer"

    Record “Price Calculation Buffer”

  • PurchaseLine Record "Purchase Line"

    Record Purchase Line



EOS Labs -