mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 00:01:18 +00:00
Merge pull request #51060 from frappe/mergify/bp/version-16-beta/pr-51057
fix: re-calculate outstanding / write-off amount during submission (backport #51057)
This commit is contained in:
@@ -927,12 +927,11 @@ class calculate_taxes_and_totals:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.doc.docstatus.is_draft():
|
if self.doc.get("write_off_outstanding_amount_automatically"):
|
||||||
if self.doc.get("write_off_outstanding_amount_automatically"):
|
self.doc.write_off_amount = 0
|
||||||
self.doc.write_off_amount = 0
|
|
||||||
|
|
||||||
self.calculate_outstanding_amount()
|
self.calculate_outstanding_amount()
|
||||||
self.calculate_write_off_amount()
|
self.calculate_write_off_amount()
|
||||||
|
|
||||||
def is_internal_invoice(self):
|
def is_internal_invoice(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user