Merge pull request #47526 from frappe/mergify/bp/version-14-hotfix/pr-47520

fix: ignore "Account Closing Balance" doctype on Period Closing Voucher cancellation (backport #47520)
This commit is contained in:
ruthra kumar
2025-05-13 15:22:32 +05:30
committed by GitHub

View File

@@ -32,8 +32,13 @@ class PeriodClosingVoucher(AccountsController):
def on_cancel(self):
self.validate_future_closing_vouchers()
self.ignore_linked_doctypes = (
"GL Entry",
"Stock Ledger Entry",
"Payment Ledger Entry",
"Account Closing Balance",
)
self.db_set("gle_processing_status", "In Progress")
self.ignore_linked_doctypes = ("GL Entry", "Stock Ledger Entry", "Payment Ledger Entry")
gle_count = frappe.db.count(
"GL Entry",
{"voucher_type": "Period Closing Voucher", "voucher_no": self.name, "is_cancelled": 0},