Skip to content

Commit

Permalink
Merge pull request #2243 from frappe/allow-get-last-day
Browse files Browse the repository at this point in the history
feat: allow get_first_day and get_last_day in salary slip eval
  • Loading branch information
krantheman authored Oct 1, 2024
2 parents 5b7bc17 + 1b4c321 commit aa579e6
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 @@ -73,6 +74,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 @@ -2158,6 +2161,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 aa579e6

Please sign in to comment.