Changeset 11557


Ignore:
Timestamp:
1 Apr 2014, 12:48:51 (11 years ago)
Author:
Henrik Bettermann
Message:

Change bank account numbers for special payments.

Location:
main/waeup.kwarapoly/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/CHANGES.txt

    r11517 r11557  
    441.2dev (unreleased)
    55===================
     6
     7* Change bank account numbers for special payments.
    68
    79* Use kofa-scrollto script.
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py

    r11303 r11557  
    100100        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
    101101        # Institution data
    102         xmldict['institution_acct'] = "0000000000000"
    103         xmldict['institution_bank_id'] = '0'
    104102        xmldict['institution_item_name'] = self.category
    105103        xmldict['institution_name'] = INSTITUTION_NAME
     
    109107        gateway_amt = GATEWAY_AMT
    110108        self.pay_item_id = '000'
     109        xmldict['institution_acct'] = "7000016724"
     110        xmldict['institution_bank_id'] = "9"
    111111        if self.context.p_category == 'schoolfee':
    112112            self.pay_item_id = '101'
     
    138138        elif self.context.p_category == 'certificate':
    139139            self.pay_item_id = '111'
    140             xmldict['institution_acct'] = "0131959715"
    141             xmldict['institution_bank_id'] = '10'
    142140        elif self.context.p_category == 'state_result':
    143141            self.pay_item_id = '112'
    144             xmldict['institution_acct'] = "0131959715"
    145             xmldict['institution_bank_id'] = '10'
    146142        elif self.context.p_category == 'transcript_local':
    147143            self.pay_item_id = '113'
    148             xmldict['institution_acct'] = "0131959715"
    149             xmldict['institution_bank_id'] = '10'
    150144        elif self.context.p_category == 'transcript_foreign':
    151145            self.pay_item_id = '114'
    152             xmldict['institution_acct'] = "0131959715"
    153             xmldict['institution_bank_id'] = '10'
    154146        elif self.context.p_category == 'ver_result':
    155147            self.pay_item_id = '115'
    156             xmldict['institution_acct'] = "0131959715"
    157             xmldict['institution_bank_id'] = '10'
    158148        elif self.context.p_category == 'change_course':
    159149            self.pay_item_id = '116'
    160             xmldict['institution_acct'] = "0131959715"
    161             xmldict['institution_bank_id'] = '10'
    162150        elif self.context.p_category == 'change_inst':
    163151            self.pay_item_id = '117'
    164             xmldict['institution_acct'] = "0131959715"
    165             xmldict['institution_bank_id'] = '10'
    166152        elif self.context.p_category == 'jamb_reject':
    167153            self.pay_item_id = '118'
    168             xmldict['institution_acct'] = "0131959715"
    169             xmldict['institution_bank_id'] = '10'
    170154        elif self.context.p_category == 'cert_of_cert':
    171155            self.pay_item_id = '119'
    172             xmldict['institution_acct'] = "0131959715"
    173             xmldict['institution_bank_id'] = '10'
    174156        elif self.context.p_category == 'ref_let':
    175157            self.pay_item_id = '120'
    176             xmldict['institution_acct'] = "0131959715"
    177             xmldict['institution_bank_id'] = '10'
    178158        elif self.context.p_category == 'proc_cert':
    179159            self.pay_item_id = '121'
    180             xmldict['institution_acct'] = "0131959715"
    181             xmldict['institution_bank_id'] = '10'
    182160        elif self.context.p_category == 'loss_idcard':
    183161            self.pay_item_id = '122'
    184             xmldict['institution_acct'] = "0131959715"
    185             xmldict['institution_bank_id'] = '10'
    186162            dalash_amt = 6.0
    187163            xmldict['dalash_amt'] = 100 * dalash_amt
     
    190166        elif self.context.p_category == 'loss_examcard':
    191167            self.pay_item_id = '123'
    192             xmldict['institution_acct'] = "0131959715"
    193             xmldict['institution_bank_id'] = '10'
    194168            dalash_amt = 3.0
    195169            xmldict['dalash_amt'] = 100 * dalash_amt
     
    198172        elif self.context.p_category == 'loss_result':
    199173            self.pay_item_id = '124'
    200             xmldict['institution_acct'] = "0131959715"
    201             xmldict['institution_bank_id'] = '10'
    202174        elif self.context.p_category == 'loss_receipt':
    203175            self.pay_item_id = '125'
    204             xmldict['institution_acct'] = "0131959715"
    205             xmldict['institution_bank_id'] = '10'
    206176        elif self.context.p_category == 'loss_clearance':
    207177            self.pay_item_id = '126'
    208             xmldict['institution_acct'] = "0131959715"
    209             xmldict['institution_bank_id'] = '10'
    210178        elif self.context.p_category == 'conv_brochure':
    211179            self.pay_item_id = '127'
    212             xmldict['institution_acct'] = "0131959715"
    213             xmldict['institution_bank_id'] = '10'
    214180        elif 'maintenance' in self.context.p_category:
    215181            self.pay_item_id = '102'
     
    218184            dalash_amt = 0.0
    219185            provider_amt = 0.0
    220 
     186        else:
     187            xmldict['institution_acct'] = "0000000000000"
     188            xmldict['institution_bank_id'] = '0'
    221189
    222190        xmldict['dalash_amt'] = 100 * dalash_amt
     
    225193                self.context.amount_auth - provider_amt -
    226194                gateway_amt - dalash_amt)
    227 
    228195
    229196        hashargs = (
     
    323290            dalash_amt = 0.0
    324291        elif self.applicant.applicant_id.startswith('special'):
     292            xmldict['institution_acct'] = "7000016724"
     293            xmldict['institution_bank_id'] = '9'
    325294            if self.applicant.special_application == 'certificate':
    326295                self.pay_item_id = '111'
    327                 xmldict['institution_acct'] = "0131959715"
    328                 xmldict['institution_bank_id'] = '10'
    329296            elif self.applicant.special_application == 'state_result':
    330297                self.pay_item_id = '112'
    331                 xmldict['institution_acct'] = "0131959715"
    332                 xmldict['institution_bank_id'] = '10'
    333298            elif self.applicant.special_application == 'transcript_local':
    334299                self.pay_item_id = '113'
    335                 xmldict['institution_acct'] = "0131959715"
    336                 xmldict['institution_bank_id'] = '10'
    337300            elif self.applicant.special_application == 'transcript_foreign':
    338301                self.pay_item_id = '114'
    339                 xmldict['institution_acct'] = "0131959715"
    340                 xmldict['institution_bank_id'] = '10'
    341302            elif self.applicant.special_application == 'ver_result':
    342303                self.pay_item_id = '115'
    343                 xmldict['institution_acct'] = "0131959715"
    344                 xmldict['institution_bank_id'] = '10'
    345304            elif self.applicant.special_application == 'change_course':
    346305                self.pay_item_id = '116'
    347                 xmldict['institution_acct'] = "0131959715"
    348                 xmldict['institution_bank_id'] = '10'
    349306            elif self.applicant.special_application == 'change_inst':
    350307                self.pay_item_id = '117'
    351                 xmldict['institution_acct'] = "0131959715"
    352                 xmldict['institution_bank_id'] = '10'
    353308            elif self.applicant.special_application == 'jamb_reject':
    354309                self.pay_item_id = '118'
    355                 xmldict['institution_acct'] = "0131959715"
    356                 xmldict['institution_bank_id'] = '10'
    357310            elif self.applicant.special_application == 'cert_of_cert':
    358311                self.pay_item_id = '119'
    359                 xmldict['institution_acct'] = "0131959715"
    360                 xmldict['institution_bank_id'] = '10'
    361312            elif self.applicant.special_application == 'ref_let':
    362313                self.pay_item_id = '120'
    363                 xmldict['institution_acct'] = "0131959715"
    364                 xmldict['institution_bank_id'] = '10'
    365314            elif self.applicant.special_application == 'proc_cert':
    366315                self.pay_item_id = '121'
    367                 xmldict['institution_acct'] = "0131959715"
    368                 xmldict['institution_bank_id'] = '10'
    369316            elif self.applicant.special_application == 'loss_idcard':
    370317                self.pay_item_id = '122'
    371                 xmldict['institution_acct'] = "0131959715"
    372                 xmldict['institution_bank_id'] = '10'
    373318                dalash_amt = 6.0
    374319                xmldict['dalash_amt'] = 100 * dalash_amt
     
    377322            elif self.applicant.special_application == 'loss_examcard':
    378323                self.pay_item_id = '123'
    379                 xmldict['institution_acct'] = "0131959715"
    380                 xmldict['institution_bank_id'] = '10'
    381324                dalash_amt = 3.0
    382325                xmldict['dalash_amt'] = 100 * dalash_amt
     
    385328            elif self.applicant.special_application == 'loss_result':
    386329                self.pay_item_id = '124'
    387                 xmldict['institution_acct'] = "0131959715"
    388                 xmldict['institution_bank_id'] = '10'
    389330            elif self.applicant.special_application == 'loss_receipt':
    390331                self.pay_item_id = '125'
    391                 xmldict['institution_acct'] = "0131959715"
    392                 xmldict['institution_bank_id'] = '10'
    393332            elif self.applicant.special_application == 'loss_clearance':
    394333                self.pay_item_id = '126'
    395                 xmldict['institution_acct'] = "0131959715"
    396                 xmldict['institution_bank_id'] = '10'
    397334            elif self.applicant.special_application == 'conv_brochure':
    398335                self.pay_item_id = '127'
    399                 xmldict['institution_acct'] = "0131959715"
    400                 xmldict['institution_bank_id'] = '10'
    401336            else:
    402337                xmldict['institution_acct'] = '00000000000'
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r10847 r11557  
    592592        self.assertTrue(
    593593            '<item_detail item_id="1" item_name="transcript_local" '
    594             'item_amt="450000" bank_id="10" acct_num="0131959715" />'
    595             in self.browser.contents)
     594            'item_amt="450000" bank_id="9" acct_num="7000016724" />'
     595            in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.