Changeset 15512 for main


Ignore:
Timestamp:
24 Jul 2019, 19:59:27 (5 years ago)
Author:
Henrik Bettermann
Message:

Account and technology fee changes according to ticket #580.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
2 edited

Legend:

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

    r15480 r15512  
    118118                provider_amt = 1000.0
    119119            if self.applicant.__parent__.prefix in ('trans', 'cert'):
     120                self.institution_acct = '1010827641'
     121                self.institution_bank_id = '117'
    120122                self.provider_bank_id = '10'
    121123                self.provider_acct = '0427773399'
     124                if self.applicant.applicant_id[:5] in ('cert7', 'cert8'):
     125                    provider_amt = 0.0
     126                if self.applicant.applicant_id[:6] in ('trans5', 'trans6'):
     127                    self.institution_acct = '5210006575'
     128                    self.institution_bank_id = '5'
    122129            elif self.applicant.applicant_id.startswith('bridge',): # easier to test
    123130                self.institution_acct = '1014847058'
    124131                self.institution_bank_id = '7'
    125 
    126132        xmldict = {}
    127133        xmldict['detail_ref'] = self.context.p_id
     
    136142        xmldict['institution_amt'] = 100 * (
    137143            self.context.amount_auth - provider_amt - GATEWAY_AMT)
     144
    138145        xmltext = """<payment_item_detail>
    139146<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
    140147<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
    141148<item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
     149</item_details>
     150</payment_item_detail>""" % xmldict
     151
     152        if provider_amt == 0.0:
     153            xmltext = """<payment_item_detail>
     154<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
     155<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
    142156</item_details>
    143157</payment_item_detail>""" % xmldict
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r15511 r15512  
    438438        #        "Course registration has ended. "
    439439        #        "Unregistration is disabled."), type="danger")
    440         elif str(self.context.__parent__.current_level) != self.context.__name__:
     440        if str(self.context.__parent__.current_level) != self.context.__name__:
    441441            self.flash(_('This is not your current level.'), type="danger")
    442442        elif self.context.student.state == REGISTERED:
Note: See TracChangeset for help on using the changeset viewer.