Changeset 14296


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
Files:
5 edited

Legend:

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

    r14260 r14296  
    7272        )
    7373
    74     transcript_fee = schema.Float(
    75         title = _(u'Transcript Fee'),
     74    transcript_fee_inter = schema.Float(
     75        title = _(u'International Transcript Fee'),
     76        default = 0.0,
     77        required = True,
     78        )
     79
     80    transcript_fee_local = schema.Float(
     81        title = _(u'Local Transcript Fee'),
    7682        default = 0.0,
    7783        required = True,
  • 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
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r14258 r14296  
    4040        'bed_allocation': 'Bed Allocation Fee',
    4141        'transfer': 'Transfer Fee',
    42         'transcript': 'Transcript Fee',
     42        'transcript_local': 'Local Transcript Fee',
     43        'transcript_inter': 'International Transcript Fee',
    4344        'late_registration': 'Late Course Registration Fee',
    4445        'welfare': 'Student Welfare Assurance Fee',
     
    6970        #'bed_allocation': 'Bed Allocation Fee',
    7071        #'transfer': 'Transfer Fee',
    71         'transcript': 'Transcript Fee',
     72        'transcript_local': 'Local Transcript Fee',
     73        'transcript_inter': 'International Transcript Fee',
    7274        'late_registration': 'Late Course Registration Fee',
    7375        #'welfare': 'Student Welfare Assurance Fee',
Note: See TracChangeset for help on using the changeset viewer.