Changeset 12187
- Timestamp:
- 9 Dec 2014, 16:54:56 (10 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
r11932 r12187 241 241 self.assertEqual(payment.p_level, 200) 242 242 self.assertEqual(payment.p_session, 2005) 243 self.assertEqual(payment.amount_auth, 12 725.0)243 self.assertEqual(payment.amount_auth, 12295.0) 244 244 self.assertEqual(payment.p_item, u'CERT1') 245 245 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r11932 r12187 194 194 student.state == RETURNING: 195 195 if student.depcode in ARTS: 196 amount = 1 2100197 else: 198 amount = 12 575196 amount = 11670 197 else: 198 amount = 12145 199 199 # NCE III 200 200 elif student.current_level in (200, 210, 220): 201 201 if student.depcode in ARTS: 202 amount = 1 2100203 else: 204 amount = 12 575202 amount = 11670 203 else: 204 amount = 12145 205 205 # NCE III repeater 206 206 elif student.current_level in (300, 310, 320) and \ 207 207 student.current_verdict == 'O': 208 208 if student.depcode in ARTS: 209 amount = 10200210 else: 211 amount = 10 675209 amount = 9770 210 else: 211 amount = 10245 212 212 # NCE III spillover 213 213 elif student.current_level in (300, 310, 320) and \ 214 214 student.current_verdict == 'B': 215 215 if student.depcode in ARTS: 216 amount = 9 170217 else: 218 amount = 9645216 amount = 9770 217 else: 218 amount = 10245 219 219 # NCE III second spillover 220 220 elif student.current_level in (400, 410, 420) and \ 221 221 student.current_verdict == 'B': 222 222 if student.depcode in ARTS: 223 amount = 9 170224 else: 225 amount = 9645223 amount = 9770 224 else: 225 amount = 10245 226 226 else: 227 227 if student.current_level == 100 and student.state == CLEARED:
Note: See TracChangeset for help on using the changeset viewer.