Merge pull request #38210 from ruthra-kumar/set_default_on_billed_amt_update

refactor: extend billed amount update flag to POS Invoice as well
This commit is contained in:
ruthra kumar
2023-11-20 14:05:45 +05:30
committed by GitHub
3 changed files with 12 additions and 3 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