Changeset 17151 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 30 Oct 2022, 21:46:11 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r17145 r17151 338 338 except (AttributeError, TypeError): 339 339 return _('Study course data are incomplete.'), None 340 discount_year = 2017 341 if student.is_postgrad: 342 discount_year = 2020 340 343 if previous_session: 341 344 # Students can pay for previous sessions in all workflow states. … … 348 351 amount = getattr(certificate, 'school_fee_1', 0.0) 349 352 # Old new students get a discount. 350 if student.entry_session < 2020\353 if student.entry_session < discount_year \ 351 354 and certificate.custom_float_1: 352 355 amount -= certificate.custom_float_1 … … 357 360 amount = getattr(certificate, 'school_fee_2', 0.0) 358 361 # Old returning students get a discount. 359 if student.entry_session < 2020\362 if student.entry_session < discount_year \ 360 363 and certificate.custom_float_2: 361 364 amount -= certificate.custom_float_2 … … 367 370 amount = getattr(certificate, 'school_fee_1', 0.0) 368 371 # Old new students get a discount. 369 if student.entry_session < 2020\372 if student.entry_session < discount_year \ 370 373 and certificate.custom_float_1: 371 374 amount -= certificate.custom_float_1 … … 389 392 else: 390 393 amount = getattr(certificate, 'school_fee_2', 0.0) 394 # Old returning students might get a discount. 395 if student.entry_session < discount_year \ 396 and certificate.custom_float_2: 397 amount -= certificate.custom_float_2 391 398 elif student.state == RETURNING: 392 399 # In case of returning school fee payment the payment session … … 412 419 amount = getattr(certificate, 'school_fee_2', 0.0) 413 420 # Old returning students might get a discount. 414 if student.entry_session < 2020\421 if student.entry_session < discount_year \ 415 422 and certificate.custom_float_2: 416 423 amount -= certificate.custom_float_2
Note: See TracChangeset for help on using the changeset viewer.