mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
refactor: fix incorrect conditon
This commit is contained in:
@@ -112,9 +112,11 @@ def get_companies_with_frozen_limits():
|
|||||||
if not d.accounts_frozen_till_date:
|
if not d.accounts_frozen_till_date:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if d.role_allowed_for_frozen_entries in frappe.get_roles() or frappe.session.user == "Administrator":
|
if (
|
||||||
continue
|
d.role_allowed_for_frozen_entries not in frappe.get_roles()
|
||||||
companies_with_frozen_limits[d.name] = getdate(d.accounts_frozen_till_date)
|
and frappe.session.user != "Administrator"
|
||||||
|
):
|
||||||
|
companies_with_frozen_limits[d.name] = getdate(d.accounts_frozen_till_date)
|
||||||
return companies_with_frozen_limits
|
return companies_with_frozen_limits
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user