mattoofahaddcube commited on
Commit
9490fc6
1 Parent(s): b398e78

dynami update

Browse files
Files changed (1) hide show
  1. functions.py +6 -0
functions.py CHANGED
@@ -80,6 +80,7 @@ class StreamlitFunctions:
80
  st.session_state.user_initial_desired_net = (
81
  st.session_state.user_initial_desired_net_state
82
  )
 
83
 
84
  @staticmethod
85
  def reset_initial_salary_parameter():
@@ -157,6 +158,7 @@ class StreamlitFunctions:
157
  st.session_state.tax_on_current_salary = (
158
  st.session_state.tax_on_current_salary_state
159
  )
 
160
 
161
  st.number_input(
162
  "Current monthly Salary (PKR)",
@@ -173,6 +175,7 @@ class StreamlitFunctions:
173
 
174
  def update_current_salary_parameter():
175
  st.session_state.current_salary = st.session_state.current_salary_state
 
176
 
177
  st.number_input(
178
  "Current monthly salary after Tax (PKR)",
@@ -187,6 +190,7 @@ class StreamlitFunctions:
187
  st.session_state.desired_increment_percentage = (
188
  st.session_state.desired_increment_percentage_state
189
  )
 
190
 
191
  st.number_input(
192
  "Desired salary increment (as a decimal)",
@@ -202,6 +206,7 @@ class StreamlitFunctions:
202
  st.session_state.daily_cost_of_travel = (
203
  st.session_state.daily_cost_of_travel_state
204
  )
 
205
 
206
  st.number_input(
207
  "Daily cost of travel (PKR)",
@@ -216,6 +221,7 @@ class StreamlitFunctions:
216
  st.session_state.physical_days_per_week = (
217
  st.session_state.physical_days_per_week_state
218
  )
 
219
 
220
  st.number_input(
221
  "Number of On-Site days per week",
 
80
  st.session_state.user_initial_desired_net = (
81
  st.session_state.user_initial_desired_net_state
82
  )
83
+ st.session_state.type_to_calculate = "desired_salary"
84
 
85
  @staticmethod
86
  def reset_initial_salary_parameter():
 
158
  st.session_state.tax_on_current_salary = (
159
  st.session_state.tax_on_current_salary_state
160
  )
161
+ st.session_state.type_to_calculate = "tax_on_current_salary"
162
 
163
  st.number_input(
164
  "Current monthly Salary (PKR)",
 
175
 
176
  def update_current_salary_parameter():
177
  st.session_state.current_salary = st.session_state.current_salary_state
178
+ st.session_state.type_to_calculate = "salary_parameters"
179
 
180
  st.number_input(
181
  "Current monthly salary after Tax (PKR)",
 
190
  st.session_state.desired_increment_percentage = (
191
  st.session_state.desired_increment_percentage_state
192
  )
193
+ st.session_state.type_to_calculate = "salary_parameters"
194
 
195
  st.number_input(
196
  "Desired salary increment (as a decimal)",
 
206
  st.session_state.daily_cost_of_travel = (
207
  st.session_state.daily_cost_of_travel_state
208
  )
209
+ st.session_state.type_to_calculate = "salary_parameters"
210
 
211
  st.number_input(
212
  "Daily cost of travel (PKR)",
 
221
  st.session_state.physical_days_per_week = (
222
  st.session_state.physical_days_per_week_state
223
  )
224
+ st.session_state.type_to_calculate = "salary_parameters"
225
 
226
  st.number_input(
227
  "Number of On-Site days per week",