Ignore:
Timestamp:
17 Jan 2020, 15:23:05 (5 years ago)
Author:
Henrik Bettermann
Message:

Implement multiple resit fee payment.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/etranzact/browser.py

    r15899 r15937  
    205205            'science','clinical','develop','municipal',
    206206            'alumni','conv','matric','waecneco','jambver','pharmlab','lo_ident',
    207             'change_course','make_up','iuits','fine','combi'),
     207            'change_course','resit1','resit2','resit3','resit4','resit5',
     208            'resit6','resit7','resit8','resit9','iuits','fine','combi'),
    208209         }
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interfaces.py

    r15789 r15937  
    206206    fine_fee = schema.Float(
    207207        title = _(u'Fine'),
     208        default = 0.0,
     209        required = False,
     210        )
     211
     212    resit_fee = schema.Float(
     213        title = _(u'Make-Up Examination Course Fee'),
    208214        default = 0.0,
    209215        required = False,
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py

    r15870 r15937  
    2929    StudentBasePDFFormPage, ExportPDFCourseRegistrationSlip,
    3030    CourseTicketDisplayFormPage, StudentTriggerTransitionFormPage,
     31    StartClearancePage,
    3132    msave, emit_lock_message)
    3233from waeup.kofa.students.interfaces import (
     
    206207            sigs_in_footer=self._sigsInFooter(),
    207208            note=self.note)
     209
     210class CustomStartClearancePage(StartClearancePage):
     211    with_ac = False
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py

    r15810 r15937  
    140140                return _('Study course data are incomplete.'), None
    141141            amount = academic_session.clearance_fee
     142        elif category.startswith('resit'):
     143            amount = academic_session.resit_fee
     144            number = int(category.strip('resit'))
     145            amount *= number
    142146        #elif category == 'bed_allocation':
    143147        #    p_item = self.getAccommodationDetails(student)['bt']
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/utils/utils.py

    r15877 r15937  
    6060        'fine': 'Fine',
    6161        'combi': 'Combi Payment',
     62        'resit1': '1 Make-Up Examination Course',
     63        'resit2': '2 Make-Up Examination Courses',
     64        'resit3': '3 Make-Up Examination Courses',
     65        'resit4': '4 Make-Up Examination Courses',
     66        'resit5': '5 Make-Up Examination Courses',
     67        'resit6': '6 Make-Up Examination Course',
     68        'resit7': '7 Make-Up Examination Courses',
     69        'resit8': '8 Make-Up Examination Courses',
     70        'resit9': '9 Make-Up Examination Courses',
    6271        }
    6372
     
    91100        'lo_ident': 'Letter of Identification Fee',
    92101        'change_course': 'Change of Course Fee',
    93         'make_up': 'Make-up Fee',
     102        #'make_up': 'Make-up Fee',
    94103        'iuits': 'IUITS Fee',
    95104        'fine': 'Fine',
    96105        'combi': 'Combi Payment',
     106        'resit1': '1 Make-Up Examination Course',
     107        'resit2': '2 Make-Up Examination Courses',
     108        'resit3': '3 Make-Up Examination Courses',
     109        'resit4': '4 Make-Up Examination Courses',
     110        'resit5': '5 Make-Up Examination Courses',
     111        'resit6': '6 Make-Up Examination Course',
     112        'resit7': '7 Make-Up Examination Courses',
     113        'resit8': '8 Make-Up Examination Courses',
     114        'resit9': '9 Make-Up Examination Courses',
    97115        }
    98116
Note: See TracChangeset for help on using the changeset viewer.