Submitting Purchase invoice from non-base currency supplier

Dears

I have an issue submitting a purchase invoice from supplier with non-base currency account.
The system will give message “Please check Multi Currency option to allow accounts with other currency”.

Could you please help me resolve this issue?

Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 69, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 54, in handle
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 45, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 83, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1599, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/desk/form/save.py”, line 20, in savedocs
doc.submit()
File “apps/frappe/frappe/model/document.py”, line 1015, in submit
return self._submit()
File “apps/frappe/frappe/model/document.py”, line 994, in _submit
return self.save()
File “apps/frappe/frappe/model/document.py”, line 301, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 352, in _save
self.run_post_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1090, in run_post_save_methods
self.run_method(“on_submit”)
File “apps/frappe/frappe/model/document.py”, line 928, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1268, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1250, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 925, in fn
return method_object(*args, **kwargs)
File “apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py”, line 524, in on_submit
self.process_common_party_accounting()
File “apps/erpnext/erpnext/controllers/accounts_controller.py”, line 1809, in process_common_party_accounting
self.create_advance_and_reconcile(party_link)
File “apps/erpnext/erpnext/controllers/accounts_controller.py”, line 1859, in create_advance_and_reconcile
jv.save()
File “apps/frappe/frappe/model/document.py”, line 301, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 323, in save
return self.insert()
File “apps/frappe/frappe/model/document.py”, line 255, in insert
self.run_before_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1056, in run_before_save_methods
self.run_method(“validate”)
File “apps/frappe/frappe/model/document.py”, line 928, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1268, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1250, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 925, in fn
return method_object(*args, **kwargs)
File “apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py”, line 51, in validate
self.validate_multi_currency()
File “apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py”, line 647, in validate_multi_currency
frappe.throw(
(“Please check Multi Currency option to allow accounts with other currency”))
File “apps/frappe/frappe/init.py”, line 524, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 492, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 444, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Please check Multi Currency option to allow accounts with other currency

You may have to set up your liability account in the other currency you are dealing with.

Hi Pawan

The supplier account is actually linked to a liability account in the same currency of the invoice which is non-bae currency.

If you need further information to know my problem please tell me & appreciate your help in this issue.

From your error trace it appears that you may have to check multi-currency check box.

Thanks Pawan for your response,
But I’m submitting purchase invoice, so the journal entry is behind (background) process by the system. I cannot control it or check this option.

Do you have a way to check that box or whatever way to maintain it?
Thanks again…

You may have to change the code on the server side possibly or try a server script.