From e393c620867a5cce427a213fd0a0e222926fc5e6 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 14 Apr 2016 18:15:42 +0530 Subject: [PATCH] [fix] Set debit / credit as per field precision --- erpnext/accounts/doctype/journal_entry/journal_entry.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js index 27a121db61..0a831ca3f0 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.js +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.js @@ -400,11 +400,11 @@ $.extend(erpnext.journal_entry, { var row = locals[cdt][cdn]; frappe.model.set_value(cdt, cdn, "debit", - flt(flt(row.debit_in_account_currency)*row.exchange_rate), precision("debit", row)); + flt(flt(row.debit_in_account_currency)*row.exchange_rate, precision("debit", row))); frappe.model.set_value(cdt, cdn, "credit", - flt(flt(row.credit_in_account_currency)*row.exchange_rate), precision("credit", row)); - + flt(flt(row.credit_in_account_currency)*row.exchange_rate, precision("credit", row))); + cur_frm.cscript.update_totals(frm.doc); },