commit | 2dbf8075eb1f990e5d3c1da8b2c03af480df4020 | [log] [tgz] |
---|---|---|
author | GangaManoj <ganga.manoj98@gmail.com> | Wed Aug 25 00:09:07 2021 +0530 |
committer | GangaManoj <ganga.manoj98@gmail.com> | Wed Aug 25 00:09:07 2021 +0530 |
tree | 722a2b9f0e533fefb91cd681f368dadb6e2a3181 | |
parent | 3edb1938a92d3d6b6427db7ac8b57ad4a8543262 [diff] |
fix: Calculate total buying_amount for each invoice
diff --git a/erpnext/accounts/report/gross_profit/gross_profit.py b/erpnext/accounts/report/gross_profit/gross_profit.py index 52f5131..d095828 100644 --- a/erpnext/accounts/report/gross_profit/gross_profit.py +++ b/erpnext/accounts/report/gross_profit/gross_profit.py
@@ -186,7 +186,7 @@ if grouped_by_invoice: if row.indent == 1.0: - buying_amount = row.buying_amount + buying_amount += row.buying_amount elif row.indent == 0.0: row.buying_amount = buying_amount buying_amount = 0