Changeset 17599


Ignore:
Timestamp:
1 Oct 2023, 20:32:58 (14 months ago)
Author:
Henrik Bettermann
Message:

Reconfigure clearance (acceptance) fee.

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

Legend:

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

    r17328 r17599  
    3232
    3333    clearance_fee = schema.Float(
    34         title = _(u'Acceptance Fee'),
     34        title = _(u'Acceptance Fee (default)'),
    3535        default = 0.0,
    3636        required = False,
     
    9696    # Additional fees in custom package add here
    9797
     98    ugftlocal_clearance_fee = schema.Float(
     99        title = _(u'UG FT Local Acceptance Fee (without Btech Fee)'),
     100        default = 0.0,
     101        required = False,
     102        )
     103
     104    ugft_clearance_fee = schema.Float(
     105        title = _(u'UG FT Non-Local Acceptance Fee (without Btech Fee)'),
     106        default = 0.0,
     107        required = False,
     108        )
    98109
    99110    def getSessionString():
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py

    r17506 r17599  
    8989        if self.context.p_category == 'clearance':
    9090            provider_amt = 500.0
    91             xmldict['institution_acct'] = '1216063205'
    92             if student.faccode in ('PRE', 'JUPEB'):
    93                 xmldict['institution_acct'] = '1011431799'
    94             if student.current_mode.startswith('dp'):
    95                 xmldict['institution_acct'] = '1011431799'
    96             if student.faccode == 'IJMB':
    97                 xmldict['institution_acct'] = '0093658062'
     91            if student.current_mode in ('ug_ft', 'de_ft'):
     92                xmldict['institution_acct'] = '1216063205'
     93                tech_fee = 18000.0
     94                xmldict['tech_acct'] = '0092304647'
     95                xmldict['tech_bank_id'] = '121'
    9896        elif self.context.p_category == 'schoolfee':
    9997            provider_amt = 2800.0
    10098            tech_fee = 1200.0
    10199            xmldict['institution_acct'] = '1011739172'
     100            xmldict['tech_acct'] = '0213065415'
     101            xmldict['tech_bank_id'] = '47'
    102102            if student.faccode in ('PRE', 'JUPEB'):
    103103                xmldict['institution_acct'] = '2001627961'
     
    152152<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" />
    153153<item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
    154 <item_detail item_id="3" item_name="Technology Fee" item_amt="%(tech_fee)d" bank_id="47" acct_num="0213065415" />
     154<item_detail item_id="3" item_name="Technology Fee" item_amt="%(tech_fee)d" bank_id="%(tech_bank_id)s" acct_num="%(tech_acct)s"/>
    155155</item_details>
    156156</payment_item_detail>""" % xmldict
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/tests.py

    r16869 r17599  
    101101        self.assertEqual(self.student.current_mode, 'ug_ft')
    102102        self.assertMatches(
    103             '...<input type="hidden" name="amount" value="115000" />...',
     103            '...<input type="hidden" name="amount" value="1975000" />...',
    104104            self.browser.contents)
    105105        delta = timedelta(days=8)
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py

    r17598 r17599  
    139139                return _('Study course data are incomplete.'), None
    140140            amount = academic_session.clearance_fee
    141             if local(student):
    142                 amount *= 2.0
    143             else:
    144                 amount *= 2.4
    145             if student.faccode == 'PRE':
    146                 amount = 20000.0
    147             if student.faccode == 'JUPEB':
    148                 amount = 25000.0
    149             if student.current_mode.startswith('dp'):
    150                 amount = 20000.0
     141            if student.current_mode in ('ug_ft', 'de_ft'):
     142                if local(student):
     143                    amount = academic_session.ugftlocal_clearance_fee
     144                else:
     145                    amount = academic_session.ugft_clearance_fee
    151146        elif category == 'bed_allocation':
    152147            acco_details = self.getAccommodationDetails(student)
Note: See TracChangeset for help on using the changeset viewer.