mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-14 15:57:41 +00:00
[fix] salary slip eval, remove access to globals, #8313
This commit is contained in:
committed by
Nabin Hait
parent
549a2827e5
commit
08a42e00ae
@@ -76,7 +76,7 @@ class SalarySlip(TransactionBase):
|
||||
def eval_condition_and_formula(self, d, data):
|
||||
try:
|
||||
if d.condition:
|
||||
if not eval(d.condition, None, data):
|
||||
if not eval(d.condition, {}, data):
|
||||
return None
|
||||
amount = d.amount
|
||||
if d.amount_based_on_formula:
|
||||
|
||||
Reference in New Issue
Block a user