[Fix] Fixed condition and formula issue in Salary Slip

This commit is contained in:
Kanchan Chauhan 2016-12-01 15:31:38 +05:30
parent de932911b5
commit faa525e4f1

View File

@ -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