mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
chore: fix typo
This commit is contained in:
@@ -422,7 +422,7 @@ def update_outstanding_amt(
|
||||
def validate_frozen_account(company, account, adv_adj=None):
|
||||
frozen_account = frappe.get_cached_value("Account", account, "freeze_account")
|
||||
if frozen_account == "Yes" and not adv_adj:
|
||||
role_allowed_for_frozen_entries = frappe.db_get_cached_value(
|
||||
role_allowed_for_frozen_entries = frappe.db.get_cached_value(
|
||||
"Company", company, "role_allowed_for_frozen_entries"
|
||||
)
|
||||
|
||||
|
||||
@@ -805,7 +805,7 @@ def validate_party_frozen_disabled(company, party_type, party_name):
|
||||
if party.disabled:
|
||||
frappe.throw(_("{0} {1} is disabled").format(party_type, party_name), PartyDisabled)
|
||||
elif party.get("is_frozen"):
|
||||
role_allowed_for_frozen_entries = frappe.db_get_cached_value(
|
||||
role_allowed_for_frozen_entries = frappe.db.get_cached_value(
|
||||
"Company", company, "role_allowed_for_frozen_entries"
|
||||
)
|
||||
if role_allowed_for_frozen_entries not in frappe.get_roles():
|
||||
|
||||
Reference in New Issue
Block a user