Changeset 13566 for main


Ignore:
Timestamp:
5 Jan 2016, 08:18:50 (9 years ago)
Author:
Henrik Bettermann
Message:

Extend DISABLE_PAYMENT_GROUP_DICT.

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

Legend:

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

    r13522 r13566  
    135135        return False
    136136
     137    def _isPaymentDisabled(self, p_session, category, student):
     138        academic_session = self._getSessionConfiguration(p_session)
     139        if category == 'schoolfee' and \
     140            'sf_all' in academic_session.payment_disabled:
     141            return True
     142        if category == 'hostel_maintenance' and \
     143            'maint_all' in academic_session.payment_disabled:
     144            return True
     145        return False
     146
    137147    #def _hostelApplicationPaymentMade(self, student, session):
    138148    #    if len(student['payments']):
  • main/waeup.uniben/trunk/src/waeup/uniben/utils/utils.py

    r13550 r13566  
    9696        }
    9797
     98    DISABLE_PAYMENT_GROUP_DICT = {
     99        'sf_all': 'School Fee - All Students',
     100        'maint_all': 'Accommodation Fee - All Students',
     101        }
     102
    98103    SEMESTER_DICT = {
    99104        1: '1st Semester',
Note: See TracChangeset for help on using the changeset viewer.