mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 14:55:13 +00:00
Merge pull request #52923 from aerele/fix/taxable-amount-conversion-rate
fix(taxes_and_totals): apply conversion_rate to taxable_amount in get_itemised_tax
This commit is contained in:
@@ -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