diff --git a/erpnext/accounts/doctype/payable_voucher/payable_voucher.js b/erpnext/accounts/doctype/payable_voucher/payable_voucher.js index ca79387e3d..41722d57f7 100644 --- a/erpnext/accounts/doctype/payable_voucher/payable_voucher.js +++ b/erpnext/accounts/doctype/payable_voucher/payable_voucher.js @@ -66,7 +66,7 @@ cur_frm.cscript.supplier = function(doc,dt,dn) { get_server_fields('get_default_values', args, 'entries', doc, el[i].doctype, el[i].name, 1); } } - cur_frm.cscript.calc_total(doc); + cur_frm.cscript.calc_amount(doc, 1); } if(doc.supplier) get_server_fields('get_default_supplier_address', JSON.stringify({supplier: doc.supplier}),'', doc, dt, dn, 1,callback);