mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
Merge pull request #36963 from ruthra-kumar/index_error_on_receivable_report
fix: index error on Receivable report based on payment terms
This commit is contained in:
@@ -467,6 +467,10 @@ class ReceivablePayableReport(object):
|
|||||||
original_row = frappe._dict(row)
|
original_row = frappe._dict(row)
|
||||||
row.payment_terms = []
|
row.payment_terms = []
|
||||||
|
|
||||||
|
# Cr Note's don't have Payment Terms
|
||||||
|
if not payment_terms_details:
|
||||||
|
return
|
||||||
|
|
||||||
# Advance allocated during invoicing is not considered in payment terms
|
# Advance allocated during invoicing is not considered in payment terms
|
||||||
# Deduct that from paid amount pre allocation
|
# Deduct that from paid amount pre allocation
|
||||||
row.paid -= flt(payment_terms_details[0].total_advance)
|
row.paid -= flt(payment_terms_details[0].total_advance)
|
||||||
|
|||||||
Reference in New Issue
Block a user