Ignore:
Timestamp:
7 Nov 2019, 21:11:31 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust to Nigeria package.

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

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/browser.py

    r15259 r15777  
    7474            self.redirect(self.url(self.context, '@@index'))
    7575            return
     76        self.context.r_company = u'interswitch'
    7677        student = self.student
    7778        xmldict = self.xmldict
     
    119120        self.context.provider_amt = provider_amt
    120121        self.context.gateway_amt = GATEWAY_AMT
    121 
     122        self.amount_auth = int(100 * self.context.amount_auth)
    122123        hashargs = (
    123124            self.context.p_id +
     
    148149            self.redirect(self.url(self.context, '@@index'))
    149150            return
     151        self.context.r_company = u'interswitch'
    150152        xmldict = {}
    151153        provider_amt = 1000.0
     
    191193        self.context.provider_amt = provider_amt
    192194        self.context.gateway_amt = GATEWAY_AMT
    193 
     195        self.amount_auth = int(100 * self.context.amount_auth)
    194196        hashargs = (
    195197            self.context.p_id +
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/tests/test_export.py

    r15669 r15777  
    103103        result = open(self.outfile, 'rb').read()
    104104        self.assertMatches(
    105             'ac,amount_auth,creation_date,gateway_amt,p_category,p_combi,p_current,'
     105            'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_current,'
    106106            'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,'
    107107            'r_amount_approved,r_card_num,r_code,r_company,r_desc,'
    108108            'r_pay_reference,thirdparty_amt,student_id,state,'
    109109            'current_session\r\n'
    110             '666,12.12,%s-04-01 13:12:01#,,schoolfee,[],1,my-id,p-item,'
     110            '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,'
    111111            '100,%s,paid,%s-04-01 14:12:01#,,12.12,'
    112112            '789,r-code,interswatch,,,,A111111,created,2012\r\n'
Note: See TracChangeset for help on using the changeset viewer.