Changeset 10009
- Timestamp:
- 4 Mar 2013, 06:53:59 (12 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r9998 r10009 246 246 self.assertEqual(error, None) 247 247 248 # NCE student payment can be disabled by 249 # setting the base school fee to -1 250 IWorkflowState(self.student).setState('returning') 251 configuration = createObject('waeup.SessionConfiguration') 252 self.app['configuration']['2004'].school_fee_base = -1.0 253 self.certificate.study_mode = 'nce_ft' 254 error, payment = utils.setPaymentDetails('schoolfee',self.student) 255 self.assertEqual(error, u'Amount could not be determined.') 256 248 257 error, payment = utils.setPaymentDetails('clearance',self.student) 249 258 self.assertEqual(payment.p_level, 100) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r9989 r10009 122 122 'NFRE','NARB','NHAU','NIGB','NYOR','NSOS') 123 123 124 #PDE Students124 #PDE 125 125 if student.current_mode == 'pd_ft': 126 126 amount = 35000 127 # NCE/UG 127 128 elif not student.current_mode.endswith('_sw'): 128 129 # PRENCE … … 178 179 else: 179 180 amount = 22400 180 # NCE/UG II 181 # NCE/UG II sw 181 182 elif student.current_level in (100, 110, 120) and \ 182 183 student.state == RETURNING: … … 185 186 else: 186 187 amount = 18900 187 # NCE/UG III 188 # NCE/UG III sw 188 189 elif student.current_level in (200, 210, 220): 189 190 if student.depcode in ARTS: … … 191 192 else: 192 193 amount = 20900 193 # NCE/UG IV 194 # NCE/UG IV sw 194 195 elif student.current_level in (300, 310, 320): 195 196 if student.depcode in ARTS: … … 197 198 else: 198 199 amount = 18900 199 # NCE/UG V 200 # NCE/UG V sw 200 201 elif student.current_level in (400, 410, 420): 201 202 if student.depcode in ARTS: … … 203 204 else: 204 205 amount = 18900 205 # NCE/UG V spillover 206 # NCE/UG V spillover sw 206 207 elif student.current_level in (500, 510, 520) and \ 207 208 student.current_verdict == 'B': … … 210 211 else: 211 212 amount = 17400 212 # NCE/UG V second spillover 213 # NCE/UG V second spillover sw 213 214 elif student.current_level in (600, 610, 620) and \ 214 215 student.current_verdict == 'B': … … 217 218 else: 218 219 amount = 17400 220 # NCE student payment can be disabled by 221 # setting the base school fee to -1 222 if academic_session.school_fee_base == -1 and \ 223 student.current_mode.startswith('nce'): 224 amount = 0 219 225 if student.state == RETURNING: 220 226 # Override p_session and p_level
Note: See TracChangeset for help on using the changeset viewer.