[UPDT] PAYROLL: Added Allowance and deduction condition for range

This commit is contained in:
Horilla
2024-07-15 15:24:02 +05:30
parent 91d137ed78
commit db21d38fd6
4 changed files with 105 additions and 5 deletions

View File

@@ -639,6 +639,7 @@ IF_CONDITION_CHOICE = [
("gt", _("Greater Than (>)")),
("le", _("Less Than or Equal To (<=)")),
("ge", _("Greater Than or Equal To (>=)")),
("range", _("Range")),
]
FIELD_CHOICE = [
("children", _("Children")),
@@ -882,6 +883,12 @@ class Allowance(HorillaModel):
if_amount = models.FloatField(
default=0.00, help_text=_("The amount of the pay-head")
)
start_range = models.FloatField(
blank=True, null=True, help_text=_("The start amount of the pay-head range")
)
end_range = models.FloatField(
blank=True, null=True, help_text=_("The end amount of the pay-head range")
)
company_id = models.ForeignKey(
Company, null=True, editable=False, on_delete=models.PROTECT
)
@@ -1191,6 +1198,12 @@ class Deduction(HorillaModel):
if_amount = models.FloatField(
default=0.00, help_text=_("The amount of the pay-head")
)
start_range = models.FloatField(
blank=True, null=True, help_text=_("The start amount of the pay-head range")
)
end_range = models.FloatField(
blank=True, null=True, help_text=_("The end amount of the pay-head range")
)
company_id = models.ForeignKey(
Company, null=True, editable=False, on_delete=models.PROTECT
)