Changeset 17114


Ignore:
Timestamp:
4 Oct 2022, 11:45:22 (2 years ago)
Author:
Henrik Bettermann
Message:

Add more application types and categories.

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/applicants/utils.py

    r17058 r17114  
    3535        'jupeb': ['JUPEB Pre-Degree (Foundation) Studies', 'PRE'],
    3636        'pre': ['Pre-Degree (Foundation) Studies', 'PRE'],
     37        'dp': ['Diploma Programmes', 'DP'],
     38        'de_ft': ['Direct Entry Full-Time Programmes', 'DEFT'],
     39        'de_pt': ['Direct Entry Part-Time Programmes', 'DEPT'],
    3740        }
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py

    r17063 r17114  
    9191            xmldict['institution_acct'] = '1216063205'
    9292            xmldict['institution_bank_id'] = '117'
     93            if student.is_jupeb:
     94                xmldict['institution_acct'] = '1011431799'
    9395        if self.context.p_category == 'schoolfee':
    9496            provider_amt = 2800.0
     
    9698            xmldict['institution_acct'] = '1011739172'
    9799            xmldict['institution_bank_id'] = '117'
     100            if self.context.student.current_mode.startswith('dp_'):
     101                pass # probably different account?!
    98102        if self.context.p_category == 'hostel_maintenance':
    99103            xmldict['institution_acct'] = '1012551384'
     
    184188        xmldict['institution_acct'] = '1216063205'
    185189        xmldict['institution_bank_id'] = '117'
    186         if self.context.__parent__.__parent__.prefix in ('pre', 'jupeb'):
     190        if self.context.__parent__.__parent__.prefix in (
     191                                    'pre', 'jupeb', 'dp_ft', 'dp_pt'):
    187192            xmldict['institution_acct'] = '1011431799'
    188193            xmldict['institution_bank_id'] = '117'
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/student.py

    r16721 r17114  
    4343        return False
    4444
     45    @property
     46    def is_jupeb(self):
     47        if self.faccode.startswith('JUPEB'):
     48            return True
     49        return False
    4550
    4651# Set all attributes of Student required in IStudent as field
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py

    r17062 r17114  
    6767        'pre': 'Pre-Degree Studies',
    6868        'jupeb': 'JUPEB Pre-Degree (Foundation) Studies',
     69        'dp': 'Diploma Programmes',
     70        'de_ft': 'Direct Entry Full-Time Programmes',
     71        'de_pt': 'Direct Entry Part-Time Programmes',
    6972        }
    7073
Note: See TracChangeset for help on using the changeset viewer.