fix: ImponibileImporto for On Previous Row Total (#18947)

This commit is contained in:
rohitwaghchaure
2019-09-06 12:14:45 +05:30
committed by Nabin Hait
parent 0be054ae0f
commit 8c9fd62775

View File

@@ -153,7 +153,8 @@ def get_invoice_summary(items, taxes):
tax_rate=tax.rate,
tax_amount=(reference_row.tax_amount * tax.rate) / 100,
net_amount=reference_row.tax_amount,
taxable_amount=reference_row.tax_amount,
taxable_amount=(reference_row.tax_amount if tax.charge_type == 'On Previous Row Amount'
else reference_row.total),
item_tax_rate={tax.account_head: tax.rate},
charges=True,
type="Actual",