[Fix] Fixed condition and formula issue in Salary Slip
This commit is contained in:
parent
de932911b5
commit
faa525e4f1
@ -84,6 +84,7 @@ class SalarySlip(TransactionBase):
|
||||
if d.amount_based_on_formula:
|
||||
if d.formula:
|
||||
amount = eval(d.formula, None, data)
|
||||
if amount:
|
||||
data[d.abbr] = amount
|
||||
return amount
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user