Ignore:
Timestamp:
29 Oct 2012, 21:09:42 (12 years ago)
Author:
Henrik Bettermann
Message:

New bank details and bank account assignment.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/interswitch
Files:
2 edited

Legend:

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

    r9443 r9460  
    235235        xmldict['institution_amt'] = '0.0'
    236236        if self.context.p_category == 'schoolfee':
    237             if student.current_mode.endswith('_ft') \
    238                 and student.state == RETURNING:
    239                 provider_amt = 600
    240             else:
    241                 provider_amt = 1500
    242             #studycourse = student['studycourse']
     237            provider_amt = 1500
    243238            if student.current_mode.endswith('_ft'):
    244239                self.pay_item_id = '5700'
    245                 #post-grad full-time students of all faculties
    246                 if student.is_postgrad:
    247                     xmldict['institution_acct'] = '1012842833'
    248                     xmldict['institution_bank_id'] = '117'
    249                 #all other part-time students depending on faculty
    250                 elif student.faccode in ('SSC','LAW','MED'):
    251                     xmldict['institution_acct'] = '0005986938'
    252                     xmldict['institution_bank_id'] = '31'
    253                 elif student.faccode in ('ENG','PSC','PHA'):
    254                     xmldict['institution_acct'] = '0014413973'
    255                     xmldict['institution_bank_id'] = '129'
    256                 elif student.faccode in ('LSC','DEN','AGR'):
    257                     xmldict['institution_acct'] = '1012801319'
    258                     xmldict['institution_bank_id'] = '117'
    259                 elif student.faccode in ('ART','EDU','MGS','BMS'):
    260                     xmldict['institution_acct'] = '6220027556'
     240                if student.current_mode in ('ug_ft','de_ft','ct_ft','ume_ft'):
     241                    xmldict['institution_acct'] = '2017506430'
     242                    xmldict['institution_bank_id'] = '8'
     243                elif student.current_mode in ('dp_ft'):
     244                    xmldict['institution_acct'] = '9201805071'
     245                    xmldict['institution_bank_id'] = '17'
     246                elif student.current_mode in ('pg_ft'):
     247                    xmldict['institution_acct'] = '5330832799'
    261248                    xmldict['institution_bank_id'] = '51'
    262249            elif student.current_mode.endswith('_pt'):
    263250                self.pay_item_id = '5701'
    264                 #post-grad part-time students of all faculties
    265                 if student.is_postgrad:
    266                     xmldict['institution_acct'] = '0023708207'
    267                     xmldict['institution_bank_id'] = '72'
    268                 #all other part-time students depending on faculty
    269                 elif student.faccode in ('ENG','LAW','MGS'):
    270                     xmldict['institution_acct'] = '2019006824'
    271                     xmldict['institution_bank_id'] = '8'
    272                 elif student.faccode in ('IPA','PHA','SSC','AGR','EDU'):
    273                     xmldict['institution_acct'] = '0122012109'
     251                if student.current_mode in ('ug_pt','de_pt','ct_pt'):
     252                    xmldict['institution_acct'] = '0122009929'
    274253                    xmldict['institution_bank_id'] = '16'
     254                elif student.current_mode in ('dp_pt'):
     255                    xmldict['institution_acct'] = '9201805071'
     256                    xmldict['institution_bank_id'] = '17'
     257                elif student.current_mode in ('pg_pt'):
     258                    xmldict['institution_acct'] = '0031716047'
     259                    xmldict['institution_bank_id'] = '10'
    275260        elif self.context.p_category == 'clearance':
    276261            self.pay_item_id = '5702'
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py

    r9453 r9460  
    8686        self.assertMatches('...Total Amount Authorized:...',
    8787                           self.browser.contents)
     88        self.assertEqual(self.student.current_mode, 'ug_ft')
    8889        self.assertMatches(
    8990            '...<input type="hidden" name="amount" value="4000000.0" />...',
    9091            self.browser.contents)
    9192        self.assertMatches(
    92             '...item_name="School Fee" item_amt="3835000" bank_id="00" acct_num="000000000000"...',
     93            '...item_name="School Fee" item_amt="3835000" bank_id="8" acct_num="2017506430"...',
    9394            self.browser.contents)
    9495        self.assertMatches(
     
    115116            self.browser.contents)
    116117        self.assertMatches(
    117             '...item_name="School Fee" item_amt="1835000" bank_id="00" acct_num="000000000000"...',
     118            '...item_name="School Fee" item_amt="1835000" bank_id="16" acct_num="0122009929"...',
    118119            self.browser.contents)
    119120        self.assertMatches(
Note: See TracChangeset for help on using the changeset viewer.