KVSKBAUpgradeFeaturePriceCalc
Procedures
CopyFrom(Record KVSKBASalesPrice, Record Price List Line) :
Summary: Copies the sales price data from KVSKBASalesPrice table to Price List Line table.
procedure CopyFrom(var KVSKBASalesPrice: Record "KVSKBASalesPrice"; var PriceListLine: Record "Price List Line"):
Parameters:
KVSKBASalesPrice: The record of the sales price to copy.PriceListLine: The record of the price list line to update.
Remarks: During the copy, it will also do consistency check on the sales price data. If the data is not consistent, it will not be copied to Price List Line table.
CopyFrom(Record KVSKBASalesLineDiscount, Record Price List Line) :
Summary: Copies the sales line discount data from KVSKBASalesLineDiscount table to Price List Line table.
procedure CopyFrom(var KVSKBASalesLineDiscount: Record "KVSKBASalesLineDiscount"; var PriceListLine: Record "Price List Line"):
Parameters:
KVSKBASalesLineDiscount: The record of the sales line discount to copy.PriceListLine: The record of the price list line to update.
Remarks: During the copy, it will also do consistency check on the sales line discount data. If the data is not consistent, it will not be copied to Price List Line table.
CopyFrom(Record KVSKBAPurchasePrice, Record Price List Line) :
Summary: Copies the purchase price data from KVSKBAPurchasePrice table to Price List Line table.
procedure CopyFrom(var KVSKBAPurchasePrice: Record "KVSKBAPurchasePrice"; var PriceListLine: Record "Price List Line"):
Parameters:
KVSKBAPurchasePrice: The record of the purchase price to copy.PriceListLine: The record of the price list line to update.
Remarks: During the copy, it will also do consistency check on the purchase price data. If the data is not consistent, it will not be copied to Price List Line table.
CopyFrom(Record KVSKBAPurchaseLineDiscount, Record Price List Line) :
Summary: Copies the purchase line discount data from KVSKBAPurchaseLineDiscount table to Price List Line table.
procedure CopyFrom(var KVSKBAPurchaseLineDiscount: Record "KVSKBAPurchaseLineDiscount"; var PriceListLine: Record "Price List Line"):
Parameters:
KVSKBAPurchaseLineDiscount: The record of the purchase line discount to copy.PriceListLine: The record of the price list line to update.
Remarks: During the copy, it will also do consistency check on the purchase line discount data. If the data is not consistent, it will not be copied to Price List Line table.
SetGenerateHeader(Boolean) :
Summary: Sets the flag to determine whether to generate header when inserting price list line, and also determines the way to generate header when the flag is set. If UseDefault is true, the header will be generated based on default price list code; otherwise, the header will be generated based on the combination of dimensions like source type, source no., date, etc.
procedure SetGenerateHeader(UseDefault: Boolean):
Parameters:
UseDefault: The flag to determine the way to generate header when generating header is needed.
InitLineNo(Record Price List Line) :
Summary: Initializes the line number for the price list line. If the record is temporary, it will initialize the line number to 10000 to make sure the line number is not 0; if the record is not temporary, it will set the line number based on the existing lines with the same price list code.
procedure InitLineNo(var PriceListLine: Record "Price List Line"):
Parameters:
PriceListLine: The record of the price list line to initialize line number.
Remarks: When the record is not temporary, it will find the existing lines with the same price list code and set the line number to the max line number + 10000. This is to make sure the new line number is greater than existing line numbers, and also leaves gap between line numbers for future insertions.
Events
OnAfterCountRecords(Record Document Entry) :
[IntegrationEvent(false, false)]
local procedure OnAfterCountRecords(var TempDocumentEntry: Record "Document Entry" temporary):
OnAfterGetListOfTables(Text) :
[IntegrationEvent(false, false)]
local procedure OnAfterGetListOfTables(var Result: Text):
OnAfterUpdateData(Record Feature Data Update Status, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnAfterUpdateData(FeatureDataUpdateStatus: Record "Feature Data Update Status"; var IsHandled: Boolean):
OnBeforeChangePurchaseSetup(Record Feature Data Update Status, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeChangePurchaseSetup(FeatureDataUpdateStatus: Record "Feature Data Update Status"; var IsHandled: Boolean):
OnBeforeInitLineNo(Record Price List Line, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeInitLineNo(var PriceListLine: Record "Price List Line"; var IsHandled: Boolean):
OnBeforeChangePurchaseDocumentandMasterDataPriceCalcMethod(Record Feature Data Update Status, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeChangePurchaseDocumentandMasterDataPriceCalcMethod(FeatureDataUpdateStatus: Record "Feature Data Update Status"; var IsHandled: Boolean):
OnBeforeChangeSalesDocumentandMasterDataPriceCalcMethod(Record Feature Data Update Status, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeChangeSalesDocumentandMasterDataPriceCalcMethod(FeatureDataUpdateStatus: Record "Feature Data Update Status"; var IsHandled: Boolean):
OnBeforeChangeSalesSetup(Record Feature Data Update Status, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeChangeSalesSetup(FeatureDataUpdateStatus: Record "Feature Data Update Status"; var IsHandled: Boolean):
OnBeforeFindHeader(Record Price List Line, Record Price List Header) :
[IntegrationEvent(false, false)]
local procedure OnBeforeFindHeader(PriceListLine: Record "Price List Line"; var PriceListHeader: Record "Price List Header"):
OnBeforeInsertHeader(Record Price List Line, Record Price List Header) :
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertHeader(PriceListLine: Record "Price List Line"; var PriceListHeader: Record "Price List Header"):
OnBeforeUodate(Record Feature Data Update Status, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeUodate(FeatureDataUpdateStatus: Record "Feature Data Update Status"; var IsHandled: Boolean):
OnCopyFromPurchLineDiscount(Record KVSKBAPurchaseLineDiscount, Record Price List Line) :
[IntegrationEvent(false, false)]
local procedure OnCopyFromPurchLineDiscount(KVSKBAPurchaseLineDiscount: Record "KVSKBAPurchaseLineDiscount"; var PriceListLine: Record "Price List Line"):
OnCopyFromPurchasePrice(Record KVSKBAPurchasePrice, Record Price List Line) :
[IntegrationEvent(false, false)]
local procedure OnCopyFromPurchasePrice(KVSKBAPurchasePrice: Record "KVSKBAPurchasePrice"; var PriceListLine: Record "Price List Line"):
OnCopyFromPurchasePriceOnCaseElseType(Record KVSKBAPurchasePrice, Record Price List Line) :
[IntegrationEvent(false, false)]
local procedure OnCopyFromPurchasePriceOnCaseElseType(KVSKBAPurchasePrice: Record "KVSKBAPurchasePrice"; var PriceListLine: Record "Price List Line"):
OnCopyFromResourcePrice(Record KVSKBAResourcePrice, Record Price List Line) :
[IntegrationEvent(false, false)]
local procedure OnCopyFromResourcePrice(KVSKBAResourcePrice: Record "KVSKBAResourcePrice"; var PriceListLine: Record "Price List Line"):
OnCopyFromSalesPrice(Record KVSKBASalesPrice, Record Price List Line) :
[IntegrationEvent(false, false)]
local procedure OnCopyFromSalesPrice(var KVSKBASalesPrice: Record "KVSKBASalesPrice"; var PriceListLine: Record "Price List Line"):
OnCopyFromSalesPriceOnCaseElseType(Record KVSKBASalesPrice, Record Price List Line) :
[IntegrationEvent(false, false)]
local procedure OnCopyFromSalesPriceOnCaseElseType(KVSKBASalesPrice: Record "KVSKBASalesPrice"; var PriceListLine: Record "Price List Line"):
OnCopyFromSalesLineDiscount(Record KVSKBASalesLineDiscount, Record Price List Line) :
[IntegrationEvent(false, false)]
local procedure OnCopyFromSalesLineDiscount(var KVSKBASalesLineDiscount: Record "KVSKBASalesLineDiscount"; var PriceListLine: Record "Price List Line"):
OnUpdateDataOnBeforeUpdateResourceCost(Record Feature Data Update Status, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnUpdateDataOnBeforeUpdateResourceCost(FeatureDataUpdateStatus: Record "Feature Data Update Status"; var IsHandled: Boolean):