From ef027e9030c6ba4c7fc46fa29f569344ee44d581 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 3 May 2017 11:51:39 +0530 Subject: [PATCH] Correct args to the fmt_money function --- erpnext/accounts/doctype/account/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py index 11f376d68cb..998fee97323 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -189,8 +189,8 @@ class Account(Document): if account_balance != stock_balance: frappe.throw(_('Account balance ({0}) and stock value ({1}) must be same')\ - .format(fmt_money(account_balance, self.account_currency), - fmt_money(stock_balance, self.account_currency))) + .format(fmt_money(account_balance, currency=self.account_currency), + fmt_money(stock_balance, currency=self.account_currency))) elif self.warehouse: self.warehouse = None