mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fix: exclude rounding GL Entries from invoice tax lines
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user