Merge pull request #29707 from frappe/mergify/bp/version-13-hotfix/pr-29560

fix: typeerror on invoice creation from SO/PO (backport #29560)
This commit is contained in:
Saqib Ansari
2022-02-08 17:24:47 +05:30
committed by GitHub

View File

@@ -1319,6 +1319,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):