diff --git a/erpnext/hr/doctype/salary_slip/salary_slip.py b/erpnext/hr/doctype/salary_slip/salary_slip.py index 1bceff7803..3ffa4dd184 100644 --- a/erpnext/hr/doctype/salary_slip/salary_slip.py +++ b/erpnext/hr/doctype/salary_slip/salary_slip.py @@ -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