Skip to content

Add Event OnBeforeCustLedgerEntryModifyRecalledBill in Function RecallIssuedBill Cdu 12170 Italian Localization #29680

@DamianoCastagna77

Description

@DamianoCastagna77

Why do you need this change?

If a new field is added into the Customer Ledger Entry Table and it refers to Bill flow, it may be modified before the record update

Describe the request

Codeunit 12170 Recall Customer Bill

function RecallBill

repeat
   CustLedgEntry2.Get(IssuedCustomerBillLine."Customer Entry No.");
    if CustLedgEntry2."Customer Bill No." <> IssuedCustomerBillLine."Final Cust. Bill No." then
          Error(Text1130025, IssuedCustomerBillLine."Final Cust. Bill No.");
...             
    CustLedgEntry."Document Occurrence" := CustLedgEntry2."Document Occurrence";
    CustLedgEntry.Modify();
    InitGenJnlLine(BalanceAccountNo);
...
until IssuedCustomerBillLine.Next() = 0;

add Event

 CustLedgEntry."Document Occurrence" := CustLedgEntry2."Document Occurrence";
**OnBeforeCustLedgerEntryModifyRecalledBill(CustLedgEntry,CustLedgEntry2)**
  CustLedgEntry.Modify();

Event
OnBeforeCustLedgerEntryModifyRecalledBill(var CustomerLedgerEntry : Record "Customer Ledger Entry", CustomerLedgerEntry2 : record "Customer Ledger Entry)

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-infoThe issue misses information that prevents it from completion.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions