chore: fix query

(cherry picked from commit e04e67c6bf)
This commit is contained in:
Deepesh Garg
2022-07-11 19:25:18 +05:30
committed by Mergify
parent 66c5290dee
commit 1c686c732e

View File

@@ -1470,7 +1470,7 @@ 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( allow_multi_currency_invoices_against_single_party_account = frappe.db.get_singles_value(
"Accounts Settings", "allow_multi_currency_invoices_against_single_party_account" "Accounts Settings", "allow_multi_currency_invoices_against_single_party_account"
) )