Hi everyone,
I am running into a strict system deadlock on Version 16 (hosted on Frappe Cloud) involving the MCA Audit Trail and a glitched General Ledger entry. I’m completely locked out of fixing a ghost balance on my Accounts Payable report and am hoping someone here has a workaround or if a maintainer can take a look.
The Core Issue
A Payment Entry was submitted, its clearance date was updated, and then the document was cancelled. However, the underlying GL Entry failed to cancel (Is Cancelled: No).
This has stranded a negative outstanding balance on our Accounts Payable report. Because the parent document is marked as “Cancelled,” but the GL Entry is active, standard accounting tools refuse to interact with it.
The Catch-22 (Why standard fixes fail):
-
Force Deletion is Blocked: Because the strict Indian compliance Audit Trail is enabled, the system strictly forbids deleting the Payment Entry or the orphaned GL Entry to clear the database.
-
Reposting Tools are Blocked: If I try to use the Repost Accounting Ledger or Repost Payment Ledger to force the system to recalculate the cancelled voucher, I get a strict framework validation error:
Cannot link cancelled document: Row #1: Voucher No... -
Reconciliation is Blocked: I tried creating a zero-sum Journal Entry to wash the ghost balance. However, the Payment Reconciliation tool completely filters out “Cancelled” documents, meaning I cannot link the Journal Entry to the ghost payment to clear it from the AP report. If I try to link it manually via the Journal Entry “Reference” table, I get the same
Cannot link cancelled documenterror.
Steps to Reproduce:
-
Submit a Payment Entry against a Purchase Invoice.
-
Update the Clearance Date on the submitted Payment Entry.
-
Cancel the Payment Entry.
-
Check the GL Ledger → The underlying GL Entry remains active.
-
Attempt to resolve via Reposting or Reconciliation (blocked by status) or Deletion (blocked by Audit Trail).
Because I am on Frappe Cloud without direct bench/database access to run an is_cancelled = 1 SQL patch, I am stuck with this ghost balance permanently throwing off the AP report.
Has anyone encountered this specific sync failure before? Is there any frontend UI workaround that I am missing to wash this balance, or does this require a core framework fix to allow reposting tools to target cancelled documents?
Thanks in advance for any insights!