Changeset 3329


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

enable school fee payment for 07 new students

Location:
WAeUP_SRP
Files:
2 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
  • WAeUP_SRP/uniben/waeup_custom/getPaymentsFolderInfo.py

    r3311 r3329  
    6767if review_state == 'cleared_and_validated' and session != '07':
    6868    info['payment_method'] = "online_payment"
    69 #elif review_state == 'cleared_and_validated' and session == '07':
    70 #    info['payment_method'] = "sc_payment"
     69elif review_state == 'cleared_and_validated' and session == '07':
     70    info['payment_method'] = "sc_payment"
    7171elif review_state == 'returning' and info['next_session'] != session:
    7272    info['payment_method'] = "sc_payment"
     
    9090    if payment.status == 'invalid':
    9191        row['title'] = "Invalid Payment, Naira %s, %s" % (payment.amount,
    92                                                           payment.date.strftime("%d/%m/%y %H:%M:%S"))   
    93     else:                                                         
     92                                                          payment.date.strftime("%d/%m/%y %H:%M:%S"))
     93    else:
    9494        row['title'] = "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category),
    9595                                                            vocabularies.sessions.get(payment.session_id),
Note: See TracChangeset for help on using the changeset viewer.