Changeset 15105
- Timestamp:
- 13 Aug 2018, 05:55:02 (6 years ago)
- Location:
- main/kofacustom.edopoly/trunk/src/kofacustom/edopoly
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interfaces.py
r15071 r15105 105 105 ) 106 106 107 union_fee = schema.Float( 108 title = _(u'Student Union Dues'), 109 default = 0.0, 110 required = False, 111 ) 112 107 113 def getSessionString(): 108 114 """Returns the session string from the vocabulary. -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/browser.py
r15101 r15105 80 80 if self.context.p_category == 'clearance': 81 81 provider_amt = 1500.0 82 83 82 # temporarily disabled 84 83 #if self.context.p_category in ('transcript', 'certificate'): 85 84 # provider_amt = 2000.0 86 87 85 # Institution data 88 86 xmldict['institution_acct'] = '0068241848' 89 87 xmldict['institution_bank_id'] = '121' 88 if self.context.p_category == 'union': 89 xmldict['institution_acct'] = '0066437412' 90 90 xmldict['institution_amt'] = '0.0' 91 91 self.pay_item_id = '101' # must be provided by Interswitch … … 96 96 self.context.amount_auth - provider_amt - GATEWAY_AMT) 97 97 # Interswitch amount is not part of the xml data 98 if not self.context.p_item == 'Balance' \ 99 and self.context.p_category == 'schoolfee': 100 xmldict['institution_amt'] -= 200000 101 xmltext = """<payment_item_detail> 102 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 103 <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" /> 104 <item_detail item_id="2" item_name="Student Union Dues" item_amt="200000" bank_id="121" acct_num="0066437412" /> 105 </item_details> 106 </payment_item_detail>""" % xmldict 107 elif provider_amt == 0: 98 if provider_amt == 0: 108 99 xmltext = """<payment_item_detail> 109 100 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/tests.py
r15087 r15105 105 105 self.browser.contents) 106 106 self.assertTrue( 107 'item_name="Tuition/Exams Fee and Student Union Dues" item_amt="3775000" bank_id="121" acct_num="0068241848"' in 108 self.browser.contents) 109 self.assertTrue( 110 'item_name="Student Union Dues" item_amt="200000" bank_id="121" acct_num="0066437412"' in 107 'item_name="Tuition/Exams Fee" item_amt="3975000" bank_id="121" acct_num="0068241848"' in 111 108 self.browser.contents) 112 109 # Clearance Fee -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/utils.py
r15078 r15105 228 228 elif category == 'late_registration': 229 229 amount = academic_session.late_registration_fee 230 elif category == 'union': 231 amount = academic_session.union_fee 230 232 if amount in (0.0, None): 231 233 return _('Amount could not be determined.'), None -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/utils/utils.py
r15103 r15105 35 35 36 36 PAYMENT_CATEGORIES = { 37 'schoolfee': 'Tuition/Exams Fee and Student Union Dues',37 'schoolfee': 'Tuition/Exams Fee', 38 38 'clearance': 'Acceptance Fee', 39 39 'bed_allocation': 'Accommodation Booking Fee', … … 48 48 'late_registration': 'Late Course Registration Fee', 49 49 'final_clearance': 'Final Clearance Fee', 50 'union': 'Student Union Dues', 50 51 } 51 52 … … 53 54 54 55 BALANCE_PAYMENT_CATEGORIES = { 55 'schoolfee': 'Tuition/Exams Fee and Student Union Dues',56 'schoolfee': 'Tuition/Exams Fee', 56 57 'ict_entre': 'ICT and Entrepreneur Fee', 57 58 'certificate_confirm': 'Certificate Confirmation Fee', … … 70 71 'late_registration': 'Late Course Registr. Fee', 71 72 'final_clearance': 'Final Clearance Fee', 73 'union': 'Student Union Dues', 72 74 } 73 75
Note: See TracChangeset for help on using the changeset viewer.