KVSFCYImplStdUnitListPriceSale#
Procedures#
SetCalcBatchEntryNo(Integer) :#
Summary: Sets the calculation batch entry number for the implementation process. This procedure specifies which calculation worksheet batch should be used when implementing preferred standard cost and unit list price changes. The batch entry number determines the scope of calculation records that will be processed during implementation.
procedure SetCalcBatchEntryNo(newCalcBatchEntryNoPar: Integer):
Parameters:
newCalcBatchEntryNoPar: The calculation batch entry number that identifies the specific calculation worksheet batch containing the preferred cost and price changes to be implemented.
Initialize(Boolean) :#
Summary: Initializes the implementation report with message display options. This procedure configures whether completion messages should be displayed after the implementation process finishes. It allows for silent operation when the report is called programmatically or in batch scenarios.
procedure Initialize(noMessagePar: Boolean):
Parameters:
noMessagePar: Indicates whether to suppress completion messages. When true, no success or completion messages will be displayed after the implementation process finishes.
SetJobCalculation(Boolean, Record Job Planning Line) :#
Summary: Configures the report for job planning line calculation mode. This procedure enables special handling for job planning lines during the implementation process and sets the specific job planning line context. When job calculation mode is enabled, the report updates job planning lines directly instead of searching for them through tracking lines.
procedure SetJobCalculation(isJobCalculationPar: Boolean; var JobPlanningLineVar: Record "Job Planning Line"):
Parameters:
isJobCalculationPar: Indicates whether the report should operate in job calculation mode. When true, enables direct job planning line updates and bypasses standard tracking line processing.JobPlanningLineVar: The job planning line record that will be used as the context for cost and price updates. This line will be directly updated with new calculation values when job calculation mode is active.
GetJobPlanningLine(Record Job Planning Line) :#
Summary: Retrieves the current job planning line record from the implementation process. This procedure returns the job planning line that has been processed or is being processed during the implementation. It allows callers to access the updated job planning line data after cost and price implementation.
procedure GetJobPlanningLine(var JobPlanningLineVar: Record "Job Planning Line"):
Parameters:
JobPlanningLineVar: The job planning line record variable that will receive the current job planning line data, including any cost and price updates that have been applied during the implementation process.
Events#
OnBeforeValidateUnitCost(Record KVSFCYCalculationWorksheet, Record KVSFCYCalculationTrackingLine, Record Prod. Order Line, Record Job, Record Job Planning Line, Boolean) :#
Summary: Event before validating unit cost for job planning line.
[IntegrationEvent(false, false)]
local procedure OnBeforeValidateUnitCost(CalcWorksheetPar: Record "KVSFCYCalculationWorksheet"; CalcTrackLinePar: Record "KVSFCYCalculationTrackingLine"; ProdOrderLinePar: Record "Prod. Order Line"; JobLoc: Record "Job"; var JobPlanningLine: Record "Job Planning Line"; var SkipValidateUnitCost: Boolean):
[EventSubscriber(ObjectType::Report, Report::"KVSFCYImplStdUnitListPriceSale", 'OnBeforeValidateUnitCost', '', false, false)]
local procedure DoSomethingOnBeforeValidateUnitCost(CalcWorksheetPar: Record "KVSFCYCalculationWorksheet"; CalcTrackLinePar: Record "KVSFCYCalculationTrackingLine"; ProdOrderLinePar: Record "Prod. Order Line"; JobLoc: Record "Job"; var JobPlanningLine: Record "Job Planning Line"; var SkipValidateUnitCost: Boolean)
begin
end;
Parameters:
CalcWorksheetPar: Calculation worksheet record.CalcTrackLinePar: Calculation tracking line record.ProdOrderLinePar: Production order line record.JobLoc: Job record.JobPlanningLine: Job planning line record.SkipValidateUnitCost: True to skip validation.
OnBeforeValidateUnitPrice(Record KVSFCYCalculationWorksheet, Record KVSFCYCalculationTrackingLine, Record Prod. Order Line, Record Job, Record Job Planning Line, Boolean) :#
Summary: Event before validating unit price for job planning line.
[IntegrationEvent(false, false)]
local procedure OnBeforeValidateUnitPrice(CalcWorksheetPar: Record "KVSFCYCalculationWorksheet"; CalcTrackLinePar: Record "KVSFCYCalculationTrackingLine"; ProdOrderLinePar: Record "Prod. Order Line"; JobLoc: Record "Job"; var JobPlanningLine: Record "Job Planning Line"; var SkipValidateUnitPrice: Boolean):
[EventSubscriber(ObjectType::Report, Report::"KVSFCYImplStdUnitListPriceSale", 'OnBeforeValidateUnitPrice', '', false, false)]
local procedure DoSomethingOnBeforeValidateUnitPrice(CalcWorksheetPar: Record "KVSFCYCalculationWorksheet"; CalcTrackLinePar: Record "KVSFCYCalculationTrackingLine"; ProdOrderLinePar: Record "Prod. Order Line"; JobLoc: Record "Job"; var JobPlanningLine: Record "Job Planning Line"; var SkipValidateUnitPrice: Boolean)
begin
end;
Parameters:
CalcWorksheetPar: Calculation worksheet record.CalcTrackLinePar: Calculation tracking line record.ProdOrderLinePar: Production order line record.JobLoc: Job record.JobPlanningLine: Job planning line record.SkipValidateUnitPrice: True to skip validation.
OnBeforeModifyJobPlanningLine(Record KVSFCYCalculationWorksheet, Record KVSFCYCalculationTrackingLine, Record Prod. Order Line, Record Job, Record Job Planning Line, Boolean, Boolean) :#
Summary: Event before modifying job planning line.
[IntegrationEvent(false, false)]
local procedure OnBeforeModifyJobPlanningLine(CalcWorksheetPar: Record "KVSFCYCalculationWorksheet"; CalcTrackLinePar: Record "KVSFCYCalculationTrackingLine"; ProdOrderLinePar: Record "Prod. Order Line"; JobLoc: Record "Job"; var JobPlanningLine: Record "Job Planning Line"; var JobPlanningLinesUpdated: Boolean; var SkipModifyJobPlanningLine: Boolean):
[EventSubscriber(ObjectType::Report, Report::"KVSFCYImplStdUnitListPriceSale", 'OnBeforeModifyJobPlanningLine', '', false, false)]
local procedure DoSomethingOnBeforeModifyJobPlanningLine(CalcWorksheetPar: Record "KVSFCYCalculationWorksheet"; CalcTrackLinePar: Record "KVSFCYCalculationTrackingLine"; ProdOrderLinePar: Record "Prod. Order Line"; JobLoc: Record "Job"; var JobPlanningLine: Record "Job Planning Line"; var JobPlanningLinesUpdated: Boolean; var SkipModifyJobPlanningLine: Boolean)
begin
end;
Parameters:
CalcWorksheetPar: Calculation worksheet record.CalcTrackLinePar: Calculation tracking line record.ProdOrderLinePar: Production order line record.JobLoc: Job record.JobPlanningLine: Job planning line record.JobPlanningLinesUpdated: True if job planning lines updated.SkipModifyJobPlanningLine: True to skip modification.