Changeset 13410 for main/waeup.aaue/trunk
- Timestamp:
- 8 Nov 2015, 06:18:44 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interfaces.py
r13377 r13410 141 141 ) 142 142 143 medical_fee = schema.Float(144 title = _(u'Medical Student Acceptance Fee'),145 default = 0.0,146 required = True,147 )148 149 143 coursereg_deadline = schema.Datetime( 150 144 title = _(u'Course Reg. Deadline'), -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r13409 r13410 271 271 xmldict['institution_bank_id'] = '117' 272 272 273 if self.context.p_category == 'clearance_incl':273 if self.context.p_category.endswith('_incl'): 274 274 # Clearance including additional fees 275 275 gown_fee_amt = academic_session.matric_gown_fee - \ … … 373 373 </payment_item_detail>""" % xmldict 374 374 375 # Medical Acceptance376 elif self.context.p_category == 'medical':377 self.pay_item_id = '108'378 xmldict['institution_acct'] = '1010827641'379 xmldict['institution_bank_id'] = '117'380 xmldict['institution_amt'] = 100 * (381 self.context.amount_auth -382 dynamic_gateway_amt(self.context.amount_auth))383 xmltext = """<payment_item_detail>384 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">385 <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" />386 </item_details>387 </payment_item_detail>""" % xmldict388 389 375 # Hostel Maintenance 390 376 elif self.context.p_category == 'hostel_maintenance': -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r13408 r13410 140 140 in self.browser.contents) 141 141 self.assertTrue( 142 'item_name="School Fee plus" '142 'item_name="School Fee Plus" ' 143 143 'item_amt="4600000" bank_id="7" ' 144 144 'acct_num="1014847058"' in self.browser.contents) … … 215 215 in self.browser.contents) 216 216 self.assertTrue( 217 'item_name="Acceptance Fee plus" '217 'item_name="Acceptance Fee Plus" ' 218 218 'item_amt="4000000" bank_id="117" ' 219 219 'acct_num="1014066976"' in self.browser.contents) -
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r13408 r13410 151 151 text += (', %s Naira Student Welfare Assurance Fee and %s Naira Students\' Union Dues' 152 152 % (welfare_fee, union_fee)) 153 elif self.context.p_category == 'clearance_incl' and academic_session: 153 elif self.context.p_category in ( 154 'clearance_incl', 'clearance_medical_incl') and academic_session: 154 155 matric_gown_fee = academic_session.matric_gown_fee - dynamic_gateway_amt( 155 156 academic_session.matric_gown_fee) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r13406 r13410 132 132 elif category == 'concessional': 133 133 amount = academic_session.concession_fee 134 elif category == 'medical':135 amount = academic_session.medical_fee136 134 elif category.startswith('clearance'): 137 135 if student.faccode == 'FP': … … 145 143 p_item = student['studycourse'].certificate.code 146 144 # Add Matric Gown Fee and Lapel Fee 147 if category == 'clearance_incl':145 if category.endswith('_incl'): 148 146 if amount is None: 149 147 # Otherwise we can't add somtehing 150 148 amount = 0.0 151 149 amount += academic_session.matric_gown_fee + \ 152 academic_session.lapel_fee - \ 153 2*(dynamic_gateway_amt(amount)) 150 academic_session.lapel_fee - \ 151 dynamic_gateway_amt(academic_session.matric_gown_fee) -\ 152 dynamic_gateway_amt(academic_session.lapel_fee) 154 153 elif category == 'late_registration': 155 154 amount = academic_session.late_registration_fee … … 187 186 amount = 0.0 188 187 amount += academic_session.welfare_fee + \ 189 academic_session.union_fee - \ 190 2*(dynamic_gateway_amt(amount)) 188 academic_session.union_fee - \ 189 dynamic_gateway_amt(academic_session.welfare_fee) -\ 190 dynamic_gateway_amt(academic_session.union_fee) 191 191 if amount in (0.0, None): 192 192 return _(u'Amount could not be determined.'), None -
main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py
r13403 r13410 31 31 'schoolfee_1': 'School Fee 1st instalment', 32 32 'schoolfee_2': 'School Fee 2nd instalment', 33 'schoolfee_incl': 'School Fee plus',33 'schoolfee_incl': 'School Fee Plus', 34 34 'clearance': 'Acceptance Fee', 35 'clearance_incl': 'Acceptance Fee plus', 35 'clearance_incl': 'Acceptance Fee Plus', 36 'clearance_medical': 'Medical Student Acceptance Fee', 37 'clearance_medical_incl': 'Medical Student Acceptance Fee Plus', 38 'medical': 'Medical Student Acceptance Fee', # deprecated 36 39 'hostel_maintenance': 'Hostel Maintenance Fee', 37 40 'application': 'Application Fee', … … 46 49 'matric_gown': 'Matriculation Gown Fee', 47 50 'concessional': 'Concessional Fee', 48 'medical': 'Medical Student Acceptance Fee',49 51 } 50 52 … … 53 55 #'schoolfee_1': 'School Fee 1st instalment', 54 56 #'schoolfee_2': 'School Fee 2nd instalment', 55 'schoolfee_incl': 'School Fee plus Students\' Union and Welfare Assurance fees',57 'schoolfee_incl': 'School Fee + Students\' Union Dues + Welfare Assurance Fee', 56 58 'clearance': 'Acceptance Fee without additional fees', 57 'clearance_incl': 'Acceptance Fee plus Matric Gown and Lapel/File fees', 59 'clearance_incl': 'Acceptance Fee + Matric Gown Fee + Lapel/File Fee', 60 'clearance_medical': 'Medical Student Acceptance Fee', 61 'clearance_medical_incl': 'Medical Student Acceptance Fee + Matric Gown Fee + Lapel/File Fee', 58 62 'hostel_maintenance': 'Hostel Maintenance Fee', 59 63 'application': 'Application Fee', … … 68 72 'matric_gown': 'Matriculation Gown Fee', 69 73 'concessional': 'Concessional Fee', 70 'medical': 'Medical Student Acceptance Fee',71 74 } 72 75
Note: See TracChangeset for help on using the changeset viewer.