Changeset 2913 for WAeUP_SRP/fceokene
- Timestamp:
- 10 Dec 2007, 21:50:04 (17 years ago)
- Location:
- WAeUP_SRP/fceokene
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/profiles/default/layouts/student_accommodation.xml
r2857 r2913 39 39 </widget> 40 40 <widget name="acco_maint_fee" meta_type="String Widget"> 41 <property name="title">Maintenance PaymentFee</property>41 <property name="title">Maintenance Fee</property> 42 42 <property name="fields"> 43 43 <element value="acco_maint_fee"/> 44 44 </property> 45 <property name="label">Maintenance PaymentFee</property>46 <property name="label_edit">Maintenance PaymentFee</property>45 <property name="label">Maintenance Fee</property> 46 <property name="label_edit">Maintenance Fee</property> 47 47 <property name="readonly_layout_modes"> 48 48 <element value="edit"/> … … 54 54 </widget> 55 55 <widget name="acco_maint_sc_pin" meta_type="Scratchcard Pin Widget"> 56 <property name="title"> Access Code</property>56 <property name="title">Hostel Maintenance PIN</property> 57 57 <property name="fields"> 58 58 <element value="acco_maint_sc_pin"/> 59 59 </property> 60 <property name="label"> Access Code</property>61 <property name="label_edit"> Access Code</property>60 <property name="label">Hostel Maintenance PIN</property> 61 <property name="label_edit">Hostel Maintenance PIN</property> 62 62 <property name="readonly_layout_modes"> 63 63 <element value="edit"/> … … 180 180 <row> 181 181 <cell name="acco_maint_sc_pin"/> 182 </row> 182 </row> 183 <row> 184 <cell name="acco_maint_pay_id"/> 185 </row> 183 186 <row> 184 187 <cell name="acco_maint_date"/> 185 188 </row> 189 186 190 </table> 187 191 </object> -
WAeUP_SRP/fceokene/profiles/default/layouts/student_accommodation_fe.xml
r2895 r2913 21 21 </property> 22 22 <property name="view_format">%d/%m/%Y</property> 23 <property name="time_setting">False</property> 23 <property name="time_setting">False</property> 24 24 <property name="hidden_readonly_layout_modes"/> 25 25 </widget> … … 38 38 <property name="prefix">HOM</property> 39 39 </widget> 40 <widget name="acco_maint_fee" meta_type="String Widget"> 41 <property name="title">Maintenance Fee</property> 42 <property name="fields"> 43 <element value="acco_maint_fee"/> 44 </property> 45 <property name="label">Maintenance Fee</property> 46 <property name="label_edit">Maintenance Fee</property> 47 <property name="readonly_layout_modes"> 48 <element value="edit"/> 49 </property> 50 <property name="hidden_layout_modes"> 51 <element value="create"/> 52 <element value="edit"/> 53 </property> 54 <property name="hidden_readonly_layout_modes"/> 55 </widget> 40 56 <widget name="acco_maint_pay_id" meta_type="String Widget"> 41 57 <property name="title">Online Payment Id</property> … … 131 147 <cell name="acco_maint_date"/> 132 148 </row> 149 <row> 150 <cell name="acco_maint_fee"/> 151 </row> 133 152 </table> 134 153 </object> -
WAeUP_SRP/fceokene/waeup_custom/getAccommodationInfo.py
r2902 r2913 52 52 review_state = info['review_state'] = s_brain.review_state 53 53 54 info['session'] = current_session = context.getSessionId()[0] 54 55 info['session'] = session = context.getSessionId() 55 56 56 57 students_object = context.portal_url.getPortalObject().campus.students … … 60 61 61 62 booking_allowed = False 62 if review_state in ('school_fee_paid','courses_registered', 'courses_validated',) and s_brain.session == current_session:63 if review_state in ('school_fee_paid','courses_registered', 'courses_validated',) and s_brain.session == session[0]: 63 64 booking_allowed = True 64 65 … … 72 73 info['acco'] = None 73 74 return info 74 acco_id = 'accommodation_' + s tr(current_session)75 acco_id = 'accommodation_' + session[0] 75 76 acco = getattr(student,acco_id,None) 76 77 info['acco'] = acco … … 91 92 bt = 'pr' 92 93 else: 93 if s_brain.end_level and s_brain.end_level: 94 certlevel = int(certificate.end_level) 95 else: 96 info["error"] = '"no level information provided","%s"' % c_brain.getId 97 return info 98 if s_brain.end_level >= s_brain.end_level: 99 bt = "fi" 94 res = context.portal_catalog(portal_type = "Certificate", id = s_brain.course) 95 if res: 96 c_brain = res[0] 97 certificate = c_brain.getObject().getContent() 98 try: 99 certlevel = int(certificate.end_level) 100 except: 101 info["error"] = '"no end_level for","%s"' % c_brain.getId 102 return info 103 try: 104 studentlevel = int(s_brain.level) 105 except: 106 info["error"] = '"no level for","%s"' % s_brain.getId 107 return info 108 if studentlevel >= certlevel: 109 bt = "fi" 100 110 d['sex'] = 'male' 101 111 if s_brain.sex: -
WAeUP_SRP/fceokene/waeup_custom/getSchoolFee.py
r2836 r2913 40 40 next_info = context.getNextInfo(brain) 41 41 next_session_str = next_info['next_session_str'] 42 d['next_session_id'] = next_info['next_session_id'] 42 43 d['description'] = "School Fee for Session %s" % next_session_str 43 44 -
WAeUP_SRP/fceokene/waeup_custom/layout_student_acco_view_slip.pt
r2857 r2913 8 8 'acco_res_date', 9 9 'acco_maint_pay_id', 10 'acco_maint_fee', 10 11 'acco_maint_date', 11 12 )" -
WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py
r2891 r2913 61 61 info['type'] = 'online' 62 62 info['status'] = 'started' 63 info['session_id'] = student_record.session63 info['session_id'] = fee_dict['next_session_id'] 64 64 info['item'] = student_record.course 65 65 info['category'] = 'schoolfee'
Note: See TracChangeset for help on using the changeset viewer.