Changeset 12148 for main/waeup.kwarapoly/trunk
- Timestamp:
- 5 Dec 2014, 10:01:59 (10 years ago)
- Location:
- main/waeup.kwarapoly/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/CHANGES.txt
r12142 r12148 4 4 1.2dev (unreleased) 5 5 =================== 6 7 * Maint payment checking disabled on Dec 5th, 2014. 6 8 7 9 * Nationality and sex must be edited by pre-admission applicants. -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r11922 r12148 80 80 notify(grok.ObjectModifiedEvent(self.student)) 81 81 82 83 def test_schoolfee_ticket_creation(self):82 # Maint payment checking disabled on 5th Dec 2014 83 def xx_test_schoolfee_ticket_creation(self): 84 84 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 85 85 self.browser.open(self.payments_path) -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py
r12049 r12148 104 104 IWorkflowState(self.student).setState('cleared') 105 105 self.browser.open(self.payments_path + '/addop') 106 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 107 self.browser.getControl("Create ticket").click() 108 self.assertMatches('...Book and pay for accommodation first...', 109 self.browser.contents) 110 111 # In KwaraPoly only returning students can create school fee payment 112 # without having paid accommodation fee 106 107 # Maint payment checking disabled on 5th Dec 2014 108 #self.browser.getControl(name="form.p_category").value = ['schoolfee'] 109 #self.browser.getControl("Create ticket").click() 110 #self.assertMatches('...Book and pay for accommodation first...', 111 # self.browser.contents) 112 ## In KwaraPoly only returning students can create school fee payment 113 ## without having paid accommodation fee 114 113 115 IWorkflowState(self.student).setState('returning') 114 116 configuration = createObject('waeup.SessionConfiguration') … … 220 222 self.assertEqual(pt_ft(self.student), 'ft') 221 223 222 error, payment = utils.setPaymentDetails('schoolfee',self.student) 223 self.assertEqual(error, 224 'Book and pay for accommodation first before making' 225 ' school fee payments.') 226 # We add a fake maint. payment ticket to meet the condition 227 maint_payment = createObject('waeup.StudentOnlinePayment') 228 self.student['payments']['any_key'] = maint_payment 229 maint_payment.p_category = 'hostel_maintenance' 230 maint_payment.p_state = 'paid' 231 maint_payment.p_session = 2004 224 # Maint payment checking disabled on 5th Dec 2014 225 #error, payment = utils.setPaymentDetails('schoolfee',self.student) 226 #self.assertEqual(error, 227 # 'Book and pay for accommodation first before making' 228 # ' school fee payments.') 229 ## We add a fake maint. payment ticket to meet the condition 230 #maint_payment = createObject('waeup.StudentOnlinePayment') 231 #self.student['payments']['any_key'] = maint_payment 232 #maint_payment.p_category = 'hostel_maintenance' 233 #maint_payment.p_state = 'paid' 234 #maint_payment.p_session = 2004 235 232 236 error, payment = utils.setPaymentDetails('schoolfee',self.student) 233 237 self.assertEqual(payment.p_level, 100) -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r12049 r12148 131 131 132 132 def _maintPaymentMade(self, student, session): 133 if len(student['payments']): 134 for ticket in student['payments'].values(): 135 if ticket.p_category == 'hostel_maintenance' and \ 136 ticket.p_session == session and ticket.p_state == 'paid': 137 return True 138 return False 133 134 # Maint payment checking disabled on 5th Dec 2014 135 return True 136 137 #if len(student['payments']): 138 # for ticket in student['payments'].values(): 139 # if ticket.p_category == 'hostel_maintenance' and \ 140 # ticket.p_session == session and ticket.p_state == 'paid': 141 # return True 142 #return False 139 143 140 144 def _bedAvailable(self, student):
Note: See TracChangeset for help on using the changeset viewer.