[fix] allowed more than 2 currencies in Journal Entry

This commit is contained in:
Nabin Hait 2015-10-05 13:21:38 +05:30
parent 0bc3ca02f3
commit ebbd163903

View File

@ -7,7 +7,6 @@ from frappe.utils import cstr, flt, fmt_money, formatdate
from frappe import msgprint, _, scrub from frappe import msgprint, _, scrub
from erpnext.controllers.accounts_controller import AccountsController from erpnext.controllers.accounts_controller import AccountsController
from erpnext.accounts.utils import get_balance_on, get_account_currency from erpnext.accounts.utils import get_balance_on, get_account_currency
from erpnext.accounts.party import get_party_account_currency
from erpnext.setup.utils import get_company_currency from erpnext.setup.utils import get_company_currency
@ -278,9 +277,6 @@ class JournalEntry(AccountsController):
if not self.multi_currency: if not self.multi_currency:
frappe.throw(_("Please check Multi Currency option to allow accounts with other currency")) frappe.throw(_("Please check Multi Currency option to allow accounts with other currency"))
if len(alternate_currency) > 1:
frappe.throw(_("Only one alternate currency can be used in a single Journal Entry"))
self.set_exchange_rate() self.set_exchange_rate()
for d in self.get("accounts"): for d in self.get("accounts"):