fix: inflated total amt in TDS report using back calculation

This commit is contained in:
ruthra kumar
2023-10-15 11:19:16 +05:30
parent 9406ddbff0
commit 78e22af3ca

View File

@@ -68,7 +68,11 @@ def get_result(
tax_amount += entry.credit - entry.debit tax_amount += entry.credit - entry.debit
if net_total_map.get(name): if net_total_map.get(name):
total_amount, grand_total, base_total = net_total_map.get(name) if voucher_type == "Journal Entry":
# back calcalute total amount from rate and tax_amount
total_amount = grand_total = base_total = tax_amount / (rate / 100)
else:
total_amount, grand_total, base_total = net_total_map.get(name)
else: else:
total_amount += entry.credit total_amount += entry.credit