mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: set status on submit/cancel
This commit is contained in:
@@ -19,11 +19,11 @@ class PeriodClosingVoucher(AccountsController):
|
|||||||
self.validate_posting_date()
|
self.validate_posting_date()
|
||||||
|
|
||||||
def on_submit(self):
|
def on_submit(self):
|
||||||
self.status = "In Progress"
|
self.db_set("status", "In Progress")
|
||||||
self.make_gl_entries()
|
self.make_gl_entries()
|
||||||
|
|
||||||
def on_cancel(self):
|
def on_cancel(self):
|
||||||
self.status = "In Progress"
|
self.db_set("status", "In Progress")
|
||||||
self.ignore_linked_doctypes = ("GL Entry", "Stock Ledger Entry")
|
self.ignore_linked_doctypes = ("GL Entry", "Stock Ledger Entry")
|
||||||
gle_count = frappe.db.count(
|
gle_count = frappe.db.count(
|
||||||
"GL Entry",
|
"GL Entry",
|
||||||
|
|||||||
Reference in New Issue
Block a user