Ignore:
Timestamp:
7 Dec 2017, 13:38:59 (7 years ago)
Author:
Henrik Bettermann
Message:

Apply Treasury Single Account policy also to AAUE.

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

Legend:

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

    r14910 r14920  
    9696        xmldict = {}
    9797        provider_amt = 4000.0
    98         xmldict['institution_acct'] = '1010835352'
     98        xmldict['institution_acct'] = '1010827641'
    9999        xmldict['institution_bank_id'] = '117'
    100100        xmldict['detail_ref'] = self.context.p_id
     
    107107
    108108        if self.applicant.applicant_id.startswith('ijmbe'):
    109             xmldict['institution_acct'] = '0772012897'
    110             xmldict['institution_bank_id'] = '47'
     109            xmldict['institution_acct'] = '1010827641'
     110            xmldict['institution_bank_id'] = '117'
    111111
    112112        if self.applicant.applicant_id.startswith('trans'):
    113             xmldict['institution_acct'] = '2031473949'
    114             xmldict['institution_bank_id'] = '8'
     113            xmldict['institution_acct'] = '1010827641'
     114            xmldict['institution_bank_id'] = '117'
    115115
    116116        if self.applicant.applicant_id.startswith('cert'):
    117             xmldict['institution_acct'] = '2031473949'
    118             xmldict['institution_bank_id'] = '8'
     117            xmldict['institution_acct'] = '1010827641'
     118            xmldict['institution_bank_id'] = '117'
    119119
    120120        if self.applicant.applicant_id.startswith('pg'):
     
    248248                student_welfare_assurance_amt = gateway_net_amt(
    249249                    academic_session.welfare_fee)
    250                 xmldict['institution_bank_id'] = '7'
    251                 xmldict['institution_acct'] = '1014847058'
     250                xmldict['institution_bank_id'] = '117'
     251                xmldict['institution_acct'] = '1010827641'
    252252                xmldict['student_union_bank_id'] = '31'
    253253                xmldict['student_union_acct'] = '0051005007'
    254                 xmldict['aaue_share_bank_id'] = '51'
    255                 xmldict['aaue_share_acct'] = '5060020947'
    256                 xmldict['joint_venture_bank_id'] = '51'
    257                 xmldict['joint_venture_acct'] = '5060023759'
     254                xmldict['aaue_share_bank_id'] = '117'
     255                xmldict['aaue_share_acct'] = '1010827641'
     256                xmldict['joint_venture_bank_id'] = '117'
     257                xmldict['joint_venture_acct'] = '1010827641'
    258258                if student.current_mode == 'found':
    259259                    self.pay_item_id = '103'
     
    273273                xmldict['student_union_bank_id'] = '7'
    274274                xmldict['student_union_acct'] = '1019763348'
    275                 xmldict['aaue_share_bank_id'] = '11'
    276                 xmldict['aaue_share_acct'] = '0030656377'
     275                xmldict['aaue_share_bank_id'] = '117'
     276                xmldict['aaue_share_acct'] = '1010827641'
    277277                xmldict['joint_venture_bank_id'] = '117'
    278                 xmldict['joint_venture_acct'] = '1014573025'
     278                xmldict['joint_venture_acct'] = '1010827641'
    279279                self.pay_item_id = '107'
    280280                if student.is_postgrad:
    281                     xmldict['institution_bank_id'] = '51'
    282                     xmldict['institution_acct'] = '5210006575'
     281                    xmldict['institution_bank_id'] = '117'
     282                    xmldict['institution_acct'] = '1010827641'
    283283                    self.pay_item_id = '111'
    284284                if student.current_mode == 'ijmbe':
    285                     xmldict['institution_bank_id'] = '47'
    286                     xmldict['institution_acct'] = '0772012897'
     285                    xmldict['institution_bank_id'] = '117'
     286                    xmldict['institution_acct'] = '1010827641'
    287287                    self.pay_item_id = '119'
    288288                    xmldict['joint_venture_bank_id'] = '117'
     
    346346                else:
    347347                    self.pay_item_id = '104'
    348                 xmldict['institution_acct'] = '1014066976'
     348                xmldict['institution_acct'] = '1010827641'
    349349                xmldict['institution_bank_id'] = '117'
    350350            else:
     
    354354                xmldict['institution_bank_id'] = '117'
    355355                if student.is_postgrad:
    356                     xmldict['institution_bank_id'] = '51'
    357                     xmldict['institution_acct'] = '5210006575'
     356                    xmldict['institution_bank_id'] = '117'
     357                    xmldict['institution_acct'] = '1010827641'
    358358                    self.pay_item_id = '110'
    359359                if student.current_mode == 'ijmbe':
    360                     xmldict['institution_bank_id'] = '47'
    361                     xmldict['institution_acct'] = '0772012897'
     360                    xmldict['institution_bank_id'] = '117'
     361                    xmldict['institution_acct'] = '1010827641'
    362362                    self.pay_item_id = '120'
    363363
     
    375375<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    376376<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" />
    377 <item_detail item_id="2" item_name="Matriculation Gown Fee" item_amt="%(gown_fee_amt)d" bank_id="51" acct_num="5060020947" />
     377<item_detail item_id="2" item_name="Matriculation Gown Fee" item_amt="%(gown_fee_amt)d" bank_id="117" acct_num="1010827641" />
    378378<item_detail item_id="3" item_name="AAU File-Lapel Fee" item_amt="%(aaue_lf_fee_amt)d" bank_id="51" acct_num="4010660109" />
    379379</item_details>
     
    451451        elif self.context.p_category == 'matric_gown':
    452452            self.pay_item_id = '106'
    453             xmldict['institution_acct'] = '5060023429'
    454             xmldict['institution_bank_id'] = '51'
     453            xmldict['institution_acct'] = '1010827641'
     454            xmldict['institution_bank_id'] = '117'
    455455            xmldict['institution_amt'] = 100 * (
    456456                gateway_net_amt(self.context.amount_auth))
     
    464464        elif self.context.p_category == 'concessional':
    465465            self.pay_item_id = '107'
    466             xmldict['institution_acct'] = '1010835352'
     466            xmldict['institution_acct'] = '1010827641'
    467467            xmldict['institution_bank_id'] = '117'
    468468            xmldict['institution_amt'] = 100 * (
     
    479479            self.pay_item_id = '109'
    480480            xmldict['provider_amt'] = 100 * provider_amt
    481             xmldict['institution_acct'] = '1006406795'
    482             xmldict['institution_bank_id'] = '123'
     481            xmldict['institution_acct'] = '1010827641'
     482            xmldict['institution_bank_id'] = '117'
    483483            xmldict['institution_amt'] = 100 * (
    484484                gateway_net_amt(self.context.amount_auth) - provider_amt)
     
    554554            else:
    555555                self.pay_item_id = '123'
    556             xmldict['institution_acct'] = '1010835352'
     556            xmldict['institution_acct'] = '1010827641'
    557557            xmldict['institution_bank_id'] = '117'
    558558            xmldict['institution_amt'] = 100 * (
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r14910 r14920  
    8181            in self.browser.contents)
    8282        self.assertTrue(
    83             'item_name="Application Fee" item_amt="575000" bank_id="117" acct_num="1010835352"'
     83            'item_name="Application Fee" item_amt="575000" bank_id="117" acct_num="1010827641"'
    8484            in self.browser.contents)
    8585        self.assertTrue(
     
    112112            in self.browser.contents)
    113113        self.assertTrue(
    114             'item_name="Application Fee" item_amt="375000" bank_id="117" acct_num="1010835352"'
     114            'item_name="Application Fee" item_amt="375000" bank_id="117" acct_num="1010827641"'
    115115            in self.browser.contents)
    116116        self.assertTrue(
     
    146146            in self.browser.contents)
    147147        self.assertTrue(
    148             'item_name="Application Fee" item_amt="575000" bank_id="117" acct_num="1010835352"'
     148            'item_name="Application Fee" item_amt="575000" bank_id="117" acct_num="1010827641"'
    149149            in self.browser.contents)
    150150        self.assertFalse(
     
    218218        self.assertTrue(
    219219            'item_name="School Fee Plus" '
    220             'item_amt="4600000" bank_id="7" '
    221             'acct_num="1014847058"' in self.browser.contents)
     220            'item_amt="4600000" bank_id="117" '
     221            'acct_num="1010827641"' in self.browser.contents)
    222222
    223223    def test_interswitch_form_regular_school_fees(self):
     
    294294            'item_name="Acceptance Fee Plus" '
    295295            'item_amt="4000000" bank_id="117" '
    296             'acct_num="1014066976"' in self.browser.contents)
     296            'acct_num="1010827641"' in self.browser.contents)
    297297
    298298    def test_interswitch_form_regular_acceptance_fees(self):
     
    354354        self.assertTrue(
    355355            'item_name="Concessional Fee" item_amt="131700" '
    356             'bank_id="117" acct_num="1010835352"'
     356            'bank_id="117" acct_num="1010827641"'
    357357            in self.browser.contents)
    358358
Note: See TracChangeset for help on using the changeset viewer.