Ignore:
Timestamp:
13 Nov 2015, 13:56:02 (9 years ago)
Author:
Henrik Bettermann
Message:

Customize _isPaymentDisabled.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r13418 r13454  
    9292        new_session = student['studycourse'].current_session + 1
    9393        return new_session, new_level
     94
     95    def _isPaymentDisabled(self, p_session, category, student):
     96        academic_session = self._getSessionConfiguration(p_session)
     97        if category == 'schoolfee' and \
     98            'sf_all' in academic_session.payment_disabled:
     99            return True
     100        if category == 'hostel_maintenance' and \
     101            'maint_all' in academic_session.payment_disabled:
     102            return True
     103        return False
    94104
    95105    def setPaymentDetails(self, category, student,
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r13453 r13454  
    5454        'clearance': 'Acceptance Fee without additional fees',
    5555        'clearance_incl': 'Acceptance Fee + Matric Gown Fee + Lapel/File Fee',
    56         #'hostel_maintenance': 'Hostel Accommodation Fee',
     56        'hostel_maintenance': 'Hostel Accommodation Fee',
    5757        'application': 'Application Fee',
    5858        #'bed_allocation': 'Bed Allocation Fee',
     
    130130        'FRNS': 'Faculty requirements not satisfied',
    131131        }
     132
     133    DISABLE_PAYMENT_GROUP_DICT = {
     134        'sf_all': 'School Fee - All Students',
     135        'maint_all': 'Accommodation Fee - All Students',
     136        }
Note: See TracChangeset for help on using the changeset viewer.