Changeset 18364 for main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Timestamp:
- 18 Nov 2026, 15:10:11 (4 days ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 2 edited
-
tests/test_utils.py (modified) (1 diff)
-
utils.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
r15594 r18364 84 84 IWorkflowState(self.student).setState('returning') 85 85 error, payment = utils.setPaymentDetails('schoolfee',self.student) 86 self.assertEqual(payment.amount_auth, 15974) # 15875+ 9986 self.assertEqual(payment.amount_auth, 29099.0) # 20000 + 99 87 87 self.student['studycourse'].previous_verdict = 'O' 88 88 error, payment = utils.setPaymentDetails('schoolfee',self.student) 89 self.assertEqual(payment.amount_auth, 15875)89 self.assertEqual(payment.amount_auth, 29000.0) 90 90 return -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r18262 r18364 154 154 amount = 40000.0 155 155 elif category.startswith('schoolfee'): 156 increment_2022 = 0157 156 if category == 'schoolfee_pde1': 158 157 if not student.current_mode.startswith('pd'): … … 228 227 # NCE 229 228 elif not student.current_mode.endswith('_sw'): 230 # in 2022 NCE school fees have encreased231 increment_2022 = 11000232 229 # PRENCE 233 230 if student.current_level == 10 and student.state == CLEARED: 234 if student.depcode in ARTS: 235 amount = 24500 236 else: 237 amount = 25000 231 amount = 25000 238 232 # NCE I fresh 239 233 elif student.current_level == 100 and student.state == CLEARED: 240 if student.depcode in ARTS: 241 amount = 28000 242 else: 243 amount = 28500 234 amount = 42000 244 235 # SIWES Fee 245 236 if student.depcode in ('AGE', 'BED', 'FAA', 'HEC', 'CSC', 'MUS') \ … … 258 249 elif student.current_level in (100, 110, 120) and \ 259 250 student.state == RETURNING: 260 if student.depcode in ARTS: 261 amount = 24500 262 else: 263 amount = 25000 251 amount = 31500 264 252 # NCE III third semester 265 253 elif category == 'schoolfee_third': 266 254 amount = 18000 267 increment_2022 = 0268 255 # NCE III 269 256 elif student.current_level in (200, 210, 220): 270 if student.depcode in ARTS: 271 amount = 15375 272 else: 273 amount = 15875 274 increment_2022 = 20125 257 amount = 29000 275 258 # NCE III repeater 276 259 elif student.current_level in (300, 310, 320) and \ 277 260 student.current_verdict == 'O': 278 if student.depcode in ARTS: 279 amount = 13475 280 else: 281 amount = 13975 282 increment_2022 = 11000 261 amount = 45000 283 262 # NCE III spillover 284 263 elif student.current_level in (300, 310, 320) and \ 285 264 student.current_verdict == 'B': 286 if student.depcode in ARTS: 287 amount = 13475 288 else: 289 amount = 13975 290 increment_2022 = 20125 265 amount = 45000 291 266 # NCE III second spillover 292 267 elif student.current_level in (400, 410, 420) and \ 293 268 student.current_verdict == 'B': 294 if student.depcode in ARTS: 295 amount = 13475 296 else: 297 amount = 13975 298 increment_2022 = 20125 269 amount = 45000 299 270 else: 300 271 # NCE I fresh sw … … 360 331 if academic_session == None: 361 332 return _(u'Session configuration object is not available.'), None 362 if amount and p_session > 2021:363 amount += increment_2022364 333 else: 365 334 fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.
