Changeset 15661
- Timestamp:
- 11 Oct 2019, 11:31:38 (5 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/browser/pages.py
r15563 r15661 34 34 form_fields = grok.AutoFields(ICustomSessionConfiguration) 35 35 36 class CustomCertificatePage(CertificatePage): 37 """Index page for certificates. 38 """ 39 form_fields = grok.AutoFields(ICertificate).omit( 40 'ratio', 'school_fee_3', 'school_fee_4', 41 'custom_textline_1', 'custom_textline_2', 42 'custom_float_1','custom_float_2') 43 44 class CustomCertificateManageFormPage(CertificateManageFormPage): 45 """Manage the properties of a `Certificate` instance. 46 """ 47 form_fields = grok.AutoFields(ICertificate).omit( 48 'ratio', 'school_fee_3', 'school_fee_4', 49 'custom_textline_1', 'custom_textline_2', 50 'custom_float_1','custom_float_2', 'code') 51 -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch/tests.py
r15656 r15661 79 79 self.browser.contents) 80 80 self.assertTrue( 81 'item_name=" School Fee" item_amt="3985000" bank_id="00" acct_num="00000000"' in81 'item_name="Tuition Plus Total" item_amt="3985000" bank_id="00" acct_num="00000000"' in 82 82 self.browser.contents) 83 83 -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/locales/en/LC_MESSAGES/waeup.kofa.po
r15567 r15661 59 59 msgid "Sex" 60 60 msgstr "Gender" 61 62 #: school_fee_1 63 msgid "Initial School Fee" 64 msgstr "Tuition, Accommodation, Adm. Charges (1)" 65 66 #: school_fee_2 67 msgid "Returning School Fee" 68 msgstr "Tuition, Accommodation, Adm. Charges (2)" 69 70 #: school_fee_3 71 msgid "Foreigner Initial School Fee" 72 msgstr "Tuition, Accommodation, Adm. Charges (not used)" 73 74 #: school_fee_4 75 msgid "Foreigner Returning School Fee" 76 msgstr "Tuition, Accommodation, Adm. Charges (not used)" -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py
r15660 r15661 80 80 return _(u'Session configuration object is not available.'), None 81 81 # Determine fee. 82 if category == 'schoolfee': 82 if category in ('schoolfee', 'schoolfee40', 83 'schoolfee50', 'schoolfee60'): 83 84 try: 84 85 certificate = student['studycourse'].certificate … … 126 127 return _('Study course data are incomplete.'), None 127 128 amount = academic_session.clearance_fee 128 elif category == 'bed_allocation':129 p_item = self.getAccommodationDetails(student)['bt']130 amount = academic_session.booking_fee131 elif category == 'hostel_maintenance':132 amount = 0.0133 bedticket = student['accommodation'].get(134 str(student.current_session), None)135 if bedticket is not None and bedticket.bed is not None:136 p_item = bedticket.bed_coordinates137 if bedticket.bed.__parent__.maint_fee > 0:138 amount = bedticket.bed.__parent__.maint_fee139 else:140 # fallback141 amount = academic_session.maint_fee142 else:143 return _(u'No bed allocated.'), None129 #elif category == 'bed_allocation': 130 # p_item = self.getAccommodationDetails(student)['bt'] 131 # amount = academic_session.booking_fee 132 #elif category == 'hostel_maintenance': 133 # amount = 0.0 134 # bedticket = student['accommodation'].get( 135 # str(student.current_session), None) 136 # if bedticket is not None and bedticket.bed is not None: 137 # p_item = bedticket.bed_coordinates 138 # if bedticket.bed.__parent__.maint_fee > 0: 139 # amount = bedticket.bed.__parent__.maint_fee 140 # else: 141 # # fallback 142 # amount = academic_session.maint_fee 143 # else: 144 # return _(u'No bed allocated.'), None 144 145 else: 145 146 fee_name = category + '_fee' -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/utils/utils.py
r15645 r15661 27 27 28 28 PAYMENT_CATEGORIES = { 29 'schoolfee': 'School Fee', 29 'schoolfee40': 'Tuition Plus 40', 30 'schoolfee50': 'Tuition Plus 50', 31 'schoolfee60': 'Tuition Plus 60', 32 'schoolfee': 'Tuition Plus Total', 30 33 'clearance': 'Acceptance Fee', 31 'bed_allocation': 'Bed Allocation Fee',32 'hostel_maintenance': 'Accommodation',34 #'bed_allocation': 'Bed Allocation Fee', 35 #'hostel_maintenance': 'Accommodation', 33 36 #'transfer': 'Transfer Fee', 34 37 #'gown': 'Gown Hire Fee', … … 52 55 53 56 SELECTABLE_PAYMENT_CATEGORIES = { 54 'schoolfee': 'School Fee', 55 'clearance': 'Acceptance Fee', 57 'schoolfee40': 'Tuition, Accommodation, Adm. Charges (40% - 1st instalment)', 58 'schoolfee50': 'Tuition, Accommodation, Adm. Charges (50% - 1st instalment)', 59 'schoolfee60': 'Tuition, Accommodation, Adm. Charges (60% - 1st instalment)', 60 'schoolfee': 'Tuition, Accommodation, Adm. Charges (total amount)', 56 61 #'bed_allocation': 'Bed Allocation Fee', 57 'hostel_maintenance': 'Accommodation',62 #'hostel_maintenance': 'Accommodation', 58 63 #'transfer': 'Transfer Fee', 59 64 #'gown': 'Gown Hire Fee', … … 76 81 } 77 82 78 PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES) 83 PREVIOUS_PAYMENT_CATEGORIES = { 84 'schoolfee': 'Tuition, Accommodation, Adm. Charges (total amount)', 85 'application': 'Application Fee', 86 'late_registration': 'Late Registration Fee', 87 'science': 'Science Bench Fee', 88 'clinical': 'Clinical Fee (Medical Students)', 89 'develop': 'Development Fee', 90 'municipal': 'Municipal Fee', 91 'alumni': 'Alumni Fee', 92 'conv': 'Convocation Fee', 93 'matric': 'Matriculation Fee', 94 'waecneco': 'WAEC & NECO Verification', 95 'jambver': 'JAMB Verification', 96 'book': 'Book Deposit', 97 'parentsconsult': 'Parents Consultative Forum (PCF) Fee', 98 'pharmlab': 'Pharmacy Lab Support Fee', 99 }
Note: See TracChangeset for help on using the changeset viewer.