mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
fix: actual tax conversion in case of multicurrency invoices (#28687)
This commit is contained in:
@@ -940,7 +940,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
$.each(this.frm.doc.taxes || [], function(i, d) {
|
$.each(this.frm.doc.taxes || [], function(i, d) {
|
||||||
if(d.charge_type == "Actual") {
|
if(d.charge_type == "Actual") {
|
||||||
frappe.model.set_value(d.doctype, d.name, "tax_amount",
|
frappe.model.set_value(d.doctype, d.name, "tax_amount",
|
||||||
flt(d.tax_amount) / flt(exchange_rate));
|
flt(d.base_tax_amount) / flt(exchange_rate));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user