KVSKBASuggestItemPriceonWksh
OBSOLETE
This Element will be removed or changed with a future Version of the App.
Procedures
InitializeRequest(Option, Code[20], Date, Date, Code[10], Code[10]) :
Summary: Initializes the report request parameters for the suggest item price batch job.
procedure InitializeRequest(NewToSalesType: Option; NewToSalesCode: Code[20]; NewToStartDateText: Date; NewToEndDateText: Date; NewToCurrCode: Code[10]; NewToUOMCode: Code[10]):
Parameters:
NewToSalesType: Option - The target sales type to copy prices to.NewToSalesCode: Code[20] - The target sales code corresponding to the sales type.NewToStartDateText: Date - The starting date for the new sales prices.NewToEndDateText: Date - The ending date for the new sales prices.NewToCurrCode: Code[10] - The target currency code for the new prices.NewToUOMCode: Code[10] - The target unit of measure code for the new prices.
Remarks: Use this procedure to set the basic request parameters programmatically before running the report.
InitializeRequest2(Option, Code[20], Date, Date, Code[10], Code[10], Decimal, Decimal, Code[10], Boolean) :
Summary: Initializes the report request parameters including price adjustment options for the suggest item price batch job.
procedure InitializeRequest2(NewToSalesType: Option; NewToSalesCode: Code[20]; NewToStartDateText: Date; NewToEndDateText: Date; NewToCurrCode: Code[10]; NewToUOMCode: Code[10]; NewPriceLowerLimit: Decimal; NewUnitPriceFactor: Decimal; NewRoundingMethodCode: Code[10]; NewCreateNewPrices: Boolean):
Parameters:
NewToSalesType: Option - The target sales type to copy prices to.NewToSalesCode: Code[20] - The target sales code corresponding to the sales type.NewToStartDateText: Date - The starting date for the new sales prices.NewToEndDateText: Date - The ending date for the new sales prices.NewToCurrCode: Code[10] - The target currency code for the new prices.NewToUOMCode: Code[10] - The target unit of measure code for the new prices.NewPriceLowerLimit: Decimal - Only prices above this value will be adjusted by the unit price factor.NewUnitPriceFactor: Decimal - The adjustment factor to multiply the unit price by.NewRoundingMethodCode: Code[10] - The code for the rounding method to apply to the adjusted prices.NewCreateNewPrices: Boolean - If true, new price suggestions will be created; otherwise only existing prices are adjusted.
Remarks: Extends InitializeRequest with additional price adjustment parameters. Use this procedure to set all request parameters programmatically before running the report.
Events
OnBeforeRoundMethod(Record KVSKBASalesPriceWorksheet, Record Item, Record Currency, Decimal, Decimal, Decimal) :
OBSOLETE
This Element will be removed or changed with a future Version of the App.
Summary: Integration event that is raised before the rounding method is applied to a sales price worksheet entry.
[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 OnBeforeRoundMethod(var SalesPriceWorksheet: Record "KVSKBASalesPriceWorksheet"; Item: Record "Item"; ToCurrency: Record "Currency"; UnitPriceFactor: Decimal; PriceLowerLimit: Decimal; var CurrentUnitPrice: Decimal):
Parameters:
SalesPriceWorksheet: VAR Record KVSKBASalesPriceWorksheet - The sales price worksheet record being processed.Item: Record Item - The item for which the price is being calculated.ToCurrency: Record Currency - The target currency used for the price calculation.UnitPriceFactor: Decimal - The adjustment factor applied to the unit price.PriceLowerLimit: Decimal - The lower limit above which the unit price factor is applied.CurrentUnitPrice: VAR Decimal - The current calculated unit price, which can be modified by subscribers.
Remarks: This is an integration event that allows subscribers to modify the price or unit price factor before the rounding method is applied.
OnBeforeModifyOrInsertSalesPriceWksh(Record KVSKBASalesPriceWorksheet) :
OBSOLETE
This Element will be removed or changed with a future Version of the App.
Summary: Integration event that is raised before a sales price worksheet record is modified or inserted.
[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 OnBeforeModifyOrInsertSalesPriceWksh(var SalesPriceWorksheet: Record "KVSKBASalesPriceWorksheet"):
Parameters:
SalesPriceWorksheet: VAR Record KVSKBASalesPriceWorksheet - The sales price worksheet record about to be modified or inserted.
Remarks: This is an integration event that allows subscribers to modify the sales price worksheet record before it is persisted.