fix: Calculate total buying_amount for each invoice

This commit is contained in:
GangaManoj
2021-08-25 00:09:07 +05:30
parent de660bf9c4
commit 4aede0ea3f

View File

@@ -166,7 +166,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