Changeset 17151
- Timestamp:
- 30 Oct 2022, 21:46:11 (2 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/locales/en/LC_MESSAGES/waeup.kofa.po
r17111 r17151 6 6 "Last-Translator: Henrik Bettermann <henrik@waeup.org>\n" 7 7 "Language-Team: \n" 8 "Language: en\n" 8 9 "MIME-Version: 1.0\n" 9 10 "Content-Type: text/plain; charset=iso-8859-1\n" 10 11 "Content-Transfer-Encoding: 8bit\n" 11 "Language: en\n" 12 "X-Generator: Poedit 1.6.5\n" 12 "X-Generator: Poedit 3.2\n" 13 13 14 14 #: waeup/kofa/applicants/viewlets.py:137 … … 46 46 47 47 msgid "Custom Float 1 (not used)" 48 msgstr "New Students Discount (entry session < 2020)"48 msgstr "New Students Discount" 49 49 50 50 msgid "Custom Float 2 (not used)" 51 msgstr "Returning Students Discount (entry session < 2020)"51 msgstr "Returning Students Discount" 52 52 53 53 msgid "" -
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.