Merge pull request #29560 from ruthra-kumar/bug_invoice_creation_throws_typeerror

fix: typeerror on invoice creation from SO/PO
This commit is contained in:
Saqib Ansari 2022-02-08 15:27:05 +05:30 committed by GitHub
commit 27ced4f082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1318,6 +1318,9 @@ class AccountsController(TransactionBase):
payment_schedule['discount_type'] = schedule.discount_type
payment_schedule['discount'] = schedule.discount
if not schedule.invoice_portion:
payment_schedule['payment_amount'] = schedule.payment_amount
self.append("payment_schedule", payment_schedule)
def set_due_date(self):