Index: WAeUP_SRP/uniben/waeup_custom/getPaymentsFolderInfo.py
===================================================================
--- WAeUP_SRP/uniben/waeup_custom/getPaymentsFolderInfo.py	(revision 3240)
+++ WAeUP_SRP/uniben/waeup_custom/getPaymentsFolderInfo.py	(revision 3241)
@@ -11,11 +11,5 @@
 """
 Info for the PaymentsFolder
-try:
-    from Products.zdb import set_trace
-except:
-    def set_trace():
-        pass
 """
-
 from Products.AdvancedQuery import Eq, Between, Le,In
 
@@ -27,7 +21,10 @@
 if mtool.isAnonymousUser():
     return None
+try:
+    from Products.zdb import set_trace
+except:
+    def set_trace():
+        pass
 
-#import logging
-#logger = logging.getLogger('Skins.getPaymentsFolderInfo')
 def cmp_id(a,b):
     s1 = "%(id)s" % a
@@ -66,4 +63,6 @@
 info['reasons'] = next_info['reasons']
 
+# begin customization
+
 if review_state == 'cleared_and_validated' and session != '07':
     info['payment_method'] = "online_payment"
@@ -73,4 +72,6 @@
     info['payment_method'] = "sc_payment"
 info['prod_id'] = '61'
+
+# end customization
 
 info['student_name'] = student_record.name
@@ -92,6 +93,6 @@
                                                         payment.date.strftime("%d/%m/%y %H:%M:%S"))
     url = row['url'] = "%s/p%s" % (payments_path,payment.order_id[6:])
-    row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees or str(member) in ('admin',)
-    row['is_approvable'] = is_so and row['is_requeryable']
+    row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' or str(member) in ('admin',)
+    row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maitenance
     row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted'
     row['trans_ref'] = payment.order_id
@@ -99,7 +100,7 @@
         row['callback_url'] = "%(url)s/interswitch_cb" % row
 #        if payment.category == 'schoolfee':
-#            row['callback_url'] = "%(url)s/interswitch_cb" % row 
+#            row['callback_url'] = "%(url)s/interswitch_cb" % row
 #        elif payment.category == 'hostel_maintenance':
-#            row['callback_url'] = "%(url)s/interswitch_acco_cb" % row 
+#            row['callback_url'] = "%(url)s/interswitch_acco_cb" % row
 #        else:
         href = '%(query_url)s' % info
@@ -115,10 +116,6 @@
     payments.append(row)
 
-
-
 payments.sort(cmp_id)
 info['payments'] = payments
-
-
 return info
 
