Ignore:
Timestamp:
6 Jul 2023, 04:06:15 (16 months ago)
Author:
Henrik Bettermann
Message:

Configure more payment categories.

File:
1 edited

Legend:

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

    r17456 r17468  
    6666    'fac2':     ('2000249757', '8'),
    6767    'fac3':     ('1012678566', '123'),
    68     'acceptance': ('2000249757', '8'),
    6968    'matricgown': ('2000249757', '8'),
    7069    'lapel':      ('2000249757', '8'),
    7170
     71    'acceptance': ('2000249757', '8'),
     72
    7273    'hostel_maintenance': ('1006406795', '123'),
     74    'bed_allocation':     ('1006406795', '123'),
    7375    'late_registration':  ('5210006575', '51'),
    7476    'ent_combined':       ('6220029828', '51'),
     
    8587    'gst_text_book_2':    ('1010893123', '117'),
    8688    'gst_text_book_3':    ('1010893123', '117'),
     89
     90    'postgrad': ('1010827641', '117'),
    8791    }
    8892
     
    153157        if self.applicant.applicant_id.startswith('trans'):
    154158            provider_amt = 3000.0
    155         xmldict['institution_acct'] = '00000000'
    156         xmldict['institution_bank_id'] = '00'
     159        xmldict['institution_acct'] = '1012332141'
     160        xmldict['institution_bank_id'] = '123'
     161        if self.applicant.applicant_id.startswith('dsh'):
     162            xmldict['institution_acct'] = '1014847058'
     163            xmldict['institution_bank_id'] = '7'
     164        if self.applicant.applicant_id.startswith('ijmbe'):
     165            xmldict['institution_acct'] = '1012278272'
     166            xmldict['institution_bank_id'] = '123'
    157167        xmldict['detail_ref'] = self.context.p_id
    158168        xmldict['provider_amt'] = 100 * provider_amt
     
    328338            # no additional charges, determine faculty bank only
    329339            else:
    330                 if student.faccode in ('FAG', 'FAT', 'FBM', 'FMLS', 'fac1'):
     340                if student.is_postgrad:
     341                    bank = BANK_ACCOUNTS['postgrad']
     342                elif student.faccode in ('FAG', 'FAT', 'FBM', 'FMLS', 'fac1'):
    331343                    bank = BANK_ACCOUNTS['fac1']
    332344                elif student.faccode in ('FCS', 'FED', 'FES', 'FET'):
     
    365377            # no additional charges, determine faculty bank only
    366378            else:
    367                 bank = BANK_ACCOUNTS['acceptance']
     379                if student.is_postgrad:
     380                    bank = BANK_ACCOUNTS['postgrad']
     381                else:
     382                    bank = BANK_ACCOUNTS['acceptance']
    368383                xmldict['institution_acct'] = bank[0]
    369384                xmldict['institution_bank_id'] = bank[1]
     
    374389            xmldict['institution_acct'] = bank[0]
    375390            xmldict['institution_bank_id'] = bank[1]
    376 
    377 
    378 
    379 
    380 
    381 
    382 
    383391
    384392        if not xmltext and provider_amt == 0:
Note: See TracChangeset for help on using the changeset viewer.