- Timestamp:
- 21 Jun 2019, 08:28:09 (6 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r15467 r15471 590 590 self.context.gateway_amt = self.amount_auth - gateway_net_amt( 591 591 self.amount_auth) 592 593 from xml.dom import minidom 594 xmlitems = '' 595 xmldoc = minidom.parseString(xmltext) 596 itemlist = xmldoc.getElementsByTagName('item_detail') 597 for s in itemlist: 598 xmlitems += "%s: %s, N%s, %s (%s) " % ( 599 s.attributes['item_id'].value, 600 s.attributes['item_name'].value, 601 int(s.attributes['item_amt'].value)/100, 602 s.attributes['acct_num'].value, 603 s.attributes['bank_id'].value, 604 605 ) 606 607 self.context.p_split_data = xmlitems 608 609 610 592 611 hashargs = ( 593 612 self.context.p_id + -
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r15461 r15471 323 323 grok.context(ICustomStudentOnlinePayment) 324 324 form_fields = grok.AutoFields(ICustomStudentOnlinePayment).omit( 325 'provider_amt', 'gateway_amt', 'thirdparty_amt', 'p_item') 325 'provider_amt', 'gateway_amt', 'thirdparty_amt', 'p_item', 326 'p_split_data') 326 327 form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 327 328 form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') -
main/waeup.aaue/trunk/src/waeup/aaue/students/export.py
r15452 r15471 108 108 sorted(iface_names( 109 109 ICustomStudentOnlinePayment, exclude_attribs=False, 110 omit=['display_item' ]))) + (110 omit=['display_item','formatted_p_date']))) + ( 111 111 'student_id','state','current_session') 112 112 -
main/waeup.aaue/trunk/src/waeup/aaue/students/interfaces.py
r15252 r15471 36 36 INigeriaStudentStudyCourse, INigeriaCourseTicket, 37 37 INigeriaStudentUpdateByRegNo, INigeriaStudentUpdateByMatricNo, 38 INigeriaStudentOnlinePayment, 38 39 ) 39 40 from waeup.aaue.payments.interfaces import ICustomOnlinePayment … … 550 551 551 552 552 class ICustomStudentOnlinePayment(I CustomOnlinePayment):553 class ICustomStudentOnlinePayment(INigeriaStudentOnlinePayment): 553 554 """A student payment via payment gateways. 554 555 555 This Interface does not inherit from IStudentOnlinePayment. 556 Thus all fields from IStudentOnlinePayment have to be repeated here. 557 """ 558 559 p_current = schema.Bool( 560 title = _(u'Current Session Payment'), 561 default = True, 562 required = False, 563 ) 564 565 p_level = schema.Choice( 566 title = _(u'Payment Level'), 567 source = StudyLevelSource(), 568 required = False, 569 ) 570 571 ICustomStudentOnlinePayment['p_level'].order = ICustomStudentOnlinePayment[ 572 'p_session'].order 556 """ 557 573 558 574 559 class ICustomCourseTicket(INigeriaCourseTicket): -
main/waeup.aaue/trunk/src/waeup/aaue/students/payments.py
r14296 r15471 49 49 def redeemTicket(self): 50 50 student = self.student 51 if self.p_category in ('schoolfee', 'schoolfee_incl', 'schoolfee_1') 51 if self.p_category in ('schoolfee', 'schoolfee_incl', 'schoolfee_1'): 52 52 # Bypass activation code creation if next session 53 53 # can be started directly. -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py
r15339 r15471 112 112 self.assertMatches( 113 113 'ac,amount_auth,creation_date,gateway_amt,p_category,p_current,' 114 'p_id,p_item,p_level,p_session,p_s tate,payment_date,provider_amt,'114 'p_id,p_item,p_level,p_session,p_split_data,p_state,payment_date,provider_amt,' 115 115 'r_amount_approved,r_card_num,r_code,r_company,r_desc,' 116 116 'r_pay_reference,thirdparty_amt,student_id,state,' 117 117 'current_session\r\n' 118 118 '666,12.12,%s-04-01 13:12:01#,,schoolfee,1,my-id,p-item,' 119 '100,%s, paid,%s-04-01 14:12:01#,,12.12,'119 '100,%s,,paid,%s-04-01 14:12:01#,,12.12,' 120 120 '789,r-code,interswatch,,,,A111111,created,2012\r\n' 121 121 % (curr_year-6, curr_year-6, curr_year-6), result
Note: See TracChangeset for help on using the changeset viewer.