fix: reset temporary flag after use

This commit is contained in:
Saqib 2021-10-27 18:30:37 +05:30 committed by GitHub
parent 470c07c6e9
commit a261d08dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1048,6 +1048,7 @@ class SalesInvoice(SellingController):
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()