- Timestamp:
- 31 Dec 2024, 13:53:46 (5 days ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/locales/en/LC_MESSAGES/waeup.kofa.po
r17872 r17979 55 55 #: waeup/kofa/university/interfaces.py:298 56 56 msgid "Foreigner Initial School Fee" 57 msgstr " School Fee 3 (not used)"57 msgstr "Additional Initial School Fee" 58 58 59 59 #: waeup/kofa/university/interfaces.py:304 60 60 msgid "Foreigner Returning School Fee" 61 msgstr " School Fee 4 (not used)"61 msgstr "Additional Returning School Fee" 62 62 63 63 msgid "" -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r17963 r17979 605 605 self.assertTrue(payment.p_current) 606 606 607 # Add additional fee 608 self.certificate.school_fee_3 = 1000.0 609 error, payment = utils.setPaymentDetails('schoolfee', 610 self.student, None, None, None) 611 self.assertEqual(payment.amount_auth, 64000.0) 612 self.assertEqual(error, None) 613 self.assertTrue(payment.p_current) 614 607 615 # Add penalty fee ... 608 616 # ... for cleared … … 612 620 error, payment = utils.setPaymentDetails('schoolfee', 613 621 self.student, None, None, None) 614 self.assertEqual(payment.amount_auth, 6 3099.0)622 self.assertEqual(payment.amount_auth, 64099.0) 615 623 616 624 IWorkflowState(self.student).setState('returning') … … 662 670 self.assertEqual(payment.p_level, 100) 663 671 self.assertEqual(payment.p_session, 2004) 664 self.assertEqual(payment.amount_auth, 30 0099.0)672 self.assertEqual(payment.amount_auth, 301099.0) 665 673 self.assertEqual(payment.p_item, u'CERT1') 666 674 self.assertEqual(error, None) -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r17975 r17979 592 592 if student.is_staff: 593 593 amount /= 2 594 # Add additional school fees 595 if student.state == CLEARED and getattr(certificate, 'school_fee_3'): 596 amount += getattr(certificate, 'school_fee_3') 597 elif student.state == PAID and student.is_postgrad and getattr( 598 certificate, 'school_fee_4'): 599 amount += getattr(certificate, 'school_fee_4') 600 elif student.state == RETURNING and getattr( 601 certificate, 'school_fee_4'): 602 amount += getattr(certificate, 'school_fee_4') 594 603 else: 595 604 fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.