Changeset 9889 for main/waeup.futminna
- Timestamp:
- 15 Jan 2013, 15:14:00 (12 years ago)
- Location:
- main/waeup.futminna/trunk/src/waeup/futminna/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.futminna/trunk/src/waeup/futminna/students/tests/test_browser.py
r9888 r9889 176 176 177 177 # Penalty fee is taken into consideration 178 self.app['configuration']['2005'].penalty_ug = 9999.0 179 error, payment = utils.setPaymentDetails('schoolfee',self.student) 180 self.assertEqual(error, u'School fee payment disabled.') 178 181 self.app['configuration']['2005'].penalty_ug = 3000.0 179 182 error, payment = utils.setPaymentDetails('schoolfee',self.student) -
main/waeup.futminna/trunk/src/waeup/futminna/students/utils.py
r9888 r9889 149 149 p_item = self.getAccommodationDetails(student)['bt'] 150 150 amount = academic_session.booking_fee 151 if 9999.0 in (academic_session.penalty_pg, academic_session.penalty_ug): 152 return _('School fee payment disabled.'), None 151 153 if amount in (0.0, None): 152 154 return _('Amount could not be determined.'), None … … 160 162 # Add session specific penalty fee. 161 163 if category == 'schoolfee' and student.is_postgrad: 162 if academic_session.penalty_pg == 9999.0: 163 amount = 0.0 164 else: 165 amount += academic_session.penalty_pg 164 amount += academic_session.penalty_pg 166 165 elif category == 'schoolfee': 167 if academic_session.penalty_ug == 9999.0: 168 amount = 0.0 169 else: 170 amount += academic_session.penalty_ug 166 amount += academic_session.penalty_ug 171 167 payment = createObject(u'waeup.StudentOnlinePayment') 172 168 timestamp = ("%d" % int(time()*10000))[1:]
Note: See TracChangeset for help on using the changeset viewer.