mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 23:22:52 +00:00
[Fix] Indentation fixed
This commit is contained in:
@@ -79,15 +79,13 @@ class SalarySlip(TransactionBase):
|
||||
if d.condition:
|
||||
if not eval(d.condition, None, data):
|
||||
return None
|
||||
|
||||
amount = d.amount
|
||||
if d.amount_based_on_formula:
|
||||
if d.formula:
|
||||
amount = eval(d.formula, None, data)
|
||||
|
||||
data[d.abbr] = amount
|
||||
|
||||
return amount
|
||||
|
||||
except NameError as err:
|
||||
frappe.throw(_("Name error: {0}".format(err)))
|
||||
except SyntaxError as err:
|
||||
|
||||
Reference in New Issue
Block a user