[UPDT] PAYROLL: Changed signals to signals.py

This commit is contained in:
Horilla
2025-02-28 18:56:23 +05:30
parent 123e791f98
commit add2f4fd33
6 changed files with 292 additions and 286 deletions

View File

@@ -236,17 +236,6 @@ def base64_encode(value):
pass
@register.filter(name="current_month_record")
def current_month_record(queryset):
current_month_start_date = datetime.now().replace(day=1)
next_month_start_date = current_month_start_date + timedelta(days=31)
return queryset.filter(
start_datetime__gte=current_month_start_date,
start_datetime__lt=next_month_start_date,
).order_by("start_datetime")
@register.filter
def get_item(list, i):
try: