- Timestamp:
- 7 Oct 2024, 00:37:03 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
r17932 r17938 141 141 ), None 142 142 amount = getattr(certificate, 'school_fee_2', 0.0) 143 # Add surcharges for students in FMED and FBM 144 if student.faccode == 'FMED': 145 fmed_surcharge = 0.0 146 if divmod(p_level,100)[0] == 3: 147 fmed_surcharge = 296000.0 148 elif divmod(p_level,100)[0] == 4: 149 fmed_surcharge = 224700.0 150 elif divmod(p_level,100)[0] == 5: 151 fmed_surcharge = 220700.0 152 elif divmod(p_level,100)[0] == 6: 153 fmed_surcharge = 244950.0 154 amount += fmed_surcharge 155 if student.faccode == 'FBM': 156 fbm_surcharge = 0.0 157 if divmod(p_level,100)[0] == 3: 158 fbm_surcharge = 146000.0 159 elif divmod(p_level,100)[0] == 4: 160 fbm_surcharge = 204700.0 161 elif divmod(p_level,100)[0] == 5: 162 fbm_surcharge = 229950.0 163 if student.depcode == 'NSG' and divmod(p_level,100)[0] == 3: 164 fbm_surcharge -= 50000.0 165 amount += fbm_surcharge 143 166 # Add non-local surcharges 144 167 if amount and not local(student): 145 168 non_local_surcharge = 40000 146 if student.faccode in ('FAG', 'FCP', 'FES',147 'FSS', 'FMS', 'FSC',148 'FAT', 'FED'):149 if p_level == 200:150 non_local_surcharge = 47000151 if p_level == 500:152 non_local_surcharge = 50000153 if student.faccode == 'FET':154 if p_level == 500:155 non_local_surcharge = 31000169 #if student.faccode in ('FAG', 'FCP', 'FES', 170 # 'FSS', 'FMS', 'FSC', 171 # 'FAT', 'FED'): 172 # if p_level == 200: 173 # non_local_surcharge = 47000 174 # if p_level == 500: 175 # non_local_surcharge = 50000 176 #if student.faccode == 'FET': 177 # if p_level == 500: 178 # non_local_surcharge = 31000 156 179 amount += non_local_surcharge 157 180 elif category == 'clearance':
Note: See TracChangeset for help on using the changeset viewer.