Changeset 8244
- Timestamp:
- 22 Apr 2012, 10:12:23 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8243 r8244 472 472 payment.p_category = p_category 473 473 payment.amount_auth = academic_session.acceptance_fee 474 payment.surcharge_1 = academic_session.surcharge_1475 payment.surcharge_2 = academic_session.surcharge_2476 payment.surcharge_3 = academic_session.surcharge_3474 #payment.surcharge_1 = academic_session.surcharge_1 475 #payment.surcharge_2 = academic_session.surcharge_2 476 #payment.surcharge_3 = academic_session.surcharge_3 477 477 self.context[payment.p_id] = payment 478 478 self.flash(_('Payment ticket created.')) … … 524 524 return 525 525 self.context.r_amount_approved = self.context.amount_auth 526 self.context.r_card_num = u'0000'527 526 self.context.r_code = u'00' 528 527 self.context.p_state = 'paid' -
main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py
r8230 r8244 576 576 ) 577 577 578 surcharge_1 = schema.Float(579 title = _(u'Surcharge Portal Provider'),580 default = 0.0,581 required = False,582 )583 584 surcharge_2 = schema.Float(585 title = _(u'Surcharge Payment Gateway Provider'),586 default = 0.0,587 required = False,588 )589 590 surcharge_3 = schema.Float(591 title = _(u'Surcharge 3'),592 default = 0.0,593 required = False,594 )578 #surcharge_1 = schema.Float( 579 # title = _(u'Surcharge Portal Provider'), 580 # default = 0.0, 581 # required = False, 582 # ) 583 584 #surcharge_2 = schema.Float( 585 # title = _(u'Surcharge Payment Gateway Provider'), 586 # default = 0.0, 587 # required = False, 588 # ) 589 590 #surcharge_3 = schema.Float( 591 # title = _(u'Surcharge 3'), 592 # default = 0.0, 593 # required = False, 594 # ) 595 595 596 596 clearance_fee = schema.Float( -
main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py
r8174 r8244 103 103 """ 104 104 105 surcharge_1 = schema.Float(106 title = _(u'Portal Fee'),107 default = 0.0,108 required = False,109 readonly = True,110 )111 112 surcharge_2 = schema.Float(113 title = _(u'Surcharge 2'),114 default = 0.0,115 required = False,116 readonly = True,117 )118 119 surcharge_3 = schema.Float(120 title = _(u'Surcharge 3'),121 default = 0.0,122 required = False,123 readonly = True,124 )125 126 #order_id = schema.TextLine(127 # title = u'Order Id',128 # default = None,129 # required = True,130 # )131 132 105 ac = schema.TextLine( 133 106 title = _(u'Activation Code'), … … 144 117 ) 145 118 146 r_desc = schema.TextLine(147 title = _(u'Response Description'),148 default = None,149 required = False,150 readonly = False,151 )152 153 r_pay_reference = schema.TextLine(154 title = _(u'Response Payment Reference'),155 default = None,156 required = False,157 readonly = False,158 )159 160 119 r_code = schema.TextLine( 161 120 title = _(u'Response Code'), … … 164 123 readonly = False, 165 124 ) 166 167 r_card_num = schema.TextLine(168 title = _(u'Response Card Number'),169 default = None,170 required = False,171 readonly = False,172 ) -
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.