Changeset 14501
- Timestamp:
- 3 Feb 2017, 17:34:51 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r14500 r14501 117 117 @property 118 118 def course_registration_forbidden(self): 119 fac_dep_paid = True120 if self.student.entry_session >= 2016:121 fac_dep_paid = False122 for ticket in self.student['payments'].values():123 if ticket.p_category == 'fac_dep' and \124 ticket.p_session == self.level_session and \125 ticket.p_state == 'paid':126 fac_dep_paid = True127 continue128 if not fac_dep_paid:129 return _("Please pay faculty and departmental dues first.")119 #fac_dep_paid = True 120 #if self.student.entry_session >= 2016: 121 # fac_dep_paid = False 122 # for ticket in self.student['payments'].values(): 123 # if ticket.p_category == 'fac_dep' and \ 124 # ticket.p_session == self.level_session and \ 125 # ticket.p_state == 'paid': 126 # fac_dep_paid = True 127 # continue 128 #if not fac_dep_paid: 129 # return _("Please pay faculty and departmental dues first.") 130 130 restitution_paid = True 131 131 if self.student.entry_session < 2016 \ -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14500 r14501 947 947 self.browser.getLink("Edit course list").click() 948 948 self.browser.getControl("Register course list").click() 949 self.assertTrue('Please pay faculty and departmental dues first'950 in self.browser.contents)951 configuration_1 = createObject('waeup.SessionConfiguration')952 configuration_1.academic_session = 2016953 configuration_1.fac_dep_fee = 9999.0954 self.app['configuration'].addSessionConfiguration(configuration_1)955 self.browser.open(self.payments_path + '/addop')956 self.browser.getControl(name="form.p_category").value = ['fac_dep']957 self.browser.getControl("Create ticket").click()958 self.student['payments'].values()[0].approveStudentPayment()959 self.browser.open(self.studycourse_path + '/100/edit')960 self.browser.getControl("Register course list").click()949 #self.assertTrue('Please pay faculty and departmental dues first' 950 # in self.browser.contents) 951 #configuration_1 = createObject('waeup.SessionConfiguration') 952 #configuration_1.academic_session = 2016 953 #configuration_1.fac_dep_fee = 9999.0 954 #self.app['configuration'].addSessionConfiguration(configuration_1) 955 #self.browser.open(self.payments_path + '/addop') 956 #self.browser.getControl(name="form.p_category").value = ['fac_dep'] 957 #self.browser.getControl("Create ticket").click() 958 #self.student['payments'].values()[0].approveStudentPayment() 959 #self.browser.open(self.studycourse_path + '/100/edit') 960 #self.browser.getControl("Register course list").click() 961 961 self.assertTrue('Course list has been registered' 962 962 in self.browser.contents) -
main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py
r14487 r14501 89 89 'gst_registration_2': 'Registration Fee GST222', 90 90 'ent_registration_3': 'Registration Fee ENT201', 91 'fac_dep': 'Faculty and Departmental Dues',91 #'fac_dep': 'Faculty and Departmental Dues', 92 92 'restitution': 'Restitution Fee', 93 93 }
Note: See TracChangeset for help on using the changeset viewer.