Changeset 9388
- Timestamp:
- 22 Oct 2012, 14:43:41 (12 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py
r9347 r9388 198 198 self.assertEqual(payment.p_level, 100) 199 199 self.assertEqual(payment.p_session, 2004) 200 self.assertEqual(payment.amount_auth, 12495.0)200 self.assertEqual(payment.amount_auth, 60980.0) 201 201 self.assertEqual(payment.p_item, u'CERT1') 202 202 self.assertEqual(error, None) … … 206 206 self.assertEqual(payment.p_level, 200) 207 207 self.assertEqual(payment.p_session, 2005) 208 self.assertEqual(payment.amount_auth, 11545.0)208 self.assertEqual(payment.amount_auth, 60980.0) 209 209 self.assertEqual(payment.p_item, u'CERT1') 210 210 self.assertEqual(error, None) -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r9370 r9388 97 97 return _('Study course data are incomplete.'), None 98 98 99 # Very special school fee configuration, should be moved to100 # a seperate file.101 99 102 ARTS = ('CRS','ISS','HIS','MUS','ECO','GEO','POL','SOS','CCA','ECU',103 'THA','GED','GSE','PES','SPC','ENG','FRE','ARB','HAU','IGB',104 'YOR','NCRS','NISS','NHIS','NMUS','NECO','NGEO','NPOL',105 'NCCA','NECU','NTHA','NGED','NGSE','NPES','NSPC','NENG',106 'NFRE','NARB','NHAU','NIGB','NYOR','NSOS')107 108 #PDE Students109 if student.current_mode == 'pd_ft':110 amount = 35000111 elif not student.current_mode.endswith('_sw'):112 # PRENCE113 if student.current_level == 10 and student.state == CLEARED:114 if student.depcode in ARTS:115 amount = 14900116 else:117 amount = 15400118 # NCE I fresh119 elif student.current_level == 100 and student.state == CLEARED:120 if student.depcode in ARTS:121 amount = 12020122 else:123 amount = 12495124 # NCE II125 elif student.current_level in (100, 110, 120) and \126 student.state == RETURNING:127 if student.depcode in ARTS:128 amount = 11070129 else:130 amount = 11545131 # NCE III132 elif student.current_level in (200, 210, 220):133 if student.depcode in ARTS:134 amount = 11070135 else:136 amount = 11545137 # NCE III repeater138 elif student.current_level in (300, 310, 320) and \139 student.current_verdict == 'O':140 if student.depcode in ARTS:141 amount = 6535142 else:143 amount = 6773144 # NCE III spillover145 elif student.current_level in (300, 310, 320) and \146 student.current_verdict == 'B':147 if student.depcode in ARTS:148 amount = 9170149 else:150 amount = 9645151 # NCE III second spillover152 elif student.current_level in (400, 410, 420) and \153 student.current_verdict == 'B':154 if student.depcode in ARTS:155 amount = 9170156 else:157 amount = 9645158 else:159 if student.current_level == 100 and student.state == CLEARED:160 if student.depcode in ARTS:161 amount = 21900162 else:163 amount = 22400164 # NCE II165 elif student.current_level in (100, 110, 120) and \166 student.state == RETURNING:167 if student.depcode in ARTS:168 amount = 18400169 else:170 amount = 18900171 # NCE III172 elif student.current_level in (200, 210, 220):173 if student.depcode in ARTS:174 amount = 20400175 else:176 amount = 20900177 # NCE IV178 elif student.current_level in (300, 310, 320):179 if student.depcode in ARTS:180 amount = 18400181 else:182 amount = 18900183 # NCE V184 elif student.current_level in (400, 410, 420):185 if student.depcode in ARTS:186 amount = 18400187 else:188 amount = 18900189 # NCE V spillover190 elif student.current_level in (500, 510, 520) and \191 student.current_verdict == 'B':192 if student.depcode in ARTS:193 amount = 16900194 else:195 amount = 17400196 # NCE V second spillover197 elif student.current_level in (600, 610, 620) and \198 student.current_verdict == 'B':199 if student.depcode in ARTS:200 amount = 16900201 else:202 amount = 17400203 100 if student.state == RETURNING: 204 101 p_session, p_level = self.getReturningData(student) 205 102 206 103 207 amount = 0.0 104 if student.state in (RETURNING, CLEARED): 105 amount = 60980.00 208 106 209 107 if amount in (0.0, None):
Note: See TracChangeset for help on using the changeset viewer.