Changeset 14527


Ignore:
Timestamp:
9 Feb 2017, 12:21:12 (8 years ago)
Author:
Henrik Bettermann
Message:

IJMBE students shall see only two payment categories.

File:
1 edited

Legend:

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

    r14453 r14527  
    206206        'p_category')
    207207
    208     alumni_payment_cats =  {
     208    ALUMNI_PAYMENT_CATS =  {
    209209        'transcript_local': 'Transcript Fee Local',
    210210        'transcript_inter': 'Transcript Fee International',
    211211        }
    212212
     213    IJMBE_PAYMENT_CATS =  {
     214        'clearance': 'Acceptance Fee',
     215        'schoolfee': 'School Fee',
     216        }
     217
    213218    @property
    214219    def selectable_categories(self):
    215220        if 'alumni' in self.application_url():
    216             return self.alumni_payment_cats.items()
     221            return self.ALUMNI_PAYMENT_CATS.items()
     222        if self.context.student.current_mode == 'ijmbe':
     223            return self.IJMBE_PAYMENT_CATS.items()
    217224        categories = getUtility(IKofaUtils).SELECTABLE_PAYMENT_CATEGORIES
    218225        return sorted(categories.items())
Note: See TracChangeset for help on using the changeset viewer.