Index: /main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
===================================================================
--- /main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py	(revision 17122)
+++ /main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py	(revision 17123)
@@ -37,4 +37,12 @@
     # refix
     STUDENT_ID_PREFIX = u'D'
+
+    def _clearancePaymentMade(self, student):
+        if len(student['payments']):
+            for ticket in student['payments'].values():
+                if ticket.p_state == 'paid' and \
+                    ticket.p_category == 'clearance':
+                    return True
+        return False
 
     def setPaymentDetails(self, category, student,
@@ -82,4 +90,7 @@
                     amount = getattr(certificate, 'school_fee_2', 0.0)
             else:
+                if student.is_jupeb:
+                    if not self._clearancePaymentMade(student):
+                        return _(u'Acceptance fee must be paid first.'), None
                 if student.state == CLEARED:
                     amount = getattr(certificate, 'school_fee_1', 0.0)
Index: /main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py
===================================================================
--- /main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py	(revision 17122)
+++ /main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py	(revision 17123)
@@ -66,4 +66,5 @@
     APP_CATS_DICT = {
         'basic': 'UAS, PUTME, PUDE, PCE, PRENCE',
+        'de': 'Direct Entry Programmes',
         'no': 'No Application',
         'pre': 'Pre-Degree Studies',
@@ -71,5 +72,4 @@
         'dp_ft': 'Full-Time Diploma Programmes',
         'dp_pt': 'Part-Time Diploma Programmes',
-        'de': 'Direct Entry Programmes',
         }
 
