Hasjob currently defines currency buckets in two places. These two are out of sync. They should either be rewritten to match, or they should be generated from a single source of truth.
|
pay_graph_buckets = { |
|
'INR': ( |
|
range(0, 200000, 25000) + |
|
range(200000, 2000000, 50000) + |
|
range(2000000, 10000000, 100000) + |
|
range(10000000, 100000000, 1000000) + |
|
[100000000]), |
|
'USD': ( |
|
range(0, 200000, 5000) + |
|
range(200000, 1000000, 50000) + |
|
range(1000000, 10000000, 100000) + |
|
[10000000]) |
|
} |
|
pay_graph_buckets['EUR'] = pay_graph_buckets['USD'] |
|
pay_graph_buckets['SGD'] = pay_graph_buckets['USD'] |
|
pay_graph_buckets['GBP'] = pay_graph_buckets['USD'] |
|
window.Hasjob.PaySlider.range = function(currency){ |
|
if (currency === 'INR') { |
|
return { |
|
'min': [0, 5000], |
|
'15%': [100000, 10000], |
|
'30%': [200000, 50000], |
|
'70%': [2000000, 100000], |
|
'85%': [10000000, 1000000], |
|
'max': [100000000] |
|
} |
|
} else { |
|
return { |
|
'min': [0, 5000], |
|
'2%': [200000, 50000], |
|
'10%': [1000000, 100000], |
|
'max': [10000000, 100000] |
|
} |
|
} |
|
}; |