Ignore:
Timestamp:
21 Jun 2019, 08:28:09 (6 years ago)
Author:
Henrik Bettermann
Message:

Store xml split data in payment ticket.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r15461 r15471  
    323323    grok.context(ICustomStudentOnlinePayment)
    324324    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')
    326327    form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    327328    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
  • main/waeup.aaue/trunk/src/waeup/aaue/students/export.py

    r15452 r15471  
    108108        sorted(iface_names(
    109109            ICustomStudentOnlinePayment, exclude_attribs=False,
    110             omit=['display_item']))) + (
     110            omit=['display_item','formatted_p_date']))) + (
    111111            'student_id','state','current_session')
    112112
  • main/waeup.aaue/trunk/src/waeup/aaue/students/interfaces.py

    r15252 r15471  
    3636    INigeriaStudentStudyCourse, INigeriaCourseTicket,
    3737    INigeriaStudentUpdateByRegNo, INigeriaStudentUpdateByMatricNo,
     38    INigeriaStudentOnlinePayment,
    3839    )
    3940from waeup.aaue.payments.interfaces import ICustomOnlinePayment
     
    550551
    551552
    552 class ICustomStudentOnlinePayment(ICustomOnlinePayment):
     553class ICustomStudentOnlinePayment(INigeriaStudentOnlinePayment):
    553554    """A student payment via payment gateways.
    554555
    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
    573558
    574559class ICustomCourseTicket(INigeriaCourseTicket):
  • main/waeup.aaue/trunk/src/waeup/aaue/students/payments.py

    r14296 r15471  
    4949    def redeemTicket(self):
    5050        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'):
    5252            # Bypass activation code creation if next session
    5353            # can be started directly.
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py

    r15339 r15471  
    112112        self.assertMatches(
    113113            'ac,amount_auth,creation_date,gateway_amt,p_category,p_current,'
    114             'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,'
     114            'p_id,p_item,p_level,p_session,p_split_data,p_state,payment_date,provider_amt,'
    115115            'r_amount_approved,r_card_num,r_code,r_company,r_desc,'
    116116            'r_pay_reference,thirdparty_amt,student_id,state,'
    117117            'current_session\r\n'
    118118            '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,'
    120120            '789,r-code,interswatch,,,,A111111,created,2012\r\n'
    121121            % (curr_year-6, curr_year-6, curr_year-6), result
Note: See TracChangeset for help on using the changeset viewer.