KVSADICrossRefSelection
Procedures
SetSales(Record Sales Line) :
Summary: Sets the page context to Sales and copies the provided Sales Line data.
procedure SetSales(orgsalesLine: Record "Sales Line"):
Parameters:
orgsalesLine: The Sales Line record to be used as the source for additional items selection
SetPurchase(Record Purchase Line) :
Summary: Sets the page context to Purchases and copies the provided Purchase Line data. Maps relevant purchase line fields to sales line fields for display purposes.
procedure SetPurchase(orgpurchLine: Record "Purchase Line"):
Parameters:
orgpurchLine: The Purchase Line record to be used as the source for additional items selection
SetTempRecord(Record KVSADIAdditionalItem) :
Summary: Populates the temporary table with additional item records from the provided record set. Used to initialize the page with existing additional items data.
procedure SetTempRecord(var additionalItem: Record "KVSADIAdditionalItem"):
Parameters:
additionalItem: The source record set containing additional items to be copied to the temporary table
GetTempRecord(Record KVSADIAdditionalItem) :
Summary: Retrieves all records from the temporary table and copies them to the provided record set. Used to extract the modified additional items data from the page.
procedure GetTempRecord(var additionalItem: Record "KVSADIAdditionalItem"):
Parameters:
additionalItem: The target record set that will receive the additional items data from the temporary table
CalcInfoData() :
Summary: Calculates and prepares information data for the current additional item record. Initializes sales line information based on the source sales line and current additional item details.
procedure CalcInfoData():