Skip to content

KVSPSAJobEvaluationTemplateMgt#

Events#

KVSPSAOnAfterCalculatedColValueBeforeTraceCalculationInCalcJob(Record KVSPSAJobEvaluationTemplateLi, Record Job Ledger Entry, Record KVSPSAEvaluation Book, Integer, Decimal) :#

Summary: Event fired after calculating column value and before trace calculation in CalcJob procedure. Allows extensions to modify the calculated value or amount field. This event enables extensions to implement custom logic for adjusting job ledger entry calculation results or modifying tracing behavior in job evaluation calculations.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCalculatedColValueBeforeTraceCalculationInCalcJob(var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi"; var JobLedgerEntry: Record "Job Ledger Entry"; EvaluationBook: Record "KVSPSAEvaluation Book"; var AmountFieldNo: Integer; var ColValue: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobEvaluationTemplateMgt", 'KVSPSAOnAfterCalculatedColValueBeforeTraceCalculationInCalcJob', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterCalculatedColValueBeforeTraceCalculationInCalcJob(var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi"; var JobLedgerEntry: Record "Job Ledger Entry"; EvaluationBook: Record "KVSPSAEvaluation Book"; var AmountFieldNo: Integer; var ColValue: Decimal)
begin
end;

Parameters:

  • JobEvaluationTemplateLine: The job evaluation template line being processed. Can be modified by extensions.
  • JobLedgerEntry: The job ledger entry used for calculation. Can be modified by extensions.
  • EvaluationBook: The evaluation book providing context for the calculation.
  • AmountFieldNo: The field number used for amount calculation. Can be modified by extensions.
  • ColValue: The calculated column value. Can be modified by extensions.

KVSPSAOnAfterCalculatedColValueBeforeTraceCalculationInCalcJobAcc(Record KVSPSAJobEvaluationTemplateLi, Record KVSPSA Job Account Entry, Record KVSPSAEvaluation Book, Integer, Decimal) :#

Summary: Event fired after calculating column value and before trace calculation in CalcJobAcc procedure. Allows extensions to modify the calculated value or amount field. This event enables extensions to implement custom logic for adjusting job account entry calculation results or modifying tracing behavior in job account evaluation calculations.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCalculatedColValueBeforeTraceCalculationInCalcJobAcc(var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi"; var JobAccountEntry: Record "KVSPSA Job Account Entry"; EvaluationBook: Record "KVSPSAEvaluation Book"; var AmountFieldNo: Integer; var ColValue: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobEvaluationTemplateMgt", 'KVSPSAOnAfterCalculatedColValueBeforeTraceCalculationInCalcJobAcc', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterCalculatedColValueBeforeTraceCalculationInCalcJobAcc(var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi"; var JobAccountEntry: Record "KVSPSA Job Account Entry"; EvaluationBook: Record "KVSPSAEvaluation Book"; var AmountFieldNo: Integer; var ColValue: Decimal)
begin
end;

Parameters:

  • JobEvaluationTemplateLine: The job evaluation template line being processed. Can be modified by extensions.
  • JobAccountEntry: The job account entry used for calculation. Can be modified by extensions.
  • EvaluationBook: The evaluation book providing context for the calculation.
  • AmountFieldNo: The field number used for amount calculation. Can be modified by extensions.
  • ColValue: The calculated column value. Can be modified by extensions.

KVSPSAOnAfterSetJobAccountEntryFilterOnCalcJobAcc(Record KVSPSA Job Account Entry, Record KVSPSAJob Account, Record KVSPSAJobEvaluationTemplateLi) :#

Summary: Event fired after setting job account entry filters in CalcJobAcc procedure. Allows extensions to apply additional filters or modify existing filters. This event enables extensions to implement custom filtering logic for job account entries during job evaluation calculations, such as adding specific dimension or date filters.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterSetJobAccountEntryFilterOnCalcJobAcc(var JobAccountEntry: Record "KVSPSA Job Account Entry"; var JobAccount: Record "KVSPSAJob Account"; var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobEvaluationTemplateMgt", 'KVSPSAOnAfterSetJobAccountEntryFilterOnCalcJobAcc', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterSetJobAccountEntryFilterOnCalcJobAcc(var JobAccountEntry: Record "KVSPSA Job Account Entry"; var JobAccount: Record "KVSPSAJob Account"; var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi")
begin
end;

Parameters:

  • JobAccountEntry: The job account entry with applied filters. Can be modified by extensions.
  • JobAccount: The job account providing context for filtering.
  • JobEvaluationTemplateLine: The job evaluation template line driving the calculation.

KVSPSAOnAfterSetJobLedgerEntryFilterOnCalcJob(Record Job Ledger Entry, Record KVSPSAJob Account, Record KVSPSAJobEvaluationTemplateLi) :#

Summary: Event fired after setting job ledger entry filters in CalcJob procedure. Allows extensions to apply additional filters or modify existing filters. This event enables extensions to implement custom filtering logic for job ledger entries during job evaluation calculations, such as adding specific dimension or resource filters.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterSetJobLedgerEntryFilterOnCalcJob(var JobLedgerEntry: Record "Job Ledger Entry"; var JobAccount: Record "KVSPSAJob Account"; var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobEvaluationTemplateMgt", 'KVSPSAOnAfterSetJobLedgerEntryFilterOnCalcJob', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterSetJobLedgerEntryFilterOnCalcJob(var JobLedgerEntry: Record "Job Ledger Entry"; var JobAccount: Record "KVSPSAJob Account"; var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi")
begin
end;

Parameters:

  • JobLedgerEntry: The job ledger entry with applied filters. Can be modified by extensions.
  • JobAccount: The job account providing context for filtering.
  • JobEvaluationTemplateLine: The job evaluation template line driving the calculation.

KVSPSAOnCalculationDateFilterCaseElse(Record KVSPSAJobEvaluationTemplateLi, Date, Date) :#

Summary: Event fired when calculation date filter case evaluates to else condition. Allows extensions to handle custom date filter scenarios. This event enables extensions to implement custom logic for date filter scenarios not covered by standard calculation date filter types in job evaluation templates.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnCalculationDateFilterCaseElse(var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi"; StartDateFilter: Date; EndDateFilter: Date): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobEvaluationTemplateMgt", 'KVSPSAOnCalculationDateFilterCaseElse', '', false, false)]
local procedure DoSomethingKVSPSAOnCalculationDateFilterCaseElse(var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi"; StartDateFilter: Date; EndDateFilter: Date)
begin
end;

Parameters:

  • JobEvaluationTemplateLine: The job evaluation template line being processed. Can be modified by extensions.
  • StartDateFilter: The start date filter for the calculation. Can be modified by extensions.
  • EndDateFilter: The end date filter for the calculation. Can be modified by extensions.

KVSPSAOnElseCalcCellValueSourceType(Record KVSPSAJobEvaluationTemplateLi, Record KVSPSAJob Account, Date, Date, Decimal, Codeunit KVSPSACalc. Trace Management, Boolean) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAOnElseCalcCellValueSourceType(var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi"; var JobAccount: Record "KVSPSAJob Account"; StartDate: Date; EndDate: Date; var Result: Decimal; var CalcTraceManagement: Codeunit "KVSPSACalc. Trace Management"; ShouldTraceCalculation: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobEvaluationTemplateMgt", 'KVSPSAOnElseCalcCellValueSourceType', '', false, false)]
local procedure DoSomethingKVSPSAOnElseCalcCellValueSourceType(var JobEvaluationTemplateLine: Record "KVSPSAJobEvaluationTemplateLi"; var JobAccount: Record "KVSPSAJob Account"; StartDate: Date; EndDate: Date; var Result: Decimal; var CalcTraceManagement: Codeunit "KVSPSACalc. Trace Management"; ShouldTraceCalculation: Boolean)
begin
end;

KVSPSAOnElseEvaluateEvaluationCondition(Enum KVSPSAJobEvalConditionType, Decimal, Decimal, Decimal, Decimal, Decimal) :#

Summary: Event fired when evaluation condition type evaluates to else case. Allows extensions to handle custom evaluation condition types. This event enables extensions to implement custom evaluation condition logic for job evaluation template conditions not covered by standard condition types (less than, greater than, equals, etc.).

[IntegrationEvent(false, false)]
local procedure KVSPSAOnElseEvaluateEvaluationCondition(JobEvaluationConditionType: Enum "KVSPSAJobEvalConditionType"; Arg1: Decimal; Arg2: Decimal; Arg3: Decimal; Arg4: Decimal; var Result: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobEvaluationTemplateMgt", 'KVSPSAOnElseEvaluateEvaluationCondition', '', false, false)]
local procedure DoSomethingKVSPSAOnElseEvaluateEvaluationCondition(JobEvaluationConditionType: Enum "KVSPSAJobEvalConditionType"; Arg1: Decimal; Arg2: Decimal; Arg3: Decimal; Arg4: Decimal; var Result: Decimal)
begin
end;

Parameters:

  • JobEvaluationConditionType: The evaluation condition type being processed.
  • Arg1: The first argument for condition evaluation.
  • Arg2: The second argument for condition evaluation.
  • Arg3: The third argument (result if condition is true).
  • Arg4: The fourth argument (result if condition is false).
  • Result: The evaluation result based on the condition. Can be modified by extensions.

KVSPSAOnBeforeTraceJobLedgerEntries(Record Job Ledger Entry, Integer, Codeunit KVSPSACalc. Trace Management, Boolean) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeTraceJobLedgerEntries(var JobLedgerEntry: Record "Job Ledger Entry"; AmountFieldNo: Integer; var GlobalCalcTraceManagement: Codeunit "KVSPSACalc. Trace Management"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobEvaluationTemplateMgt", 'KVSPSAOnBeforeTraceJobLedgerEntries', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeTraceJobLedgerEntries(var JobLedgerEntry: Record "Job Ledger Entry"; AmountFieldNo: Integer; var GlobalCalcTraceManagement: Codeunit "KVSPSACalc. Trace Management"; var IsHandled: Boolean)
begin
end;