Changeset 15661


Ignore:
Timestamp:
11 Oct 2019, 11:31:38 (5 years ago)
Author:
Henrik Bettermann
Message:

Start configuration of school fee payments.

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  
    3434    form_fields = grok.AutoFields(ICustomSessionConfiguration)
    3535
     36class 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
     44class 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  
    7979            self.browser.contents)
    8080        self.assertTrue(
    81             'item_name="School Fee" item_amt="3985000" bank_id="00" acct_num="00000000"' in
     81            'item_name="Tuition Plus Total" item_amt="3985000" bank_id="00" acct_num="00000000"' in
    8282            self.browser.contents)
    8383
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/locales/en/LC_MESSAGES/waeup.kofa.po

    r15567 r15661  
    5959msgid "Sex"
    6060msgstr "Gender"
     61
     62#: school_fee_1
     63msgid "Initial School Fee"
     64msgstr "Tuition, Accommodation, Adm. Charges (1)"
     65
     66#: school_fee_2
     67msgid "Returning School Fee"
     68msgstr "Tuition, Accommodation, Adm. Charges (2)"
     69
     70#: school_fee_3
     71msgid "Foreigner Initial School Fee"
     72msgstr "Tuition, Accommodation, Adm. Charges (not used)"
     73
     74#: school_fee_4
     75msgid "Foreigner Returning School Fee"
     76msgstr "Tuition, Accommodation, Adm. Charges (not used)"
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py

    r15660 r15661  
    8080            return _(u'Session configuration object is not available.'), None
    8181        # Determine fee.
    82         if category == 'schoolfee':
     82        if category in ('schoolfee', 'schoolfee40',
     83                        'schoolfee50', 'schoolfee60'):
    8384            try:
    8485                certificate = student['studycourse'].certificate
     
    126127                return _('Study course data are incomplete.'), None
    127128            amount = academic_session.clearance_fee
    128         elif category == 'bed_allocation':
    129             p_item = self.getAccommodationDetails(student)['bt']
    130             amount = academic_session.booking_fee
    131         elif category == 'hostel_maintenance':
    132             amount = 0.0
    133             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_coordinates
    137                 if bedticket.bed.__parent__.maint_fee > 0:
    138                     amount = bedticket.bed.__parent__.maint_fee
    139                 else:
    140                     # fallback
    141                     amount = academic_session.maint_fee
    142             else:
    143                 return _(u'No bed allocated.'), None
     129        #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
    144145        else:
    145146            fee_name = category + '_fee'
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/utils/utils.py

    r15645 r15661  
    2727
    2828    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',
    3033        'clearance': 'Acceptance Fee',
    31         'bed_allocation': 'Bed Allocation Fee',
    32         'hostel_maintenance': 'Accommodation',
     34        #'bed_allocation': 'Bed Allocation Fee',
     35        #'hostel_maintenance': 'Accommodation',
    3336        #'transfer': 'Transfer Fee',
    3437        #'gown': 'Gown Hire Fee',
     
    5255
    5356    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)',
    5661        #'bed_allocation': 'Bed Allocation Fee',
    57         'hostel_maintenance': 'Accommodation',
     62        #'hostel_maintenance': 'Accommodation',
    5863        #'transfer': 'Transfer Fee',
    5964        #'gown': 'Gown Hire Fee',
     
    7681        }
    7782
    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.