Index: main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/utils.py
===================================================================
--- main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/utils.py	(revision 15053)
+++ main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/utils.py	(revision 15056)
@@ -87,4 +87,17 @@
         return 'N/A'
 
+    def _requiredPaymentsMade(self, student, session):
+        if len(student['payments']):
+            num = 0
+            for ticket in student['payments'].values():
+                if ticket.p_state == 'paid' and \
+                    ticket.p_category in (
+                        'ict_entre', 'logbook_combo', 'siwess_combo') and \
+                    ticket.p_session == session:
+                    num += 1
+            if num == 3:
+                return True
+        return False
+
     def setPaymentDetails(self, category, student,
             previous_session, previous_level):
@@ -116,5 +129,12 @@
             return _(u'Session configuration object is not available.'), None
         # Determine fee.
+        # The following three fees are part of the school fee which must be
+        # paid before tuition fee.
+        if category in ('ict_entre', 'logbook_combo', 'siwess_combo') and \
+            student.state == RETURNING:
+            p_session, p_level = self.getReturningData(student)
         if category == 'schoolfee':
+            if not self._requiredPaymentsMade(student, p_session):
+                return _('Pay SIWES, Logbook and ICT fees first.'), None
             try:
                 certificate = student['studycourse'].certificate
