From 69b906438d5a7c2a2b12419fdb0d02869a1e1507 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 19 Jul 2022 15:05:56 +0530 Subject: [PATCH] fix: set status on submit/cancel --- .../doctype/period_closing_voucher/period_closing_voucher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py index 385d64a633..3b890eef25 100644 --- a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py +++ b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py @@ -19,11 +19,11 @@ class PeriodClosingVoucher(AccountsController): self.validate_posting_date() def on_submit(self): - self.status = "In Progress" + self.db_set("status", "In Progress") self.make_gl_entries() def on_cancel(self): - self.status = "In Progress" + self.db_set("status", "In Progress") self.ignore_linked_doctypes = ("GL Entry", "Stock Ledger Entry") gle_count = frappe.db.count( "GL Entry",