fix: exclude rounding GL Entries from invoice tax lines

This commit is contained in:
casesolved-co-uk 2021-04-10 00:32:11 +00:00
parent 06e31e5d7d
commit 89fcdf3226

View File

@ -225,7 +225,7 @@ def modify_report_data(data):
line.amount = line.credit
# Remove Invoice GL Tax Entries and generate Tax entries from the invoice lines
if "Invoice" in line.voucher_type:
if line.account_type != "Tax":
if line.account_type not in ("Tax", "Round Off"):
new_data += [line]
if line.item_tax_rate:
tax_rates = json.loads(line.item_tax_rate)