- Timestamp:
- 6 Mar 2021, 21:29:49 (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
r16402 r16409 132 132 # self.redirect(self.url(self.context)) 133 133 # return 134 minamount = 200000 135 if not self.context.minimumStudentPayments(minamount): 136 self.flash('Please make required payments first ' 137 '(at least in the amount of %s Naira).' % minamount, 134 if not self.context.minimumStudentPayments(): 135 self.flash('Please make 40% of your tution fee payments first.', 138 136 type="warning") 139 137 self.redirect(self.url(self.context, 'view_personal')) … … 144 142 145 143 class CustomStudentPersonalManageFormPage(NigeriaStudentPersonalManageFormPage): 146 """ Page to editpersonal data144 """ Page to manage personal data 147 145 """ 148 146 form_fields = grok.AutoFields(ICustomStudentPersonal) -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/student.py
r16408 r16409 67 67 return False 68 68 69 def minimumStudentPayments(self , minamount):69 def minimumStudentPayments(self): 70 70 """Need to access edit_personal. Only in iuokada package. 71 71 """ … … 80 80 if ticket.p_state == 'paid' \ 81 81 and ticket.p_session >= self.current_session \ 82 and ticket.p_category in ('schoolfee', 'schoolfee40', 'secondinstal'): 82 and ticket.p_category in ('schoolfee', 'schoolfee40', 83 'secondinstal', 'clearance', 84 'jupeb_acc'): 83 85 total_amount += ticket.amount_auth 84 86 if self.is_fresh: -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_browser.py
r16402 r16409 149 149 self.browser.getLink("Bio Data").click() 150 150 self.browser.getLink("Edit registration bio data").click() 151 self.assertTrue("Please make required payments first" in self.browser.contents)151 self.assertTrue("Please make 40% of your tution fee payments first." in self.browser.contents) 152 152 self.assertEqual(self.browser.url, self.personal_path) 153 153
Note: See TracChangeset for help on using the changeset viewer.