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

Adjust transcript payments to alumni portal.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students
Files:
3 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.
  • main/waeup.aaue/trunk/src/waeup/aaue/students/payments.py

    r13625 r14296  
    8181                return error
    8282            self.ac = pin
    83         elif self.p_category == 'transcript':
     83        elif self.p_category.startswith('transcript'):
    8484            # Create TSC access code
    8585            pin, error = create_accesscode(
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r14248 r14296  
    183183        if category == 'transfer':
    184184            amount = academic_session.transfer_fee
    185         elif category == 'transcript':
    186             amount = academic_session.transcript_fee
     185        elif category == 'transcript_local':
     186            amount = academic_session.transcript_fee_local
     187        elif category == 'transcript_inter':
     188            amount = academic_session.transcript_fee_inter
    187189        elif category == 'bed_allocation':
    188190            amount = academic_session.booking_fee
Note: See TracChangeset for help on using the changeset viewer.