Changeset 13405 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 7 Nov 2015, 07:20:25 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r13380 r13405 136 136 @property 137 137 def note(self): 138 text = '' 139 if self.context.p_category == 'schoolfee' and self.context.p_level == 100: 140 text += '\n\n Amounts include Naira 250 eTranzact transaction ' 141 text += 'charge and Naira 2000 cost of matriculation gown.' 142 elif self.context.p_category in ('clearance', 'schoolfee'): 143 text += '\n\n Amounts include Naira 250 eTranzact transaction charge.' 144 return text 138 student = self.context.student 139 current_session = student['studycourse'].current_session 140 try: 141 academic_session = grok.getSite()['configuration'][str(current_session)] 142 except KeyError: 143 academic_session = None 144 text = '\n\n The amounts include: ' 145 text += '250.0 Naira Transaction Charge' 146 if self.context.p_category == 'schoolfee_incl' and academic_session: 147 text += (', %s Naira Student Welfare Assurance Fee and %s Naira Students\' Union Dues' 148 % (academic_session.welfare_fee, academic_session.union_fee)) 149 elif self.context.p_category == 'clearance_incl' and academic_session: 150 text += (', %s Naira Matriculation Gown Fee and %s Naira Lapel/File Fee' 151 % (academic_session.matric_gown_fee, academic_session.lapel_fee)) 152 return text + '.' 145 153 146 154 class CustomStudyLevelDisplayFormPage(StudyLevelDisplayFormPage): -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r13400 r13405 187 187 return _(u'Amount could not be determined.'), None 188 188 # Add session specific penalty fee. 189 if category == 'schoolfee'and student.is_postgrad:189 if category.startswith('schoolfee') and student.is_postgrad: 190 190 amount += academic_session.penalty_pg 191 elif category == 'schoolfee':191 elif category.startswith('schoolfee'): 192 192 amount += academic_session.penalty_ug 193 193 # Create ticket.
Note: See TracChangeset for help on using the changeset viewer.