Changeset 3120
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/reserve_accommodation.py
r3119 r3120 46 46 validate = REQUEST.has_key("cpsdocument_edit_button") 47 47 if info['maintenance_paid']: 48 if not info['acco_doc'].acco_maint_fee: 49 d_update = {} 50 hall_info = context.waeup_tool.getHallInfo(info['acco_doc'].bed) 51 d_update['acco_maint_fee'] = hall_info.get('maintenance_fee') 52 wftool.doActionFor(info['acco'],'reserve_bed') 53 info['acco_doc'].edit(mapping=d_update) 54 wftool.doActionFor(info['acco'],'pay_maintenance_fee') 48 55 return context.REQUEST.RESPONSE.redirect("%s/accommodation_view" % info['acco'].absolute_url()) 49 56 # elif info['online_payment']: -
WAeUP_SRP/fceokene/profiles/default/workflows/waeup_student_accommodation_wf/definition.xml
r1482 r3120 23 23 <state state_id="maintenance_fee_paid" title=""> 24 24 <exit-transition transition_id="remove"/> 25 <exit-transition transition_id="reserve_bed"/> 25 26 </state> 26 27 <state state_id="removed" title=""> … … 29 30 new_state="maintenance_fee_paid" trigger="USER" 30 31 before_script="" after_script=""> 31 32 32 33 <guard> 33 34 </guard> … … 36 37 new_state="removed" trigger="USER" 37 38 before_script="" after_script=""> 38 39 39 40 <guard> 40 41 </guard> … … 43 44 new_state="bed_reserved" trigger="USER" 44 45 before_script="" after_script=""> 45 46 46 47 <guard> 47 48 </guard>
Note: See TracChangeset for help on using the changeset viewer.