mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-21 07:38:29 +00:00
fix(taxes_and_totals): apply conversion_rate to taxable_amount in get_itemised_tax
This commit is contained in:
committed by
ruthra kumar
parent
4198dd643d
commit
2e577ed25b
@@ -1289,7 +1289,8 @@ def get_itemised_tax(doc, with_tax_account=False):
|
||||
)
|
||||
|
||||
tax_info.tax_amount += flt(row.amount, precision)
|
||||
tax_info.taxable_amount += flt(row.taxable_amount, precision)
|
||||
conversion_rate = doc.conversion_rate or 1
|
||||
tax_info.taxable_amount += flt(row.taxable_amount / conversion_rate, precision)
|
||||
|
||||
if with_tax_account:
|
||||
tax_info.tax_account = tax.account_head
|
||||
|
||||
Reference in New Issue
Block a user