Changeset 2459 for WAeUP_SRP/base/skins/waeup_epayment
- Timestamp:
- 28 Oct 2007, 13:56:01 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_epayment
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/getPaymentsFolderInfo.py
r2454 r2459 62 62 # sc_payment = True 63 63 64 if review_state == 'cleared_and_validated':65 online_payment = True66 elif review_state == 'returning':67 sc_payment = True68 69 64 info['online_payment'] = online_payment 70 65 info['sc_payment'] = sc_payment … … 74 69 info['next_session'] = next_info['next_session_id'] 75 70 info['next_session_str'] = next_info['next_session_str'] 71 72 if review_state == 'cleared_and_validated': 73 online_payment = True 74 elif review_state == 'returning' and info['next_session'] != session: 75 sc_payment = True 76 76 77 77 info['student_name'] = s_brain.name -
WAeUP_SRP/base/skins/waeup_epayment/pay_by_sc.py
r2454 r2459 112 112 113 113 study_course = getattr(student,'study_course') 114 try: 115 wftool.doActionFor(study_course,'open') 116 except: 117 pass 114 118 study_course.getContent().edit(mapping= {'current_level': next_level_id, 115 119 'current_session': next_session_id,}) 116 120 if next_transition: 117 wftool.doActionFor(student,next_transition) 118 121 wftool.doActionFor(student,next_transition) 122 119 123 #if next_session == context.getSessionId()[-2:]: 120 124 # wftool.doActionFor(student,'pay_school_fee') … … 126 130 # study_course_doc.edit(mapping= {'current_level': next_level, 127 131 # 'current_session': next_session,}) 128 132 129 133 logger.info('%s paid school fee by scratch card' % student_id) 130 134 else:
Note: See TracChangeset for help on using the changeset viewer.