KVSKBAPostedServPriceDiscCalc
Procedures
Set(Record Service Header, Record Service Line, Enum KVSKBAPostedServiceDocType, Code[20], Integer, Enum KVSKBAPriceDiscLineType) :
Summary: Init the page record values
procedure Set(NewServiceHeader: Record "Service Header"; NewServiceLine: Record "Service Line"; NewPostedServiceDocType: Enum "KVSKBAPostedServiceDocType"; NewDocumentNo: Code[20]; NewDocumentLineNo: Integer; NewPriceDiscLineLineType: Enum "KVSKBAPriceDiscLineType"):
Parameters:
NewServiceHeader: Record to copy values fromNewServiceLine: Record to copy values fromNewPostedServiceDocType: New Posted Service Doc. TypeNewDocumentNo: New Document No.NewDocumentLineNo: New Document Line No.NewPriceDiscLineLineType: New Price Discount Line Type
Remarks: This procedure initializes the page record values based on the provided parameters, setting up the necessary context for displaying posted service price and discount calculations.
Events
OnCalculateTextGlobalsOnSetTextBaseOfInitialPriceCaseElse(Record KVSKBASalesConditionHeader, Text[50]) :
Summary: Integration event that allows subscribers to customize the behavior when setting the text base of the initial price in the CalculateTextGlobals procedure.
[IntegrationEvent(false, false)]
local procedure OnCalculateTextGlobalsOnSetTextBaseOfInitialPriceCaseElse(SalesConditionHeader: Record "KVSKBASalesConditionHeader"; var TextBaseOfInitialPrice: Text[50]):
Parameters:
SalesConditionHeader: System.Object[]TextBaseOfInitialPrice: The text base of the initial price that can be modified by subscribers.
Remarks: This event is raised when the CalculateTextGlobals procedure encounters a case that is not explicitly handled. Subscribers can use this event to provide custom logic for determining the text base of the initial price based on the sales condition header.