Ignore:
Timestamp:
26 Jun 2020, 07:11:51 (4 years ago)
Author:
Henrik Bettermann
Message:

Configure transcript applications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py

    r16078 r16131  
    2424from waeup.kofa.applicants.workflow import (INITIALIZED,
    2525    STARTED, PAID, ADMITTED, NOT_ADMITTED, SUBMITTED, CREATED)
    26 from waeup.uniben.applicants.interfaces import REGISTRATION_CATS
     26from waeup.uniben.applicants.interfaces import REGISTRATION_CATS, DESTINATION_COST
    2727from waeup.uniben.interfaces import MessageFactory as _
    2828
     
    6060                 '(2nd supplementary advert)', 'ASE'],
    6161        'spft': ['Special Full-Time Programmes', 'SP'],
    62         'trans': ['Transcript Application', 'TR'],
     62        'transfull': ['Transcript Application (without student record)', 'TRF'],
     63        'transshort': ['Transcript Application (with student record)', 'TRS'],
    6364        }
    6465
     
    122123            for cat in applicant.registration_cats:
    123124                payment.amount_auth += REGISTRATION_CATS[cat][1]
     125        elif applicant.container_code.startswith('trans'):
     126            cost = DESTINATION_COST[applicant.charge][1]
     127            payment.amount_auth = applicant.no_copies * cost
     128            payment.p_category = 'transcript'
    124129        else:
    125130            payment.p_category = 'application'
Note: See TracChangeset for help on using the changeset viewer.