fix: Calculate total buying_amount for each invoice
This commit is contained in:
parent
3edb1938a9
commit
2dbf8075eb
@ -186,7 +186,7 @@ class GrossProfitGenerator(object):
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user