commit | 05710804cff18e57a9bcd43797aa31bf1883887f | [log] [tgz] |
---|---|---|
author | Gavin D'souza <gavin18d@gmail.com> | Mon Nov 04 14:45:11 2019 +0530 |
committer | Gavin D'souza <gavin18d@gmail.com> | Mon Nov 04 14:45:11 2019 +0530 |
tree | 81d3472f6389f26324f894b2af3466ffc9ad23d8 | |
parent | 139c20a736a1cddd2084483d00b47232bcde4b9f [diff] |
fix: invoice creation tool of invoices with no paid and outstanding amounts
diff --git a/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py b/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py index ce8aba7..54464e7 100644 --- a/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py +++ b/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py
@@ -32,8 +32,10 @@ }) invoices_summary.update({company: _summary}) - paid_amount.append(invoice.paid_amount) - outstanding_amount.append(invoice.outstanding_amount) + if invoice.paid_amount: + paid_amount.append(invoice.paid_amount) + if invoice.outstanding_amount: + outstanding_amount.append(invoice.outstanding_amount) if paid_amount or outstanding_amount: max_count.update({