fix: exclude rounding GL Entries from invoice tax lines
This commit is contained in:
parent
06e31e5d7d
commit
89fcdf3226
@ -225,7 +225,7 @@ def modify_report_data(data):
|
|||||||
line.amount = line.credit
|
line.amount = line.credit
|
||||||
# Remove Invoice GL Tax Entries and generate Tax entries from the invoice lines
|
# Remove Invoice GL Tax Entries and generate Tax entries from the invoice lines
|
||||||
if "Invoice" in line.voucher_type:
|
if "Invoice" in line.voucher_type:
|
||||||
if line.account_type != "Tax":
|
if line.account_type not in ("Tax", "Round Off"):
|
||||||
new_data += [line]
|
new_data += [line]
|
||||||
if line.item_tax_rate:
|
if line.item_tax_rate:
|
||||||
tax_rates = json.loads(line.item_tax_rate)
|
tax_rates = json.loads(line.item_tax_rate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user