Changeset 17111 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 29 Sep 2022, 06:18:06 (2 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.