Changeset 15442 for main


Ignore:
Timestamp:
29 May 2019, 16:17:32 (6 years ago)
Author:
Henrik Bettermann
Message:

Customize selectable_payment_categories.

File:
1 edited

Legend:

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

    r15441 r15442  
    8686
    8787    def selectable_payment_categories(self, student):
    88         return self.SELECTABLE_PAYMENT_CATEGORIES
     88        spc = self.SELECTABLE_PAYMENT_CATEGORIES
     89        if not student.is_fresh:
     90            del spc['application']
     91            del spc['admission_checking']
     92            del spc['clearance']
     93        return spc
    8994
    9095    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
Note: See TracChangeset for help on using the changeset viewer.