Skip to content

KVSFCYJobForecastEntryMgt#

Events#

OnBeforeFillJobForecastEntriesToTempFromFilteredJobForecastEntry(Record KVSFCYJobForecastEntry, Record KVSFCYJobForecastEntry, Boolean, Boolean, Boolean) :#

Summary: Integration event that is raised before filling temporary job forecast entries from filtered job forecast entries, providing an extension point for implementing custom data aggregation logic, additional validation rules, or alternative processing workflows for job forecast entry consolidation and temporary record population.

[IntegrationEvent(false, false)]
local procedure OnBeforeFillJobForecastEntriesToTempFromFilteredJobForecastEntry(var TempKVSFCYJobForecastEntry: Record "KVSFCYJobForecastEntry" temporary; var KVSFCYJobForecastEntry: Record "KVSFCYJobForecastEntry"; CheckArgumentation: Boolean; var IsHandled: Boolean; var Result: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYJobForecastEntryMgt", 'OnBeforeFillJobForecastEntriesToTempFromFilteredJobForecastEntry', '', false, false)]
local procedure DoSomethingOnBeforeFillJobForecastEntriesToTempFromFilteredJobForecastEntry(var TempKVSFCYJobForecastEntry: Record "KVSFCYJobForecastEntry" temporary; var KVSFCYJobForecastEntry: Record "KVSFCYJobForecastEntry"; CheckArgumentation: Boolean; var IsHandled: Boolean; var Result: Boolean)
begin
end;

Parameters:

  • TempKVSFCYJobForecastEntry: Temporary Job Forecast Entry record (passed by reference) that will receive the aggregated forecast data and can be pre-populated or modified by extensions to customize the consolidation process.
  • KVSFCYJobForecastEntry: Job Forecast Entry record containing the source forecast data with applied filters, providing context for custom aggregation logic and data processing operations.
  • CheckArgumentation: Boolean value indicating whether argumentation description validation should be performed during the filling process, allowing extensions to implement custom validation logic based on business requirements.
  • IsHandled: Boolean variable (passed by reference) that should be set to true by the extension if it has completely handled the forecast entry filling operation, preventing execution of standard processing logic.
  • Result: Boolean variable (passed by reference) that should be set by the extension to indicate whether entries were successfully processed when IsHandled is true, providing return value control for custom processing scenarios.

OnBeforeInsertJobPlanningLinesFromTempJobForecastEntries(Record KVSFCYJobForecastEntry, Integer, Boolean) :#

Summary: Integration event that is raised before inserting job planning lines from temporary job forecast entries, providing an extension point for implementing custom job planning line creation logic, alternative insertion workflows, or supplementary data processing during the forecast entry acceptance and planning line generation process.

[IntegrationEvent(false, false)]
local procedure OnBeforeInsertJobPlanningLinesFromTempJobForecastEntries(var TempKVSFCYJobForecastEntry: Record "KVSFCYJobForecastEntry" temporary; var ReturnJobContractEntryNo: Integer; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYJobForecastEntryMgt", 'OnBeforeInsertJobPlanningLinesFromTempJobForecastEntries', '', false, false)]
local procedure DoSomethingOnBeforeInsertJobPlanningLinesFromTempJobForecastEntries(var TempKVSFCYJobForecastEntry: Record "KVSFCYJobForecastEntry" temporary; var ReturnJobContractEntryNo: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • TempKVSFCYJobForecastEntry: Temporary Job Forecast Entry record (passed by reference) containing the aggregated forecast data that will be used for job planning line creation, allowing extensions to modify data before insertion or implement custom processing logic.
  • ReturnJobContractEntryNo: Integer variable (passed by reference) that should be set by the extension to specify the job contract entry number when custom insertion logic is implemented, providing control over contract entry assignment for custom scenarios.
  • IsHandled: Boolean variable (passed by reference) that should be set to true by the extension if it has completely handled the job planning line insertion operation, preventing execution of standard planning line creation logic.

OnBeforeModifyInsertJobPlanningLinesFromTempJobForecastEntries(Record Job Planning Line, Record KVSFCYJobForecastEntry) :#

Summary: Integration event that is raised before modifying the newly created job planning line during insertion from temporary job forecast entries, providing an extension point for implementing custom field population, additional validation logic, or supplementary data assignment before the final planning line modification is committed to the database.

[IntegrationEvent(false, false)]
local procedure OnBeforeModifyInsertJobPlanningLinesFromTempJobForecastEntries(var NewJobPlanningLine: Record "Job Planning Line"; var TempKVSFCYJobForecastEntry: Record "KVSFCYJobForecastEntry" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYJobForecastEntryMgt", 'OnBeforeModifyInsertJobPlanningLinesFromTempJobForecastEntries', '', false, false)]
local procedure DoSomethingOnBeforeModifyInsertJobPlanningLinesFromTempJobForecastEntries(var NewJobPlanningLine: Record "Job Planning Line"; var TempKVSFCYJobForecastEntry: Record "KVSFCYJobForecastEntry" temporary)
begin
end;

Parameters:

  • NewJobPlanningLine: Job Planning Line record (passed by reference) that has been created and populated with forecast data and can be modified by extensions to add custom fields, perform additional calculations, or apply business-specific logic before final modification.
  • TempKVSFCYJobForecastEntry: Temporary Job Forecast Entry record containing the source forecast data used for planning line creation, providing context and reference information for custom field population and validation logic during the modification process.

OnAfterFilteringCalcValueFromJobForecastEntry(Text, Text, Text, Integer, Record KVSFCYJobAccScheduleLine, Record KVSFCYJobAccSchedColLayout, Boolean, Record KVSFCYJobForecastEntry) :#

Summary: This event is used to filter Job Forecast Entry before calculation of value

[IntegrationEvent(false, false)]
local procedure OnAfterFilteringCalcValueFromJobForecastEntry(JobFilter: Text; JobTaskFilter: Text; DateFilter: Text; VersionFilter: Integer; KVSFCYJobAccScheduleLine: Record "KVSFCYJobAccScheduleLine"; KVSFCYJobAccSchedColLayout: Record "KVSFCYJobAccSchedColLayout"; DrillDown: Boolean; var KVSFCYJobForecastEntry: Record "KVSFCYJobForecastEntry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYJobForecastEntryMgt", 'OnAfterFilteringCalcValueFromJobForecastEntry', '', false, false)]
local procedure DoSomethingOnAfterFilteringCalcValueFromJobForecastEntry(JobFilter: Text; JobTaskFilter: Text; DateFilter: Text; VersionFilter: Integer; KVSFCYJobAccScheduleLine: Record "KVSFCYJobAccScheduleLine"; KVSFCYJobAccSchedColLayout: Record "KVSFCYJobAccSchedColLayout"; DrillDown: Boolean; var KVSFCYJobForecastEntry: Record "KVSFCYJobForecastEntry")
begin
end;

Parameters:

  • JobFilter: Filter for Job No.
  • JobTaskFilter: Filter for Job Task No.
  • DateFilter: Filter for Planning Date
  • VersionFilter: Filter for Version No. (current not used)
  • KVSFCYJobAccScheduleLine: Current Job Account Schedule Line
  • KVSFCYJobAccSchedColLayout: Current Job Account Schedule Column Layout
  • DrillDown: True if drill down is requested
  • KVSFCYJobForecastEntry: Job Forecast Entry record to be filtered by var