mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
chore: pre-commit
This commit is contained in:
@@ -37,8 +37,9 @@ class RepostItemValuation(Document):
|
|||||||
if not acc_settings.acc_frozen_upto:
|
if not acc_settings.acc_frozen_upto:
|
||||||
return
|
return
|
||||||
if getdate(self.posting_date) <= getdate(acc_settings.acc_frozen_upto):
|
if getdate(self.posting_date) <= getdate(acc_settings.acc_frozen_upto):
|
||||||
if acc_settings.frozen_accounts_modifier and frappe.session.user in get_users_with_role(
|
if (
|
||||||
acc_settings.frozen_accounts_modifier
|
acc_settings.frozen_accounts_modifier
|
||||||
|
and frappe.session.user in get_users_with_role(acc_settings.frozen_accounts_modifier)
|
||||||
):
|
):
|
||||||
frappe.msgprint(_("Caution: This might alter frozen accounts."))
|
frappe.msgprint(_("Caution: This might alter frozen accounts."))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user