commit | 5749e52bf6f4a67d4ee899b07edc2c2ac8434bf6 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Sun Jul 25 19:46:50 2021 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Mon Jul 26 19:06:51 2021 +0530 |
tree | c579a335ee75e7da8415590ab5f4cc436b3b0ed0 | |
parent | fb72df7dce3124d36b4e86553fc509928a3585b2 [diff] |
fix: Ignore GL Entry on cancel
diff --git a/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py b/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py index e94875f..c8d5737 100644 --- a/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py +++ b/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py
@@ -27,6 +27,9 @@ if not (self.company and self.posting_date): frappe.throw(_("Please select Company and Posting Date to getting entries")) + def on_cancel(self): + self.ignore_linked_doctypes = ('GL Entry') + @frappe.whitelist() def check_journal_entry_condition(self): total_debit = frappe.db.get_value("Journal Entry Account", {