Changeset 14229 for main/waeup.aaue/trunk/src/waeup/aaue
- Timestamp:
- 27 Oct 2016, 07:13:07 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/locales/en/LC_MESSAGES/waeup.kofa.po
r14227 r14229 141 141 msgstr "" 142 142 "Course ${a} cannot be registered. You have to pay for the 2nd semester first." 143 144 #: school_fee_1 145 msgid "Initial School Fee" 146 msgstr "School Fees New Students" 147 148 #: school_fee_2 149 msgid "Returning School Fee" 150 msgstr "School Fees Returning Students (2015)" 151 152 #: school_fee_3 153 msgid "Foreigner Initial School Fee" 154 msgstr "School Fees Returning Students (<2015)" 155 156 #: school_fee_4 157 msgid "Foreigner Returning School Fee" 158 msgstr "School Fees 4 (not used):" -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
r14089 r14229 54 54 self.student['studycourse'].certificate.school_fee_1 = 6666.0 55 55 self.student['studycourse'].certificate.school_fee_2 = 7777.0 56 self.student['studycourse'].certificate.school_fee_3 = 8888.0 56 57 self.student['studycourse'].certificate.study_mode = 'special_pg_ft' 57 58 self.student.nationality = u'NG' … … 92 93 self.assertEqual(payment.p_level, 200) 93 94 self.assertEqual(payment.p_session, 2005) 94 self.assertEqual(payment.amount_auth, 7865.0)95 self.assertEqual(payment.amount_auth, 8976.0) 95 96 self.assertEqual(payment.p_item, u'CERT1') 96 97 self.assertEqual(error, None) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r14160 r14229 267 267 "are allowed to pay by instalments."), None 268 268 if student.state == CLEARED or category == 'schoolfee_2': 269 if student.is_foreigner: 270 amount = getattr(certificate, 'school_fee_3', 0.0) 271 else: 272 amount = getattr(certificate, 'school_fee_1', 0.0) 269 amount = getattr(certificate, 'school_fee_1', 0.0) 273 270 # Cut school fee by 50% 274 271 if category in ('schoolfee_1', 'schoolfee_2'): … … 287 284 except KeyError: 288 285 return _(u'Session configuration object is not available.'), None 289 if student. is_foreigner:290 amount = getattr(certificate, 'school_fee_ 4', 0.0)286 if student.entry_session == 2015: 287 amount = getattr(certificate, 'school_fee_2', 0.0) 291 288 else: 292 amount = getattr(certificate, 'school_fee_ 2', 0.0)289 amount = getattr(certificate, 'school_fee_3', 0.0) 293 290 else: 294 291 return _('Wrong state.'), None
Note: See TracChangeset for help on using the changeset viewer.