Changeset 16410 for main/kofacustom.iuokada/trunk/src
- Timestamp:
- 8 Mar 2021, 11:44:54 (4 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py
r16409 r16410 181 181 182 182 def render(self): 183 if not self.context.minimumStudentPayments(): 184 self.redirect(self.url(self.context)) 185 return 183 186 studentview = StudentBasePDFFormPage(self.context.student, 184 187 self.request, self.omit_fields) -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/student.py
r16409 r16410 72 72 if self.sponsor in ['bauchi', 'federalgov', 'kano']: 73 73 return True 74 if self.is_jupeb: 75 return True 74 76 try: 75 77 certificate = self['studycourse'].certificate … … 81 83 and ticket.p_session >= self.current_session \ 82 84 and ticket.p_category in ('schoolfee', 'schoolfee40', 83 'secondinstal', 'clearance', 84 'jupeb_acc'): 85 'secondinstal', 'clearance',): 85 86 total_amount += ticket.amount_auth 86 87 if self.is_fresh: -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/viewlets.py
r16298 r16410 29 29 from waeup.kofa.students.browser import ( 30 30 ExportPDFClearanceSlip, StudyCourseDisplayFormPage, 31 StudyLevelDisplayFormPage, StudentBaseDisplayFormPage) 31 StudyLevelDisplayFormPage, StudentBaseDisplayFormPage, 32 StudentPersonalEditFormPage) 32 33 from waeup.kofa.students.viewlets import ( 33 34 AddPreviousPaymentActionButton, AddBalancePaymentActionButton, … … 80 81 grok.order(10) 81 82 grok.context(ICustomStudent) 82 grok.view(Student BaseDisplayFormPage)83 grok.view(StudentPersonalEditFormPage) 83 84 grok.require('waeup.viewStudent') 84 85 text = _('Download bio data slip') … … 88 89 @property 89 90 def target_url(self): 91 if not self.context.minimumStudentPayments(): 92 return '' 90 93 #if not self.context.is_fresh: 91 94 # return ''
Note: See TracChangeset for help on using the changeset viewer.