diff --git a/erpnext/selling/doctype/sales_common/sales_common.js b/erpnext/selling/doctype/sales_common/sales_common.js index f1d4b71f4c..fa0c255107 100644 --- a/erpnext/selling/doctype/sales_common/sales_common.js +++ b/erpnext/selling/doctype/sales_common/sales_common.js @@ -311,9 +311,9 @@ cur_frm.cscript.calc_other_charges = function(doc , tname , fname , other_fname) //enter item_wise_tax_detail i.e. tax rate on each item var item_wise_tax_detail = cur_frm.cscript.get_item_wise_tax_detail(doc, rate, cl, i, tax, t); if(tax[t].charge_type != "Actual") tax[t].item_wise_tax_detail += item_wise_tax_detail; - tax[t].total_amount = roundNumber(flt(tax_amount), 2); //stores actual tax amount in virtual field + tax[t].total_amount = flt(tax_amount); //stores actual tax amount in virtual field tax[t].total_tax_amount = flt(prev_total); //stores total amount in virtual field - tax[t].tax_amount += flt(tax_amount); + tax[t].tax_amount += roundNumber(flt(tax_amount), 2); var total_amount = flt(tax[t].tax_amount); total_tax_amount = flt(tax[t].total_tax_amount) + flt(total_amount); set_multiple('RV Tax Detail', tax[t].name, { 'item_wise_tax_detail':tax[t].item_wise_tax_detail, 'amount':flt(total_amount.toFixed(2)), 'total':(flt(total)+flt(tax[t].tax_amount)).toFixed(2)/*_tax_amount)*/}, other_fname);