Changeset 12188 for main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Timestamp:
- 10 Dec 2014, 09:33:27 (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
r12187 r12188 228 228 self.assertEqual(payment.p_level, 100) 229 229 self.assertEqual(payment.p_session, 2004) 230 self.assertEqual(payment.amount_auth, 1 3245.0)230 self.assertEqual(payment.amount_auth, 14975.0) 231 231 self.assertEqual(payment.p_item, u'CERT1') 232 232 self.assertEqual(error, None) … … 241 241 self.assertEqual(payment.p_level, 200) 242 242 self.assertEqual(payment.p_session, 2005) 243 self.assertEqual(payment.amount_auth, 1 2295.0)243 self.assertEqual(payment.amount_auth, 14025.0) 244 244 self.assertEqual(payment.p_item, u'CERT1') 245 245 self.assertEqual(error, None) … … 281 281 self.assertEqual(payment.p_level, 100) 282 282 self.assertEqual(payment.p_session, 2004) 283 self.assertEqual(payment.amount_auth, 4150.0)283 self.assertEqual(payment.amount_auth, 5150.0) 284 284 self.assertEqual(payment.p_item, u'My bed coordinates') 285 285 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r12187 r12188 140 140 amount = 2500.0 #removed interswitch fee 141 141 else: 142 amount = 4000.0 #removed interswitch fee142 amount = 5000.0 #removed interswitch fee 143 143 elif category == 'clearance': 144 144 amount = academic_session.clearance_fee … … 181 181 if student.current_level == 10 and student.state == CLEARED: 182 182 if student.depcode in ARTS: 183 amount = 1 5500184 else: 185 amount = 1 6000183 amount = 17500 184 else: 185 amount = 18000 186 186 # NCE I fresh 187 187 elif student.current_level == 100 and student.state == CLEARED: 188 188 if student.depcode in ARTS: 189 amount = 1 2620190 else: 191 amount = 1 3095189 amount = 14325 190 else: 191 amount = 14825 192 192 # NCE II 193 193 elif student.current_level in (100, 110, 120) and \ 194 194 student.state == RETURNING: 195 195 if student.depcode in ARTS: 196 amount = 1 1670197 else: 198 amount = 1 2145196 amount = 13375 197 else: 198 amount = 13875 199 199 # NCE III 200 200 elif student.current_level in (200, 210, 220): 201 201 if student.depcode in ARTS: 202 amount = 1 1670203 else: 204 amount = 1 2145202 amount = 13375 203 else: 204 amount = 13875 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 = 9770210 else: 211 amount = 1 0245209 amount = 11475 210 else: 211 amount = 11975 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 = 9770217 else: 218 amount = 1 0245216 amount = 11975 217 else: 218 amount = 11975 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 = 9770224 else: 225 amount = 1 0245223 amount = 11975 224 else: 225 amount = 11975 226 226 else: 227 227 if student.current_level == 100 and student.state == CLEARED:
Note: See TracChangeset for help on using the changeset viewer.