fix: Ignore GL Entry on cancel

This commit is contained in:
Deepesh Garg 2021-07-25 19:46:50 +05:30
parent fb72df7dce
commit 5749e52bf6

View File

@ -27,6 +27,9 @@ class ExchangeRateRevaluation(Document):
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", {