Changeset 8244 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 22 Apr 2012, 10:12:23 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r8194 r8244 1099 1099 payment.p_session = p_session 1100 1100 payment.amount_auth = pay_details['amount'] 1101 payment.surcharge_1 = pay_details['surcharge_1']1102 payment.surcharge_2 = pay_details['surcharge_2']1103 payment.surcharge_3 = pay_details['surcharge_3']1101 #payment.surcharge_1 = pay_details['surcharge_1'] 1102 #payment.surcharge_2 = pay_details['surcharge_2'] 1103 #payment.surcharge_3 = pay_details['surcharge_3'] 1104 1104 self.context[payment.p_id] = payment 1105 1105 self.flash(_('Payment ticket created.')) … … 1142 1142 write_log_message(self,'valid callback: %s' % self.context.p_id) 1143 1143 self.context.r_amount_approved = self.context.amount_auth 1144 self.context.r_card_num = u'0000'1145 1144 self.context.r_code = u'00' 1146 1145 self.context.p_state = 'paid' -
main/waeup.kofa/trunk/src/waeup/kofa/students/catalog.py
r7811 r8244 141 141 p_item = index.Field(attribute='p_item') 142 142 p_state = index.Field(attribute='p_state') 143 r_pay_reference = index.Text(attribute='r_pay_reference') -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_payment_data.csv
r8233 r8244 1 matric_number,p_state,p_category, r_pay_reference,r_desc,p_id,reg_number,session_id,r_amount_approved,p_item,amount_auth,r_card_num,r_code,creation_date,type,surcharge_12 ,paid,schoolfee, GTB|WEB|FUT|26-11-2010|002295,Approved Successful,3816951290797973744#,1,2010,19500,BTECHBDT,19500,0942,00,2010/11/26 19:59:33.744 GMT+1,online,03 100001,unpaid,schoolfee, GTB|WEB|FUT|25-11-2010|,Transaction status unconfirmed,3816951290712593757,,2010,0,BTECHBDT,19500,0942,Z0,2010-11-25 20:16:33.757 GMT+1,online,04 ,paid,schoolfee, UBA|WEB|FUT|15-02-2010|000517,Approved Successful,p1266236341955,3,2009,19500,BTECHBDT,19500,0615,00,2010/02/15 13:19:01,online,01 matric_number,p_state,p_category,p_id,reg_number,session_id,r_amount_approved,p_item,amount_auth,r_card_num,r_code,creation_date,type 2 ,paid,schoolfee,3816951290797973744#,1,2010,19500,BTECHBDT,19500,0942,00,2010/11/26 19:59:33.744 GMT+1,online 3 100001,unpaid,schoolfee,3816951290712593757,,2010,0,BTECHBDT,19500,0942,Z0,2010-11-25 20:16:33.757 GMT+1,online 4 ,paid,schoolfee,p1266236341955,3,2009,19500,BTECHBDT,19500,0615,00,2010/02/15 13:19:01,online -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_catalog.py
r8082 r8244 79 79 payment.p_category = 'schoolfee' 80 80 payment.p_state = 'paid' 81 payment.r_pay_reference = u'GTB|WEB|FUT'82 81 self.student['payments'][payment.p_id] = payment 83 82 return … … 218 217 'payments']['p1234567890'] 219 218 220 def test_search_by_reference(self):221 # We can find a payment ticket by parts of the response reference222 cat = queryUtility(ICatalog, name='payments_catalog')223 results = cat.searchResults(r_pay_reference='GTB')224 results = [x for x in results] # Turn results generator into list225 assert len(results) == 1226 assert results[0] is self.app['students'][self.student_id][227 'payments']['p1234567890']228 229 219 def test_reindex(self): 230 220 # We can reindex any kind of catalog with the updateIndexes method. -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r8234 r8244 256 256 d['error'] = u'Session configuration object is not available.' 257 257 return d 258 d['surcharge_1'] = academic_session.surcharge_1259 d['surcharge_2'] = academic_session.surcharge_2260 d['surcharge_3'] = academic_session.surcharge_3258 #d['surcharge_1'] = academic_session.surcharge_1 259 #d['surcharge_2'] = academic_session.surcharge_2 260 #d['surcharge_3'] = academic_session.surcharge_3 261 261 if category == 'schoolfee': 262 262 d['amount'] = academic_session.school_fee_base … … 265 265 d['p_item'] = student['studycourse'].certificate.code 266 266 d['amount'] = academic_session.clearance_fee 267 d['surcharge_1'] = 0.0 # no portal fee267 #d['surcharge_1'] = 0.0 # no portal fee 268 268 elif category == 'bed_allocation': 269 269 d['p_item'] = self.getAccommodationDetails(student)['bt'] 270 270 d['amount'] = academic_session.booking_fee 271 d['surcharge_1'] = 0.0 # no portal fee271 #d['surcharge_1'] = 0.0 # no portal fee 272 272 return d 273 273
Note: See TracChangeset for help on using the changeset viewer.