Ignore:
Timestamp:
31 Oct 2019, 20:21:37 (5 years ago)
Author:
Henrik Bettermann
Message:

Add net_amt property field (see also previous commit)

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/payments/interfaces.py

    r15730 r15731  
    2626
    2727    """
    28 
    29     net_amount = Attribute('Total amount minus surcharges')
    3028
    3129    ac = schema.TextLine(
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r15665 r15731  
    122122        result = open(self.outfile, 'rb').read()
    123123        self.assertMatches(
    124             'ac,amount_auth,creation_date,gateway_amt,p_category,p_combi,p_current,'
     124            'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_current,'
    125125            'p_id,p_item,p_level,p_session,p_split_data,p_state,payment_date,provider_amt,'
    126126            'r_amount_approved,r_card_num,r_code,r_company,r_desc,'
    127127            'r_pay_reference,thirdparty_amt,student_id,state,'
    128128            'current_session\r\n'
    129             '666,12.12,2012-04-01 13:12:01#,,schoolfee,[],1,my-id,p-item,'
     129            '666,12.12,2012-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,'
    130130            '100,%s,,paid,2012-04-01 14:12:01#,,12.12,'
    131131            '789,r-code,interswitch,,,,A111111,created,2012\r\n' % (curr_year-6),
     
    187187        self.assertEqual(
    188188            result,
    189             'ac,amount_auth,creation_date,formatted_p_date,gateway_amt,'
     189            'ac,amount_auth,creation_date,formatted_p_date,gateway_amt,net_amt,'
    190190            'p_category,p_combi,p_current,p_id,p_item,p_level,p_session,p_split_data,p_state,'
    191191            'payment_date,provider_amt,r_amount_approved,r_card_num,r_code,'
     
    194194            'current_session,entry_session,entry_mode,faccode,depcode,certcode,lga\r\n'
    195195
    196             '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,'
     196            '666,12.12,%s-04-01 13:12:01#,,,,schoolfee,[],1,my-id,p-item,'
    197197            '100,%s,,paid,%s-04-01 14:12:01#,,12.12,,r-code,,,,,A111111,'
    198198            '234,123,Anna,M.,Tester,created,2012,2010,ug_ft,NA,NA,CERT1,\r\n'
Note: See TracChangeset for help on using the changeset viewer.