Skip to content

Commit

Permalink
feat: allow get_first_day and get_last_day in salary slip eval
Browse files Browse the repository at this point in the history
(cherry picked from commit 1b4c321)
  • Loading branch information
krantheman authored and mergify[bot] committed Oct 1, 2024
1 parent 66fea41 commit 2c35fe5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hrms/payroll/doctype/salary_slip/salary_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
flt,
formatdate,
get_first_day,
get_last_day,
get_link_to_form,
getdate,
money_in_words,
Expand Down Expand Up @@ -67,6 +68,8 @@ def __init__(self, *args, **kwargs):
"rounded": rounded,
"date": date,
"getdate": getdate,
"get_first_day": get_first_day,
"get_last_day": get_last_day,
"ceil": ceil,
"floor": floor,
}
Expand Down Expand Up @@ -2199,6 +2202,8 @@ def eval_tax_slab_condition(condition, eval_globals=None, eval_locals=None):
"round": round,
"date": date,
"getdate": getdate,
"get_first_day": get_first_day,
"get_last_day": get_last_day,
}

try:
Expand Down

0 comments on commit 2c35fe5

Please sign in to comment.