Table of Contents

KVSMEDEBillingCreateFile302

Events

OnBeforeResetBSTGOfCustLedgerEntry(Record Cust. Ledger Entry, Code[20], Boolean, Boolean) :

Summary: Raised before the BSTG deduction of a customer ledger entry of this combine shipment is reset, because the billing file is created again without BSTG.

[IntegrationEvent(false, false)]
local procedure OnBeforeResetBSTGOfCustLedgerEntry(var CustLedgerEntry: Record "Cust. Ledger Entry"; CombineShipmentNo: Code[20]; var BSTGReset: Boolean; var IsHandled: Boolean): 

Parameters:

  • CustLedgerEntry: Open invoice customer ledger entry with an active BSTG invoice. The caller saves the entry.
  • CombineShipmentNo: Combine shipment no. of the billing file.
  • BSTGReset: Set to true if the subscriber reset the entry. Return it if IsHandled is set.
  • IsHandled: Set to true to skip the standard reset.

OnAfterResetBSTGOfCustLedgerEntry(Record Cust. Ledger Entry, Code[20]) :

Summary: Raised after the reset customer ledger entry was saved with its restored reason code.

[IntegrationEvent(false, false)]
local procedure OnAfterResetBSTGOfCustLedgerEntry(var CustLedgerEntry: Record "Cust. Ledger Entry"; CombineShipmentNo: Code[20]): 

Parameters:

  • CustLedgerEntry: Reset customer ledger entry.
  • CombineShipmentNo: Combine shipment no. of the billing file.

OnBeforeSetExternalDocumentNo(Record Cust. Ledger Entry, Code[20], Boolean) :

Summary: Raised before the invoice no. is entered as external document no. of the customer ledger entry. Only raised if the billing type uses the external document no.

[IntegrationEvent(false, false)]
local procedure OnBeforeSetExternalDocumentNo(var CustLedgerEntry: Record "Cust. Ledger Entry"; CombineShipmentNo: Code[20]; var IsHandled: Boolean): 

Parameters:

  • CustLedgerEntry: Customer ledger entry of the billing file. The caller saves the entry.
  • CombineShipmentNo: Combine shipment no. of the billing file.
  • IsHandled: Set to true to keep the external document no. unchanged.

OnAfterSetExternalDocumentNo(Record Cust. Ledger Entry, Code[20]) :

Summary: Raised after the invoice no. was entered as external document no. and the original value was saved.

[IntegrationEvent(false, false)]
local procedure OnAfterSetExternalDocumentNo(var CustLedgerEntry: Record "Cust. Ledger Entry"; CombineShipmentNo: Code[20]): 

Parameters:

  • CustLedgerEntry: Customer ledger entry of the billing file. The caller saves the entry.
  • CombineShipmentNo: Combine shipment no. of the billing file.