KVSKBASalesPriceDiscCalc
Procedures
GetLinesChanged() : Boolean
Summary: This procedure is used by the codeunit KVSKBASalesPriceCalcLib to check if the lines have been changed by user and not yet transferred to sales line.
procedure GetLinesChanged(): Boolean
Returns: Returns true if the lines have been changed, otherwise false.
Remarks: The codeunit KVSKBASalesPriceCalcLib calls this procedure when user tries to leave the page with changes not yet transferred to sales line, to make sure if it needs to show the confirmation dialog or not.
Events
OnCalculateTextGlobalsOnSetTextBaseOfInitialPriceCaseElse(Record KVSKBASalesConditionHeader, Text[50]) :
Summary: Integration event raised in CalculateTextGlobals when the BaseofCalculation of the sales condition header does not match any of the handled cases.
[IntegrationEvent(false, false)]
local procedure OnCalculateTextGlobalsOnSetTextBaseOfInitialPriceCaseElse(SalesConditionHeader: Record "KVSKBASalesConditionHeader"; var TextBaseOfInitialPrice: Text[50]):
Parameters:
SalesConditionHeader: The sales condition header whose BaseofCalculation was not handled by the standard case statement.TextBaseOfInitialPrice: Text variable to be set by the subscriber to describe the base of the initial price.
Remarks: Subscribe to this event to handle custom or extended BaseofCalculation values and provide the corresponding display text for the initial price base.
OnGetConditionCaseCheckLineTypeOnBeforeCaseLineDiscount(Record KVSKBASalesConditionHeader, Option, Boolean) :
Summary: Integration event raised in GetCondition before the standard validation check for line type Line Discount is performed.
[IntegrationEvent(false, false)]
local procedure OnGetConditionCaseCheckLineTypeOnBeforeCaseLineDiscount(SalesConditionHeader: Record "KVSKBASalesConditionHeader"; LineType: Option; var IsHandled: Boolean):
Parameters:
SalesConditionHeader: The sales condition header selected by the user.LineType: The current line type of the calculation (Price or Line Discount).IsHandled: Set to true to skip the standard validation and handle it in the subscriber instead.
Remarks: Subscribe to this event to override or extend the validation logic that checks whether the selected condition header is valid for a Line Discount calculation.
OnGetConditionCaseCheckLineTypeOnBeforeCasePrice(Record KVSKBASalesConditionHeader, Option, Boolean) :
Summary: Integration event raised in GetCondition before the standard validation check for line type Price is performed.
[IntegrationEvent(false, false)]
local procedure OnGetConditionCaseCheckLineTypeOnBeforeCasePrice(SalesConditionHeader: Record "KVSKBASalesConditionHeader"; LineType: Option; var IsHandled: Boolean):
Parameters:
SalesConditionHeader: The sales condition header selected by the user.LineType: The current line type of the calculation (Price or Line Discount).IsHandled: Set to true to skip the standard validation and handle it in the subscriber instead.
Remarks: Subscribe to this event to override or extend the validation logic that checks whether the selected condition header is valid for a Price calculation.
OnGetConditionCaseCheckLineTypeCaseElse(Record KVSKBASalesConditionHeader, Option) :
Summary: Integration event raised in GetCondition when the line type does not match any of the handled cases (neither Price nor Line Discount).
[IntegrationEvent(false, false)]
local procedure OnGetConditionCaseCheckLineTypeCaseElse(SalesConditionHeader: Record "KVSKBASalesConditionHeader"; LineType: Option):
Parameters:
SalesConditionHeader: The sales condition header selected by the user.LineType: The current line type of the calculation that was not handled by the standard case statement.
Remarks: Subscribe to this event to implement validation logic for custom or extended line types that are not covered by the standard Price or Line Discount handling.
OnGetConditionOnAfterSetFilterBaseofCalculation(Record KVSKBASalesConditionHeader, Option) :
Summary: Integration event raised in GetCondition after the standard filters for BaseofCalculation and Currency Code have been applied to the sales condition header.
[IntegrationEvent(false, false)]
local procedure OnGetConditionOnAfterSetFilterBaseofCalculation(var SalesConditionHeader: Record "KVSKBASalesConditionHeader"; LineType: Option):
Parameters:
SalesConditionHeader: The sales condition header record with the standard filters already applied.LineType: The current line type of the calculation (Price or Line Discount).
Remarks: Subscribe to this event to add additional filters to the sales condition header lookup, for example to restrict conditions by custom criteria before the selection page is shown to the user.
Protected Variables
SalesCondHeader
Type: Record (KVSKBASalesConditionHeader)