CBV code updates: 23rd April
This commit is contained in:
@@ -181,7 +181,7 @@ class BatchAttendance(HorillaModel):
|
||||
Batch attendance model
|
||||
"""
|
||||
|
||||
title = models.CharField(max_length=150)
|
||||
title = models.CharField(max_length=150, verbose_name=_("Title"))
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.title}-{self.id}"
|
||||
@@ -268,10 +268,10 @@ class Attendance(HorillaModel):
|
||||
verbose_name=_("Overtime"),
|
||||
)
|
||||
attendance_overtime_approve = models.BooleanField(
|
||||
default=False, verbose_name=_("Overtime approved")
|
||||
default=False, verbose_name=_("Overtime Approve")
|
||||
)
|
||||
attendance_validated = models.BooleanField(
|
||||
default=False, verbose_name=_("Attendance validated")
|
||||
default=False, verbose_name=_("Attendance Validate")
|
||||
)
|
||||
at_work_second = models.IntegerField(null=True, blank=True)
|
||||
overtime_second = models.IntegerField(
|
||||
@@ -285,7 +285,9 @@ class Attendance(HorillaModel):
|
||||
is_validate_request_approved = models.BooleanField(
|
||||
default=False, verbose_name=_("Is validate request approved")
|
||||
)
|
||||
request_description = models.TextField(null=True, max_length=255)
|
||||
request_description = models.TextField(
|
||||
null=True, max_length=255, verbose_name=_("Request Description")
|
||||
)
|
||||
request_type = models.CharField(
|
||||
max_length=18, null=True, choices=status, default="update_request"
|
||||
)
|
||||
@@ -359,6 +361,8 @@ class Attendance(HorillaModel):
|
||||
"employee_id__employee_first_name",
|
||||
"attendance_clock_in",
|
||||
]
|
||||
verbose_name = _("Attendance")
|
||||
verbose_name_plural = _("Attendances")
|
||||
|
||||
def check_min_ot(self):
|
||||
"""
|
||||
@@ -923,6 +927,8 @@ class AttendanceOverTime(HorillaModel):
|
||||
|
||||
unique_together = [("employee_id"), ("month"), ("year")]
|
||||
ordering = ["-year", "-month_sequence"]
|
||||
verbose_name = _("Hour Account")
|
||||
verbose_name_plural = _("Hour Accounts")
|
||||
|
||||
def get_month_capitalized(self):
|
||||
"""
|
||||
@@ -1246,14 +1252,18 @@ class GraceTime(HorillaModel):
|
||||
default="00:00:00",
|
||||
validators=[validate_hh_mm_ss_format],
|
||||
max_length=10,
|
||||
verbose_name=_("Allowed time"),
|
||||
verbose_name=_("Allowed Time"),
|
||||
)
|
||||
allowed_time_in_secs = models.IntegerField()
|
||||
allowed_clock_in = models.BooleanField(
|
||||
default=True, help_text=_("Allcocate this grace time for Check-In Attendance")
|
||||
default=True,
|
||||
help_text=_("Allcocate this grace time for Check-In Attendance"),
|
||||
verbose_name=_("Allowed Clock-In"),
|
||||
)
|
||||
allowed_clock_out = models.BooleanField(
|
||||
default=False, help_text=_("Allcocate this grace time for Check-Out Attendance")
|
||||
default=False,
|
||||
help_text=_("Allcocate this grace time for Check-Out Attendance"),
|
||||
verbose_name=_("Allowed Clock-Out"),
|
||||
)
|
||||
is_default = models.BooleanField(default=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user