fix: Ignore GL Entry on cancel
This commit is contained in:
parent
356a55258e
commit
19a0ca1980
@ -27,6 +27,9 @@ class ExchangeRateRevaluation(Document):
|
|||||||
if not (self.company and self.posting_date):
|
if not (self.company and self.posting_date):
|
||||||
frappe.throw(_("Please select Company and Posting Date to getting entries"))
|
frappe.throw(_("Please select Company and Posting Date to getting entries"))
|
||||||
|
|
||||||
|
def on_cancel(self):
|
||||||
|
self.ignore_linked_doctypes = ('GL Entry')
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def check_journal_entry_condition(self):
|
def check_journal_entry_condition(self):
|
||||||
total_debit = frappe.db.get_value("Journal Entry Account", {
|
total_debit = frappe.db.get_value("Journal Entry Account", {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user