Changeset 14931 for main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Timestamp:
- 21 Dec 2017, 23:02:33 (7 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r14591 r14931 292 292 self.assertEqual(payment.p_level, 100) 293 293 self.assertEqual(payment.p_session, 2004) 294 self.assertEqual(payment.amount_auth, 7088.0)294 self.assertEqual(payment.amount_auth, 8088.0) 295 295 self.assertEqual(payment.p_item, u'') 296 296 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
r14618 r14931 84 84 IWorkflowState(self.student).setState('returning') 85 85 error, payment = utils.setPaymentDetails('schoolfee',self.student) 86 self.assertEqual(payment.amount_auth, 1 4124.0) # 13875 + 150 + 9986 self.assertEqual(payment.amount_auth, 16124.0) # 15875 + 150 + 99 87 87 self.student['studycourse'].previous_verdict = 'O' 88 88 error, payment = utils.setPaymentDetails('schoolfee',self.student) 89 self.assertEqual(payment.amount_auth, 1 4025.0) # 13875 + 15089 self.assertEqual(payment.amount_auth, 16025.0) # 15875 + 150 90 90 return -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r14618 r14931 118 118 elif category == 'third_semester' and student.current_mode == 'nce_ft': 119 119 if student.depcode in ARTS: 120 amount = 6688120 amount = 7688 121 121 else: 122 amount = 6938122 amount = 7938 123 123 elif category == 'schoolfee': 124 124 p_item = student.certcode … … 174 174 elif student.current_level == 100 and student.state == CLEARED: 175 175 if student.depcode in ARTS: 176 amount = 14325 177 else: 178 amount = 14825 176 amount = 24215 177 else: 178 amount = 24915 179 # SIWES Fee 180 if student.depcode in ('AGE', 'BED', 'FAA', 'HEC', 'CSC', 'MUS'): 181 amount += 3000 179 182 # NCE II 180 183 elif student.current_level in (100, 110, 120) and \ 181 184 student.state == RETURNING: 182 185 if student.depcode in ARTS: 183 amount = 13375 184 else: 185 amount = 13875 186 amount = 15375 187 else: 188 amount = 15875 189 # SIWES Fee 190 if student.depcode in ('AGE', 'BED', 'FAA', 'HEC', 'CSC', 'MUS'): 191 amount += 2000 186 192 # NCE III 187 193 elif student.current_level in (200, 210, 220): 188 194 if student.depcode in ARTS: 189 amount = 1 3375190 else: 191 amount = 1 3875195 amount = 15375 196 else: 197 amount = 15875 192 198 # NCE III repeater 193 199 elif student.current_level in (300, 310, 320) and \ 194 200 student.current_verdict == 'O': 195 201 if student.depcode in ARTS: 196 amount = 1 1475197 else: 198 amount = 1 1975202 amount = 13475 203 else: 204 amount = 13975 199 205 # NCE III spillover 200 206 elif student.current_level in (300, 310, 320) and \ 201 207 student.current_verdict == 'B': 202 208 if student.depcode in ARTS: 203 amount = 1 1975204 else: 205 amount = 1 1975209 amount = 13475 210 else: 211 amount = 13975 206 212 # NCE III second spillover 207 213 elif student.current_level in (400, 410, 420) and \ 208 214 student.current_verdict == 'B': 209 215 if student.depcode in ARTS: 210 amount = 1 1975211 else: 212 amount = 1 1975216 amount = 13475 217 else: 218 amount = 13975 213 219 else: 214 220 # NCE I fresh sw
Note: See TracChangeset for help on using the changeset viewer.