Ignore:
Timestamp:
13 Mar 2008, 13:52:11 (17 years ago)
Author:
Henrik Bettermann
Message:

enable school fee payment for 07 new students

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/getSchoolFeePrefix.py

    r3060 r3329  
    2525
    2626student_id = context.getStudentId()
    27 sbrain = context.students_catalog(id=student_id)[0]
     27student_record = context.students_catalog(id=student_id)[0]
    2828res = context.portal_catalog(portal_type="Certificate",
    29                                      id = sbrain.course)
    30 #set_trace()
     29                                     id = student_record.course)
     30
     31
    3132if not res:
    3233    logger.info('%s, certificate %s not found' % (student_id,course))
     
    3637    if not prefix or prefix == 'none':
    3738        prefix = res[0].getPath().split('/')[-4]
     39    if student_record.review_state == 'cleared_and_validated':
     40        prefix = prefix + 'NEW'
    3841return prefix
Note: See TracChangeset for help on using the changeset viewer.