Restoring a Deleted Posted Bank Reconciliation in Business Central: A Comprehensive Guide
Introduction:
Are you struggling with restoring a deleted posted bank reconciliation in Business Central?
In this blog, I’m going to guide you through the process of effectively restoring a deleted posted bank reconciliation and ensuring the accuracy of your financial records. You’ll learn the step-by-step procedure to re-post a deleted bank reconciliation, along with best practices to prevent future errors and maintain the integrity of your financial data. Let’s get started!
Steps to Achieve Goal:
- Create a New Editable Bank Ledger Entry Page:
- Use AL code to create a new page, ensuring it allows for editing the Bank Ledger Entry.
- The code should expose fields such as Statement No, Statement Line No, and Statement Status so they can be modified. Here’s an example of how to create a simple editable page in AL
- Access the Bank Ledger Entry:
- Open the Bank Ledger Entry Editable page created above.
- Locate the deleted reconciliation entry that you want to undo.
- Remove "Statement No", "Statement Line No", and Change "Statement Status" from Closed to Open in bank Ledger Entry editable page using filters in Bank Account Ledger Entry editable page.
- Now do the Bank Account Reconciliation again with same statement No and post bank Reconciliation.
- To prevent users from accidentally deleting posted bank account reconciliations, we can implement a check in the OnDelete trigger. This will block any attempt to delete a posted reconciliation.
-
Here's an example of the logic to include in the OnDelete trigger in page extension of Bank Account Statement List and Bank Account Statement page:
Comments
Post a Comment