Ignore:
Timestamp:
26 May 2012, 10:44:49 (12 years ago)
Author:
Henrik Bettermann
Message:

See r8526.

Start student_id with 'K' and not 'O' to avoid confusion.

File:
1 edited

Legend:

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

    r8444 r8527  
    1919"""
    2020
     21from time import time
    2122import sys
    2223import grok
     
    3536        'sandwich': ['Part Time Degree in Education', 'SAND'],
    3637        'pt': ['Part-Time Degree Programmes', 'PTP'],
    37         'pume': ['Post UME Screening Test', 'PUME'],
     38        'putme': ['Post UTME Screening Test', 'PUTME'],
    3839        'app': ['General Studies', 'APP'],
    3940        'cest': ['Common Entry Screening Test', 'CEST'],
     
    5657        'form.presently_inst': _(u'Presently attending a course or programme'),
    5758        }
     59
     60    def setPaymentDetails(self, container, payment):
     61        """Set the payment data of an applicant.
     62        """
     63        timestamp = "%d" % int(time()*1000)
     64        payment.p_id = "p%s" % timestamp
     65        payment.p_item = container.title
     66        payment.p_session = container.year
     67        payment.p_category = 'application'
     68        # We are using the container specific application fee
     69        # instead of the session configuration application fee.
     70        payment.amount_auth = container.application_fee
     71        return None
Note: See TracChangeset for help on using the changeset viewer.