Changeset 14355 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 19 Dec 2016, 11:00:36 (8 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/studylevel.py
r14354 r14355 183 183 return False 184 184 if course.code in ('ENT201',) and \ 185 not ' gst_registration_3' in paid_cats:186 return False 187 if course.code == 'GST101'and \185 not 'ent_registration_1' in paid_cats: 186 return False 187 if course.code in ('GST101', 'GST102') and \ 188 188 not 'gst_text_book_1' in paid_cats and \ 189 not 'gst_text_book_5' in paid_cats: 190 return False 191 if course.code == 'GST102'and \ 192 not 'gst_text_book_1' in paid_cats and \ 193 not 'gst_text_book_6' in paid_cats: 194 return False 195 if course.code == 'GST111'and \ 189 not 'gst_text_book_0' in paid_cats: 190 return False 191 if course.code in ('GST111', 'GST112') and \ 196 192 not 'gst_text_book_2' in paid_cats and \ 197 not 'gst_text_book_7' in paid_cats: 198 return False 199 if course.code == 'GST112'and \ 200 not 'gst_text_book_2' in paid_cats and \ 201 not 'gst_text_book_8' in paid_cats: 193 not 'gst_text_book_0' in paid_cats: 202 194 return False 203 195 if course.code in ('GST222',) and \ … … 205 197 return False 206 198 if course.code in ('ENT201',) and \ 207 not ' gst_text_book_4' in paid_cats:199 not 'ent_text_book_1' in paid_cats: 208 200 return False 209 201 return True -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14348 r14355 865 865 configuration_1.gst_registration_1_fee = 3333.0 866 866 configuration_1.gst_text_book_1_fee = 4444.0 867 configuration_1.gst_text_book_ 5_fee = 2222.0867 configuration_1.gst_text_book_0_fee = 2222.0 868 868 self.app['configuration'].addSessionConfiguration(configuration_1) 869 869 course = createObject('waeup.Course') … … 908 908 in self.browser.contents) 909 909 self.browser.open(self.payments_path + '/addop') 910 self.browser.getControl(name="form.p_category").value = ['gst_text_book_ 5']910 self.browser.getControl(name="form.p_category").value = ['gst_text_book_0'] 911 911 self.browser.getControl("Create ticket").click() 912 912 self.student['payments'].values()[1].approve()
Note: See TracChangeset for help on using the changeset viewer.