KVSKBASalesPriceWkshCalc
Events
OnCalculateTextGlobalsOnSetTextBaseOfInitialPriceCaseElse(Record KVSKBASalesConditionHeader, Text[50]) :
Summary: Calculates the text to be shown for the base of initial price in case it is not one of the standard ones.
[IntegrationEvent(false, false)]
local procedure OnCalculateTextGlobalsOnSetTextBaseOfInitialPriceCaseElse(SalesConditionHeader: Record "KVSKBASalesConditionHeader"; var TextBaseOfInitialPrice: Text[50]):
Parameters:
SalesConditionHeader: The sales condition header record.TextBaseOfInitialPrice: The text to be shown for the base of initial price.
Remarks: The event subscribers should set the TextBaseOfInitialPrice parameter based on the SalesConditionHeader.BaseofCalculation value.
OnGetConditionOnAfterSetFilterSalesCondHeader(Record KVSKBASalesConditionHeader, Record KVSKBASalesPriceWorksheet) :
OBSOLETE
This Element will be removed or changed with a future Version of the App.
Summary: Invoked after the standard filtering is applied on the sales condition header record in the Get Condition function.
[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnGetConditionOnAfterSetFilterSalesCondHeader(var SalesConditionHeader: Record "KVSKBASalesConditionHeader"; SalesPriceWorksheet: Record "KVSKBASalesPriceWorksheet"):
Parameters:
SalesConditionHeader: The sales condition header record which is filtered and will be used to get the condition lines.SalesPriceWorksheet: The sales price worksheet record which is used as filter criteria for the sales condition header record.
Remarks: The event subscribers can use this event to perform additional actions after the standard filtering is applied.
OnGetConditionOnBeforeCheckBaseofCalculation(Record KVSKBASalesConditionHeader, Boolean) :
Summary: Invoked before checking the base of calculation field value of the sales condition header record in the Get Condition function.
[IntegrationEvent(false, false)]
local procedure OnGetConditionOnBeforeCheckBaseofCalculation(SalesConditionHeader: Record "KVSKBASalesConditionHeader"; var IsHandled: Boolean):
Parameters:
SalesConditionHeader: The sales condition header record which is filtered and will be used to get the condition lines.IsHandled: Indicates whether the event is handled.
Remarks: The event subscribers can use this event to handle the base of calculation check by themselves. If the event is handled, the standard base of calculation check will be skipped.
OnBeforeCalcSalesPriceOnGetCondition(Record KVSKBASalesConditionHeader, Boolean) :
Summary: Invoked before calculating the initial price for the sales price calculation in the Get Condition function.
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcSalesPriceOnGetCondition(SalesConditionHeader: Record "KVSKBASalesConditionHeader"; var IsHandled: Boolean):
Parameters:
SalesConditionHeader: The sales condition header record which is filtered and will be used to get the condition lines.IsHandled: Indicates whether the event is handled.
Remarks: The event subscribers can use this event to handle the initial price calculation by themselves. If the event is handled, the standard initial price calculation will be skipped.