commit | 19a0ca1980b69d04310cbbe27e05f117622c3894 | [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:08:56 2021 +0530 |
tree | 6b325d635a78c38436588e5bffe75c7e1013fb9b | |
parent | 356a55258ee4248deea931db7a7ee1b6252116d3 [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", {