[cleanup] [accounts] delete gl entries on cancellation of accounting transactions
diff --git a/controllers/accounts_controller.py b/controllers/accounts_controller.py
index bbad960..4b63f3f 100644
--- a/controllers/accounts_controller.py
+++ b/controllers/accounts_controller.py
@@ -330,11 +330,8 @@
self.calculate_outstanding_amount()
- def get_gl_dict(self, args, cancel=None):
+ def get_gl_dict(self, args):
"""this method populates the common properties of a gl entry record"""
- if cancel is None:
- cancel = (self.doc.docstatus == 2)
-
gl_dict = {
'company': self.doc.company,
'posting_date': self.doc.posting_date,
@@ -342,7 +339,6 @@
'voucher_no': self.doc.name,
'aging_date': self.doc.fields.get("aging_date") or self.doc.posting_date,
'remarks': self.doc.remarks,
- 'is_cancelled': cancel and "Yes" or "No",
'fiscal_year': self.doc.fiscal_year,
'debit': 0,
'credit': 0,