Merge branch 'stable' into latest
This commit is contained in:
commit
6840ef67df
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user