Changeset 11919 for main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Timestamp:
- 30 Oct 2014, 21:20:11 (10 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r11913 r11919 84 84 def test_manage_payments(self): 85 85 # Add missing configuration data 86 self.app['configuration']['2004'].third_semester_fee = 90.087 86 self.app['configuration']['2004'].clearance_fee = 120.0 88 87 self.app['configuration']['2004'].booking_fee = 150.0 … … 214 213 215 214 def test_set_payment_details(self): 216 self.app['configuration']['2004'].third_semester_fee = 90.0217 215 self.app['configuration']['2004'].booking_fee = 150.0 218 216 self.app['configuration']['2004'].maint_fee = 180.0 … … 289 287 self.assertEqual(payment.p_level, 100) 290 288 self.assertEqual(payment.p_session, 2004) 291 self.assertEqual(payment.amount_auth, 240.0)289 self.assertEqual(payment.amount_auth, 6913.0) 292 290 self.assertEqual(payment.p_item, u'') 293 291 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r11913 r11919 28 28 from waeup.kofa.students.utils import trans 29 29 from waeup.fceokene.interswitch.browser import GATEWAY_AMT 30 31 # Very special school fee configuration, should be moved to 32 # a seperate file. 33 34 ARTS = ('CRS','ISS','HIS','MUS','ECO','GEO','POL','SOS','CCA','ECU', 35 'THA','GED','GSE','PES','SPC','ENG','FRE','ARB','HAU','IGB', 36 'YOR','NCRS','NISS','NHIS','NMUS','NECO','NGEO','NPOL', 37 'NCCA','NECU','NTHA','NGED','NGSE','NPES','NSPC','NENG', 38 'NFRE','NARB','NHAU','NIGB','NYOR','NSOS') 30 39 31 40 class CustomStudentsUtils(NigeriaStudentsUtils): … … 139 148 return _('Study course data are incomplete.'), None 140 149 elif category == 'third_semester' and student.current_mode == 'nce_ft': 141 amount = academic_session.third_semester_fee 150 if student.depcode in ARTS: 151 amount = 5835 152 else: 153 amount = 6763 142 154 elif category == 'schoolfee': 143 155 try: … … 146 158 except (AttributeError, TypeError): 147 159 return _('Study course data are incomplete.'), None 148 149 # Very special school fee configuration, should be moved to150 # a seperate file.151 152 ARTS = ('CRS','ISS','HIS','MUS','ECO','GEO','POL','SOS','CCA','ECU',153 'THA','GED','GSE','PES','SPC','ENG','FRE','ARB','HAU','IGB',154 'YOR','NCRS','NISS','NHIS','NMUS','NECO','NGEO','NPOL',155 'NCCA','NECU','NTHA','NGED','NGSE','NPES','NSPC','NENG',156 'NFRE','NARB','NHAU','NIGB','NYOR','NSOS')157 160 158 161 if student.state not in (CLEARED, RETURNING):
Note: See TracChangeset for help on using the changeset viewer.