Ignore:
Timestamp:
28 Nov 2016, 12:10:49 (8 years ago)
Author:
Henrik Bettermann
Message:

Adjust transcript payments to alumni portal.

File:
1 edited

Legend:

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

    r14295 r14296  
    201201        'p_category')
    202202
     203    alumni_payment_cats =  {
     204        'transcript_local': 'Transcript Fee Local',
     205        'transcript_inter': 'Transcript Fee International',
     206        }
     207
     208    @property
     209    def selectable_categories(self):
     210        if 'alumni' in self.application_url():
     211            return self.alumni_payment_cats.items()
     212        categories = getUtility(IKofaUtils).SELECTABLE_PAYMENT_CATEGORIES
     213        return sorted(categories.items())
     214
    203215class CustomPaymentsManageFormPage(PaymentsManageFormPage):
    204216    """ Page to manage the student payments.
Note: See TracChangeset for help on using the changeset viewer.