[UPDT] PAYROLL: Added Allowance and deduction condition for range
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user