Merge pull request #174 from CDC-IITDH/open-tier

introduced open tier
This commit is contained in:
karthik mv 2023-09-09 01:21:57 +05:30 committed by GitHub
commit 202c145550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

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

View File

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