Skip to content

Commit

Permalink
fix: net amount and total amount if expenses
Browse files Browse the repository at this point in the history
  • Loading branch information
umarless authored Aug 12, 2024
1 parent b897461 commit b9f9264
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,16 +429,16 @@ def get_data(filters):
if e.sgst_amount and e.cgst_amount:
new_row = {
'particulars': e.item_name,
'amount': e.base_amount,
'net_amount': e.base_net_amount + e.sgst_amount + e.cgst_amount,
'amount': e.base_net_amount + e.sgst_amount + e.cgst_amount,
'net_amount': e.base_net_amount,
'sgst': e.sgst_amount,
'cgst': e.cgst_amount
}
elif e.igst_amount:
new_row = {
'particulars': e.item_name,
'amount': e.base_amount,
'net_amount': e.base_net_amount + e.igst_amount,
'amount': e.base_net_amount + e.igst_amount,
'net_amount': e.base_net_amount,
'igst': e.igst_amount
}
else:
Expand Down

0 comments on commit b9f9264

Please sign in to comment.