OnAfterGetLinePriceFromPriceList Event
Raised after the line amount for a contract line is calculated, based on the unit price and line discount fetched via the sales price functionality.
Unit price, line discount and line amount are always calculated "on the fly" for normal contract lines, i.e. not contract unique prices, and not stored in the database. The event can be used to modify the calculated unit price, line discount and line amount.
Note that the event is not raised for contract unique prices.
Signature
[IntegrationEvent(false, false)]
OnAfterGetLinePriceFromPriceList(ContractLine: Record "QWEPR Contract Line"; var UnitPrice: Decimal; var LineDiscPercent: Decimal; var LineAmount: Decimal; PriceCalculationDate: Date; var IsHandled: Boolean)
Parameters
ContractLine Record "QWEPR Contract Line"
The contract line that the price is calculated for.
var UnitPrice Decimal
The unit price fetched from the price calculation functionality.
var LineDiscPercent Decimal
The line discount fetched from the price calculation functionality.
var LineAmount Decimal
The amount calculated from UnitPrice, LineDiscPercent and quantity of the ContractLine.
PriceCalculationDate Date
The date to used to for the UnitPrice and LineDiscPercent.
var IsHandled Boolean
Should be honored if already set. (Handled Pattern)
This documentation is generated from Parrot v27.0