Skip to content

KVSPSAUpdate Job Analysis View#

Procedures#

OnRun#

procedure OnRun(Rec: Record "KVSPSAJob Analysis View")

Events#

KVSPSAOnAfterInitPaymAnalysisViewEntryKeyFields(Record KVSPSAJob Analysis View Entry, Record Cust. Ledger Entry) :#

Summary: Event triggered after initializing key fields for payment analysis view entry during job analysis view update. Allows subscribers to set additional key fields or modify the temporary job analysis view entry after standard key field initialization.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterInitPaymAnalysisViewEntryKeyFields(var TempJobAnalysisViewEntry: Record "KVSPSAJob Analysis View Entry" temporary; CustLedgerEntry: Record "Cust. Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUpdate Job Analysis View", 'KVSPSAOnAfterInitPaymAnalysisViewEntryKeyFields', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterInitPaymAnalysisViewEntryKeyFields(var TempJobAnalysisViewEntry: Record "KVSPSAJob Analysis View Entry" temporary; CustLedgerEntry: Record "Cust. Ledger Entry")
begin
end;

Parameters:

  • TempJobAnalysisViewEntry: The temporary job analysis view entry that has been initialized and can be further modified by subscribers.
  • CustLedgerEntry: The customer ledger entry providing source data for the analysis view entry key fields.

KVSPSAOnAfterSetFilterForPaymentCustLedgerEntries(Record Cust. Ledger Entry) :#

Summary: Event triggered after setting filters on customer ledger entries for payment analysis during job analysis view update. Allows subscribers to extend or modify the filtering logic applied to customer ledger entries for payment analysis.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterSetFilterForPaymentCustLedgerEntries(var CustLedgerEntry: Record "Cust. Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUpdate Job Analysis View", 'KVSPSAOnAfterSetFilterForPaymentCustLedgerEntries', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterSetFilterForPaymentCustLedgerEntries(var CustLedgerEntry: Record "Cust. Ledger Entry")
begin
end;

Parameters:

  • CustLedgerEntry: The customer ledger entry record with filters applied that can be further modified by subscribers.

KVSPSAOnAfterUpdateOneJobAnalysisView(Record KVSPSAJob Analysis View, Option, Boolean, Record KVSPSAJob Analysis View Entry, Record KVSPSAJobAnalysisViewBudgetEnt, Boolean) :#

Summary: Event triggered after completing the update of one job analysis view. Allows subscribers to perform additional processing or cleanup after the job analysis view has been successfully updated.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterUpdateOneJobAnalysisView(JobAnalysisView: Record "KVSPSAJob Analysis View"; Which: Option; ShowWindow: Boolean; var TempJobAnalysisViewEntry: Record "KVSPSAJob Analysis View Entry" temporary; var TempJobAnalysisViewBudgetEntry: Record "KVSPSAJobAnalysisViewBudgetEnt" temporary; var Updated: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUpdate Job Analysis View", 'KVSPSAOnAfterUpdateOneJobAnalysisView', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterUpdateOneJobAnalysisView(JobAnalysisView: Record "KVSPSAJob Analysis View"; Which: Option; ShowWindow: Boolean; var TempJobAnalysisViewEntry: Record "KVSPSAJob Analysis View Entry" temporary; var TempJobAnalysisViewBudgetEntry: Record "KVSPSAJobAnalysisViewBudgetEnt" temporary; var Updated: Boolean)
begin
end;

Parameters:

  • JobAnalysisView: The job analysis view record that was updated.
  • Which: Option parameter indicating which type of update was performed.
  • ShowWindow: Boolean parameter indicating whether progress window was shown during the update.
  • TempJobAnalysisViewEntry: The temporary job analysis view entry records that were processed during the update.
  • TempJobAnalysisViewBudgetEntry: The temporary job analysis view budget entry records that were processed during the update.
  • Updated: Boolean flag that subscribers can modify to indicate the final update status.

KVSPSAOnCalcPaymAnalysisViewEntryAmountFromCustLedgEntry(Record Cust. Ledger Entry, Decimal) :#

Summary: Event triggered when calculating payment analysis view entry amount from customer ledger entry. Allows subscribers to customize the amount calculation logic for payment analysis view entries based on customer ledger entry data.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnCalcPaymAnalysisViewEntryAmountFromCustLedgEntry(CustLedgerEntry: Record "Cust. Ledger Entry"; var AmountForAnalysisViewEntry: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUpdate Job Analysis View", 'KVSPSAOnCalcPaymAnalysisViewEntryAmountFromCustLedgEntry', '', false, false)]
local procedure DoSomethingKVSPSAOnCalcPaymAnalysisViewEntryAmountFromCustLedgEntry(CustLedgerEntry: Record "Cust. Ledger Entry"; var AmountForAnalysisViewEntry: Decimal)
begin
end;

Parameters:

  • CustLedgerEntry: The customer ledger entry providing source data for amount calculation.
  • AmountForAnalysisViewEntry: The calculated amount for the analysis view entry that subscribers can modify.