Merge pull request #47482 from frappe/mergify/bp/version-15-hotfix/pr-47380

fix: broken CI - uae vat 201 tests failing (backport #47380)
This commit is contained in:
ruthra kumar
2025-05-09 15:00:55 +05:30
committed by GitHub

View File

@@ -214,13 +214,12 @@ def get_or_create_account(company_name, account):
default_root_type = "Liability"
root_type = account.get("root_type", default_root_type)
or_filters = {"account_name": account.get("account_name")}
if account.get("account_number"):
or_filters.update({"account_number": account.get("account_number")})
existing_accounts = frappe.get_all(
"Account",
filters={"company": company_name, "root_type": root_type},
or_filters={
"account_name": account.get("account_name"),
"account_number": account.get("account_number"),
},
"Account", filters={"company": company_name, "root_type": root_type}, or_filters=or_filters
)
if existing_accounts: