refactor: set default for 'update_billed_amount_in_delivery_note'

(cherry picked from commit ee0c64215d)
This commit is contained in:
ruthra kumar
2023-11-20 11:52:26 +05:30
committed by Mergify
parent e272041872
commit 5da9a22e4c
2 changed files with 3 additions and 2 deletions

View File

@@ -356,6 +356,7 @@ def make_return_doc(
if doc.doctype == "Sales Invoice" or doc.doctype == "POS Invoice":
doc.consolidated_invoice = ""
doc.set("payments", [])
doc.update_billed_amount_in_delivery_note = True
for data in source.payments:
paid_amount = 0.00
base_paid_amount = 0.00