introduced open tier

This commit is contained in:
karthikmurakonda 2023-09-09 01:19:17 +05:30
parent 0a979eb05e
commit 99f6e921ee
2 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,7 @@ TIERS = [
['5', 'Tier 5'],
['6', 'Tier 6'],
['7', 'Tier 7'],
['8', 'Open Tier'],
]
DEGREE_CHOICES = [

View File

@ -253,6 +253,8 @@ def getTier(compensation_gross, is_psu=False):
return True, 'psu'
if compensation_gross < 0:
raise ValueError("Negative Compensation")
elif compensation_gross < 450000: # Open Tier If less than 450,000
return True, "8"
elif compensation_gross < 600000: # Tier 7 If less than 600,000
return True, "7"
# Tier 6 If less than 800,000 and greater than or equal to 600,000