Codeunit 18004270 EOS037 Calculation Mgt.
Codeunit 18004270 EOS037 Calculation Mgt.
Methods
CalcLineDiscByPriority
procedure CalcLineDiscByPriority(ItemNo: Code[20]; var SalesLineDisc: Record "Sales Line Discount"; Qty: Decimal; QtyPerUOM: Decimal)
Parameters / Return Value
ItemNo
Code[20]
SalesLineDisc
Record "Sales Line Discount"
Qty
Decimal
QtyPerUOM
Decimal
Events
OnAfterFindPurchLineLineDisc
local procedure OnAfterFindPurchLineLineDisc(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var BestPurchLineDisc: Record "Purchase Line Discount")
Raised after retrieving the best purchase line discount, according to the priority calculation settings.
Parameters / Return Value
PurchaseLine
Record "Purchase Line"
The purchase line.
PurchaseHeader
Record "Purchase Header"
The purchase header.
BestPurchLineDisc
Record "Purchase Line Discount"
The retrieved purchase line discount.
OnAfterFindSalesLineLineDisc
local procedure OnAfterFindSalesLineLineDisc(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var TempSalesLineDiscount: Record "Sales Line Discount")
Raised after retriving the best sales line discount, according to the priority calculation settings.
Parameters / Return Value
SalesLine
Record "Sales Line"
Sales lines
SalesHeader
Record "Sales Header"
Sales Header
TempSalesLineDiscount
Record "Sales Line Discount"
Retrieved sales line discount
OnBeforeOnAfterAddSources
local procedure OnBeforeOnAfterAddSources(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PriceType: Enum "Price Type"; var PriceSourceList: Codeunit "Price Source List"; var IsHandled: Boolean)
Raised after standard method for add sources
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
PriceType
Enum "Price Type"
PriceSourceList
Codeunit "Price Source List"
IsHandled
Boolean
OnAfterOnAfterAddSources
local procedure OnAfterOnAfterAddSources(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PriceType: Enum "Price Type"; var PriceSourceList: Codeunit "Price Source List")
Raised After DDD’s method for add sources
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
PriceType
Enum "Price Type"
PriceSourceList
Codeunit "Price Source List"
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.