commit | a261d08dd868ff6c306a2c8392dddd73d006ab85 | [log] [tgz] |
---|---|---|
author | Saqib <nextchamp.saqib@gmail.com> | Wed Oct 27 18:30:37 2021 +0530 |
committer | GitHub <noreply@github.com> | Wed Oct 27 18:30:37 2021 +0530 |
tree | 82929ca2fde5ae7e7d9c4149d1270aecb1dc31ab | |
parent | 470c07c6e93ecf76afb937cc39805c1c312e5c15 [diff] |
fix: reset temporary flag after use
diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 0ca11fd..cd204ba 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py
@@ -1048,6 +1048,7 @@ frappe.flags.is_reverse_depr_entry = True reverse_journal_entry.submit() + frappe.flags.is_reverse_depr_entry = False asset.flags.ignore_validate_update_after_submit = True schedule.journal_entry = None asset.save()