Public Holidays handling
Currently, all Users need to book public holidays manually.
Instead, add public holidays to a company similar to sick days. Then, the public holidays reduce the amount of work time via contracted_work_time_at
.
class PublicHolidayDay(models.Model):
name = models.CharField(max_length=99)
date = models.DateField()
weight = models.DecimalField(default=Decimal(1.0))
def __str__(self):
return self.name
class Meta:
verbose_name = "Public Holiday Day"
verbose_name_plural = "Public Holiday Days"
ordering = ["-date", "name"]