mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 23:19:20 +00:00
fix: Calculate total buying_amount for each invoice
This commit is contained in:
@@ -187,7 +187,7 @@ class GrossProfitGenerator(object):
|
|||||||
|
|
||||||
if grouped_by_invoice:
|
if grouped_by_invoice:
|
||||||
if row.indent == 1.0:
|
if row.indent == 1.0:
|
||||||
buying_amount = row.buying_amount
|
buying_amount += row.buying_amount
|
||||||
elif row.indent == 0.0:
|
elif row.indent == 0.0:
|
||||||
row.buying_amount = buying_amount
|
row.buying_amount = buying_amount
|
||||||
buying_amount = 0
|
buying_amount = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user