Changeset 17111 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 29 Sep 2022, 06:18:06 (2 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/browser/pages.py
r14974 r17111 84 84 'ratio', 85 85 'custom_textline_1', 'custom_textline_2', 86 'custom_float_2')86 ) 87 87 88 88 class CustomCertificateManageFormPage(CertificateManageFormPage): … … 92 92 'ratio', 93 93 'custom_textline_1', 'custom_textline_2', 94 'c ustom_float_2', 'code')94 'code') -
main/waeup.uniben/trunk/src/waeup/uniben/locales/en/LC_MESSAGES/waeup.kofa.po
r16759 r17111 46 46 47 47 msgid "Custom Float 1 (not used)" 48 msgstr "Old Returning Discount" 48 msgstr "New Students Discount (entry session < 2020)" 49 50 msgid "Custom Float 2 (not used)" 51 msgstr "Returning Students Discount (entry session < 2020)" 49 52 50 53 msgid "" -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r16946 r17111 608 608 # Old returning students may pay less. 609 609 self.certificate.school_fee_2 = 50000.0 610 self.certificate.custom_float_ 1= 30000.0610 self.certificate.custom_float_2 = 30000.0 611 611 error, payment = utils.setPaymentDetails( 612 612 'schoolfee', self.student, None, None, None) … … 614 614 615 615 # Staff members pay less. 616 self.certificate.custom_float_ 1= None616 self.certificate.custom_float_2 = None 617 617 self.student.is_staff = True 618 618 error, payment = utils.setPaymentDetails('schoolfee', -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r16906 r17111 345 345 else: 346 346 amount = getattr(certificate, 'school_fee_1', 0.0) 347 # Old new students get a discount. 348 if student.entry_session < 2020 \ 349 and certificate.custom_float_1: 350 amount -= certificate.custom_float_1 347 351 else: 348 352 if student.is_foreigner: … … 350 354 else: 351 355 amount = getattr(certificate, 'school_fee_2', 0.0) 352 # Old returning students mightget a discount.353 if student.entry_session < 20 17\354 and certificate.custom_float_ 1:355 amount -= certificate.custom_float_ 1356 # Old returning students get a discount. 357 if student.entry_session < 2020 \ 358 and certificate.custom_float_2: 359 amount -= certificate.custom_float_2 356 360 else: 357 361 if student.state == CLEARED: … … 360 364 else: 361 365 amount = getattr(certificate, 'school_fee_1', 0.0) 366 # Old new students get a discount. 367 if student.entry_session < 2020 \ 368 and certificate.custom_float_1: 369 amount -= certificate.custom_float_1 362 370 elif student.state == PAID and student.is_postgrad: 363 371 p_session += 1 … … 402 410 amount = getattr(certificate, 'school_fee_2', 0.0) 403 411 # Old returning students might get a discount. 404 if student.entry_session < 20 17\405 and certificate.custom_float_ 1:406 amount -= certificate.custom_float_ 1412 if student.entry_session < 2020 \ 413 and certificate.custom_float_2: 414 amount -= certificate.custom_float_2 407 415 # PHARMD school fee amount is fixed and previously paid 408 416 # installments in current session are deducted.
Note: See TracChangeset for help on using the changeset viewer.