Ignore:
Timestamp:
25 Mar 2021, 11:24:25 (4 years ago)
Author:
Henrik Bettermann
Message:

Customize payment options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_export.py

    r16403 r16434  
    6969        # set values we can expect in export file
    7070        self.setup_student(self.student)
    71         self.student['payments']['my-payment'].r_company = 'interswatch'
     71        self.student['payments']['my-payment'].r_company = 'interswitch'
     72        self.student['payments']['my-payment'].p_option = 'first'
    7273        self.student['payments']['my-payment'].r_card_num = '789'
    7374        exporter = CustomStudentPaymentExporter()
     
    7677        self.assertMatches(
    7778            'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_current,'
    78             'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,'
     79            'p_id,p_item,p_level,p_option,p_session,p_state,payment_date,provider_amt,'
    7980            'r_amount_approved,r_card_num,r_code,r_company,r_desc,'
    8081            'r_pay_reference,thirdparty_amt,student_id,state,'
    8182            'current_session,entry_session\r\n'
    8283            '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,'
    83             '100,%s,paid,%s-04-01 14:12:01#,,12.12,'
    84             '789,r-code,interswatch,,,,A111111,created,2012,2010\r\n'
     84            '100,first,%s,paid,%s-04-01 14:12:01#,,12.12,'
     85            '789,r-code,interswitch,,,,A111111,created,2012,2010\r\n'
    8586            % (curr_year-6, curr_year-6, curr_year-6), result
    8687            )
Note: See TracChangeset for help on using the changeset viewer.