Changeset 15828


Ignore:
Timestamp:
19 Nov 2019, 20:31:30 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base packages.

Location:
main/waeup.uniben/trunk/src/waeup/uniben
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py

    r14902 r15828  
    7373            self.redirect(self.url(self.context, '@@index'))
    7474            return
     75        self.context.r_company = u'interswitch'
    7576        student = self.student
    7677        xmldict = self.xmldict
     
    135136        self.context.provider_amt = provider_amt
    136137        self.context.gateway_amt = GATEWAY_AMT
     138        self.amount_auth = int(100 * self.context.amount_auth)
    137139        return
    138140
     
    154156            self.redirect(self.url(self.context, '@@index'))
    155157            return
     158        self.context.r_company = u'interswitch'
    156159        xmldict = {}
    157160        provider_amt = 400.0
     
    184187        self.context.provider_amt = provider_amt
    185188        self.context.gateway_amt = GATEWAY_AMT
     189        self.amount_auth = int(100 * self.context.amount_auth)
    186190        return
    187191
  • main/waeup.uniben/trunk/src/waeup/uniben/remita/browser.py

    r15817 r15828  
    185185
    186186    def update(self):
    187         if not module_activated(self.context.student.current_session):
     187        if not module_activated(
     188            self.context.student.current_session, self.context):
    188189            return
    189190        self.orderId = self.context.p_id
     
    279280
    280281    def update(self):
    281         if not module_activated(self.context.__parent__.__parent__.year):
     282        if not module_activated(
     283            self.context.__parent__.__parent__.year, self.context):
    282284            return
    283285        self.orderId = self.context.p_id
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r15666 r15828  
    321321        self.assertMatches('...Amount Authorized...',
    322322                           self.browser.contents)
    323         # Managers can open payment slip
    324         self.browser.getLink("Download payment slip").click()
    325         self.assertEqual(self.browser.headers['Status'], '200 Ok')
    326         self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     323        # Managers can open payment slip because we did not proceed to
     324        # any payment gateway
     325        self.assertFalse('Download payment slip' in self.browser.contents)
    327326        # Set ticket paid
    328327        ticket = self.student['payments'].items()[0][1]
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py

    r15666 r15828  
    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,rebate_amount,staff_rebate,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.