KVSKBASalesPriceDiscCalcLine
Fields
| Name | Type | Note |
|---|---|---|
| Document Type | Enum Sales Document Type | |
| Document No. | Code[20] | |
| Document Line No. | Integer | |
| Line Type | Option | OptionMembers: Price,Line Discount |
| Line No. | Integer | |
| Condition No. | Code[20] | |
| Reference No. | Integer | |
| Description | Text[50] | |
| Calculation (Condition) | Enum (KVSKBAPriceCalculation) | |
| Operator (Condition) | Enum (KVSKBAPriceCalcOperator) | |
| Value (Condition) | Decimal | |
| Calculation | Enum (KVSKBAPriceCalculation) | |
| Operator | Enum (KVSKBAPriceCalcOperator) | |
| Percent | Decimal | |
| Initial Price | Decimal | |
| Currency Code (Init. Price) | Code[10] | |
| Currency Factor (Init. Price) | Decimal | |
| Exch. Rate Date (Init. Price) | Date | |
| Unit Of Measure (Init. Price) | Code[10] | |
| Qty. Per UOM (Init. Price) | Decimal | |
| Currency Code (Doc. Line) | Code[10] | |
| Currency Factor (Doc. Line) | Decimal | |
| Exchange Rate Date (Doc. Line) | Date | |
| Unit Of Measure (Doc. Line) | Code[10] | |
| Qty. Per UOM (Doc. Line) | Decimal | |
| Initial Price (Doc. Line) | Decimal | |
| Price (Doc. Line) | Decimal | |
| Amount (Doc. Line) | Decimal | |
| Result (Doc. Line) | Decimal | |
| Discount % (Doc. Line) | Decimal | |
| Result Pct. (Doc. Line) | Decimal |
Events
OnBeforeProcedureCopyInitalPriceFromSalesLine(Record KVSKBASalesPriceDiscCalcLine, Record Sales Line, Boolean) :
Summary: Event raised before copying the initial price from a sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeProcedureCopyInitalPriceFromSalesLine(var KVSKBASalesPriceDiscCalcLine: Record "KVSKBASalesPriceDiscCalcLine"; var FromSalesLine: Record "Sales Line"; var ExitStandardCode: Boolean):
Parameters:
KVSKBASalesPriceDiscCalcLine: The sales price/discount calculation line record.FromSalesLine: The source sales line record.ExitStandardCode: Set to true to skip the default logic.
Remarks: Subscribers can set ExitStandardCode to true to replace the standard copy logic with custom behaviour.
OnBeforeProcedureDeleteAllPriceFields(Record KVSKBASalesPriceDiscCalcLine, Boolean) :
Summary: Event raised before deleting all price-related fields on the calculation line.
[IntegrationEvent(false, false)]
local procedure OnBeforeProcedureDeleteAllPriceFields(var KVSKBASalesPriceDiscCalcLine: Record "KVSKBASalesPriceDiscCalcLine"; var ExitStandardCode: Boolean):
Parameters:
KVSKBASalesPriceDiscCalcLine: The sales price/discount calculation line record.ExitStandardCode: Set to true to skip the default logic.
Remarks: Subscribers can set ExitStandardCode to true to replace the standard delete logic with custom behaviour.
OnBeforeProcedureTransferFieldFromSalesCondLine(Record KVSKBASalesPriceDiscCalcLine, Record KVSKBASalesConditionHeader, Record KVSKBASalesConditionLine, Boolean) :
Summary: Event raised before transferring fields from a sales condition line to the sales price/discount calculation line.
[IntegrationEvent(false, false)]
local procedure OnBeforeProcedureTransferFieldFromSalesCondLine(var KVSKBASalesPriceDiscCalcLine: Record "KVSKBASalesPriceDiscCalcLine"; var KVSKBASalesConditionHeader: Record "KVSKBASalesConditionHeader"; var KVSKBASalesConditionLine: Record "KVSKBASalesConditionLine"; var ExitStandardCode: Boolean):
Parameters:
KVSKBASalesPriceDiscCalcLine: The sales price/discount calculation line record.KVSKBASalesConditionHeader: The sales condition header record.KVSKBASalesConditionLine: The sales condition line record.ExitStandardCode: Set to true to skip the default logic.
Remarks: Subscribers can set ExitStandardCode to true to replace the standard field transfer logic with custom behaviour.
OnAfterTransferFieldFromSalesCondLine(Record KVSKBASalesPriceDiscCalcLine, Record KVSKBASalesConditionHeader, Record KVSKBASalesConditionLine, Code[10]) :
Summary: Event raised after fields have been transferred from a sales condition line to the sales price/discount calculation line.
[IntegrationEvent(false, false)]
local procedure OnAfterTransferFieldFromSalesCondLine(var KVSKBASalesPriceDiscCalcLine: Record "KVSKBASalesPriceDiscCalcLine"; KVSKBASalesConditionHeader: Record "KVSKBASalesConditionHeader"; KVSKBASalesConditionLine: Record "KVSKBASalesConditionLine"; LanguageCode: Code[10]):
Parameters:
KVSKBASalesPriceDiscCalcLine: The sales price/discount calculation line record.KVSKBASalesConditionHeader: The sales condition header record.KVSKBASalesConditionLine: The sales condition line record.LanguageCode: The language code used during the transfer.
Remarks: Use this event to apply additional field assignments or post-processing after the standard transfer logic has run.