KVSKBAServPriceDiscCalcArchive
Procedures
Set(Record Service Line Archive, Enum KVSKBAPriceDiscLineType) :
Summary: Initializes the page with the given service line archive record and price/discount line type, and calculates the lines to show on the page based on that.
procedure Set(NewServiceLineArchive: Record "Service Line Archive"; NewPriceDiscLineLineType: Enum "KVSKBAPriceDiscLineType"):
Parameters:
NewServiceLineArchive: The service line archive record to initialize the page with.NewPriceDiscLineLineType: The price/discount line type to initialize the page with.
Remarks: This procedure is called from the Service Line Details page when navigating to the Service Price/Discount Calc. Archive page, passing the service line archive record and price/discount line type of the line for which the user wants to see the price/discount calculation details. The procedure sets the global variables ServiceLineArchive and PriceDiscLineType based on the passed parameters, and then calculates the lines to show on the page by calling the GetLines procedure.
Events
OnCalculateTextGlobalsOnSetTextBaseOfInitialPriceCaseElse(Record KVSKBASalesConditionHeader, Text[50]) :
Summary: This event is raised when calculating the text to show for the global variable GlobalTextBaseOfInitialPrice in the case when the Base of Calculation is not any of the handled cases in the CalculateTextGlobals procedure.
[IntegrationEvent(false, false)]
local procedure OnCalculateTextGlobalsOnSetTextBaseOfInitialPriceCaseElse(SalesConditionHeader: Record "KVSKBASalesConditionHeader"; var TextBaseOfInitialPrice: Text[50]):
Parameters:
SalesConditionHeader: The sales condition header record for which the text is being calculated.TextBaseOfInitialPrice: The text that is being calculated to show as the base of initial price, which is used as caption for the initial price field on the page.
Remarks: Subscribers can use this event to set the text to show for the base of initial price in the case when the Base of Calculation is not any of the handled cases in the CalculateTextGlobals procedure.