Index: main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
===================================================================
--- main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py	(revision 18272)
+++ main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py	(revision 18287)
@@ -90,4 +90,17 @@
                 'sf_ugft' in academic_session.payment_disabled:
                 return True
+        return False
+
+    def samePaymentMade(self, student, category, p_item, p_session):
+        if category.startswith('plagtest'):
+            return False
+        for key in student['payments'].keys():
+            ticket = student['payments'][key]
+            if ticket.p_state == 'paid' and\
+               ticket.p_category == category and \
+               ticket.p_item != 'Balance' and \
+               ticket.p_item == p_item and \
+               ticket.p_session == p_session:
+                  return True
         return False
 
