Changeset 15183 for main


Ignore:
Timestamp:
2 Oct 2018, 20:45:57 (6 years ago)
Author:
Henrik Bettermann
Message:

Add medical fee payment category.

Location:
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interfaces.py

    r15123 r15183  
    117117        )
    118118
     119    medical_fee = schema.Float(
     120        title = _(u'Medical Fee'),
     121        default = 0.0,
     122        required = False,
     123        )
     124
    119125    def getSessionString():
    120126        """Returns the session string from the vocabulary.
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/utils.py

    r15176 r15183  
    213213            else:
    214214                return _(u'No bed allocated.'), None
    215         elif category == 'logbook_combo':
    216             amount = academic_session.logbook_combo_fee
    217         elif category == 'ict_entre':
    218             amount = academic_session.ict_entre_fee
    219         elif category == 'siwess_combo':
    220             amount = academic_session.siwess_combo_fee
    221         elif category == 'transcript':
    222             amount = academic_session.transcript_fee
    223         elif category == 'certificate':
    224             amount = academic_session.certificate_fee
    225         elif category == 'certificate_confirm':
    226             amount = academic_session.certificate_confirm_fee
    227         elif category == 'final_clearance':
    228             amount = academic_session.final_clearance_fee
    229         elif category == 'late_registration':
    230             amount = academic_session.late_registration_fee
    231         elif category == 'union':
    232             amount = academic_session.union_fee
     215        else:
     216            fee_name = category + '_fee'
     217            amount = getattr(academic_session, fee_name, 0.0)
     218
     219
    233220        if amount in (0.0, None):
    234221            return _('Amount could not be determined.'), None
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/utils/utils.py

    r15123 r15183  
    5757        'union': 'Student Union Dues',
    5858        'admission_checking': 'Admission Checking Fee',
     59        'medical': 'Medical Fee',
    5960        }
    6061
     
    8081        'final_clearance': 'Final Clearance Fee',
    8182        'union': 'Student Union Dues',
     83        'medical': 'Medical Fee',
    8284        }
    8385
Note: See TracChangeset for help on using the changeset viewer.