Changeset 2836
- Timestamp:
- 1 Dec 2007, 10:41:15 (17 years ago)
- Location:
- WAeUP_SRP/fceokene
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/profiles/default/layouts/payment.xml
r2681 r2836 9 9 <property name="validate_values_expr"></property> 10 10 <widget name="amount" meta_type="String Widget"> 11 <property name="title"> AmountAuthorized</property>11 <property name="title">Fee Authorized</property> 12 12 <property name="fields"> 13 13 <element value="amount"/> 14 14 </property> 15 <property name="label"> AmountAuthorized</property>16 <property name="label_edit"> AmountAuthorized</property>15 <property name="label">Fee Authorized</property> 16 <property name="label_edit">Fee Authorized</property> 17 17 <property name="readonly_layout_modes"> 18 18 <element value="edit"/> … … 123 123 <property name="label_edit">Payment Description</property> 124 124 <property name="display_width">40</property> 125 <property name="size_max">40</property> 125 <property name="size_max">40</property> 126 126 <property name="readonly_layout_modes"/> 127 127 <property name="hidden_layout_modes"/> -
WAeUP_SRP/fceokene/waeup_custom/getSchoolFee.py
r2646 r2836 19 19 20 20 d = {} 21 if str(brain.level) == '100' :21 if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': 22 22 if brain.department in ARTS: 23 23 d['all'] = 11520 24 24 else: 25 25 d['all'] = 11995 26 elif str(brain.level) == ' 200':26 elif str(brain.level) == '100' and brain.review_state == 'returning': 27 27 if brain.department in ARTS: 28 28 d['all'] = 10570 29 29 else: 30 30 d['all'] = 11045 31 elif str(brain.level) == '300':31 elif str(brain.level) in ('200','300'): 32 32 if brain.department in ARTS: 33 33 d['all'] = 10570 -
WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py
r2833 r2836 45 45 fulltime = sbrain.mode.endswith('_ft') 46 46 47 # begin customization48 49 47 if not fee_dict: 50 48 return context.interswitch_form(info=info) 51 amount = info['amount'] = fee_dict['all']52 info['pay_ship_to'] = "Federal College of Education Okene"53 54 # end customization55 56 49 57 50 info['site_id'] = '83' … … 66 59 info['student_id'] = student_id 67 60 info['student_name'] = sbrain.name 68 info['type'] = 'ONL' 61 info['type'] = 'ONL' 69 62 info['status'] = 'started' 70 63 info['target'] = sbrain.course … … 73 66 now = DateTime.DateTime() 74 67 info['date'] = now 68 info['pay_ship_to'] = "Federal College of Education Okene" 75 69 timestamp = "%d" % int(now.timeTime()*1000) 76 70 info['order_id'] = "%s%s" % (student_id[1:],timestamp) 77 71 p_id = "p%s" % timestamp 78 72 79 interswitch_amount = 15000 80 info['surcharge'] = interswitch_amount/100 73 74 info['surcharge'] = interswitch_amount = '150' 75 info['amount'] = amount = fee_dict['all'] 76 total_amount = 100*int(amount) + 100*int(interswitch_amount) 77 81 78 82 79 if student_id is None: … … 110 107 d.update(info) 111 108 payment.getContent().edit(mapping=d) 109 110 112 111 info['callback_url'] = "%s/payments/%s/interswitch_cb?echo=%s" % (student.absolute_url(), 113 112 p_id, … … 127 126 for arg,field in payment_fields: 128 127 args[arg] = info[field] 129 itotal = int(amount)*100130 total_amount = itotal + interswitch_amount131 128 132 129 args['Amount'] = "%d" % (total_amount)
Note: See TracChangeset for help on using the changeset viewer.