Changeset 17599 for main/kofacustom.unidel/trunk
- Timestamp:
- 1 Oct 2023, 20:32:58 (15 months ago)
- 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 32 32 33 33 clearance_fee = schema.Float( 34 title = _(u'Acceptance Fee '),34 title = _(u'Acceptance Fee (default)'), 35 35 default = 0.0, 36 36 required = False, … … 96 96 # Additional fees in custom package add here 97 97 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 ) 98 109 99 110 def getSessionString(): -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py
r17506 r17599 89 89 if self.context.p_category == 'clearance': 90 90 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' 98 96 elif self.context.p_category == 'schoolfee': 99 97 provider_amt = 2800.0 100 98 tech_fee = 1200.0 101 99 xmldict['institution_acct'] = '1011739172' 100 xmldict['tech_acct'] = '0213065415' 101 xmldict['tech_bank_id'] = '47' 102 102 if student.faccode in ('PRE', 'JUPEB'): 103 103 xmldict['institution_acct'] = '2001627961' … … 152 152 <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" /> 153 153 <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"/> 155 155 </item_details> 156 156 </payment_item_detail>""" % xmldict -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/tests.py
r16869 r17599 101 101 self.assertEqual(self.student.current_mode, 'ug_ft') 102 102 self.assertMatches( 103 '...<input type="hidden" name="amount" value="1 15000" />...',103 '...<input type="hidden" name="amount" value="1975000" />...', 104 104 self.browser.contents) 105 105 delta = timedelta(days=8) -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
r17598 r17599 139 139 return _('Study course data are incomplete.'), None 140 140 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 151 146 elif category == 'bed_allocation': 152 147 acco_details = self.getAccommodationDetails(student)
Note: See TracChangeset for help on using the changeset viewer.