chore: Ignore validation
This commit is contained in:
parent
c83fbd5c50
commit
3cf609fab1
@ -1472,8 +1472,15 @@ class AccountsController(TransactionBase):
|
|||||||
self.get("debit_to") if self.doctype == "Sales Invoice" else self.get("credit_to")
|
self.get("debit_to") if self.doctype == "Sales Invoice" else self.get("credit_to")
|
||||||
)
|
)
|
||||||
party_account_currency = get_account_currency(party_account)
|
party_account_currency = get_account_currency(party_account)
|
||||||
|
allow_multi_currency_invoices_against_single_party_account = frappe.get_single_value(
|
||||||
|
"Accounts Settings", "allow_multi_currency_invoices_against_single_party_account"
|
||||||
|
)
|
||||||
|
|
||||||
if not party_gle_currency and (party_account_currency != self.currency):
|
if (
|
||||||
|
not party_gle_currency
|
||||||
|
and (party_account_currency != self.currency)
|
||||||
|
and not allow_multi_currency_invoices_against_single_party_account
|
||||||
|
):
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_("Party Account {0} currency ({1}) and document currency ({2}) should be same").format(
|
_("Party Account {0} currency ({1}) and document currency ({2}) should be same").format(
|
||||||
frappe.bold(party_account), party_account_currency, self.currency
|
frappe.bold(party_account), party_account_currency, self.currency
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user