Ignore:
Timestamp:
25 Apr 2012, 11:37:11 (12 years ago)
Author:
Henrik Bettermann
Message:

Next try.

File:
1 edited

Legend:

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

    r8274 r8276  
    228228        student = self.student = self.context.getStudent()
    229229        certificate = getattr(self.student['studycourse'],'certificate',None)
     230        self.amount_auth = 100 * self.context.amount_auth
    230231        xmldict = {}
    231232        if certificate is not None:
     
    235236            xmldict['department'] = None
    236237            xmldict['faculty'] = None
    237         self.amount_special = 100 * (self.context.amount_auth - 150)
    238238        self.category = payment_categories.getTermByToken(
    239239            self.context.p_category).title
     
    285285                xmldict['institution_acct'] = '0122012109'
    286286                xmldict['institution_bank_id'] = '16'
    287         xmldict['institution_amt'] = self.amount_special - 100 * provider_amt
     287        xmldict['institution_amt'] = 100 * (self.amount_auth - provider_amt - 150)
    288288        xmldict['institution_item_name'] = self.context.p_category
    289289        xmldict['institution_name'] = INSTITUTION_NAME
     
    320320            return
    321321        self.applicant = self.context.__parent__
     322        self.amount_auth = 100 * self.context.amount_auth
    322323        xmldict = {}
    323324        self.category = payment_categories.getTermByToken(
    324325            self.context.p_category).title
    325         # substract invisible Interswitch surcharge
    326         self.amount_special = 100 * (self.context.amount_auth - 150)
    327326        self.local_date_time = str(self.context.creation_date)
    328327        self.site_redirect_url = self.url(self.context, 'request_webservice')
Note: See TracChangeset for help on using the changeset viewer.