Index: /main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/browser.py
===================================================================
--- /main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/browser.py	(revision 16007)
+++ /main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/browser.py	(revision 16008)
@@ -93,5 +93,5 @@
             provider_amt = 0.0
             self.pay_item_id = '8304'
-        if self.context.p_item == 'Balance':
+        if self.context.p_item == 'Balance' or self.context.p_category == 'third_semester':
             provider_amt = 0.0
         xmldict['institution_amt'] = 100 * (
Index: /main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
===================================================================
--- /main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py	(revision 16007)
+++ /main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py	(revision 16008)
@@ -289,4 +289,14 @@
 
         error, payment = utils.setPaymentDetails('third_semester',self.student)
+        self.assertEqual(error, u'Make NCE 3 school fee payment first.')
+        payment = createObject('waeup.StudentOnlinePayment')
+        payment.p_category = u'schoolfee'
+        payment.p_session = self.student.current_session
+        payment.p_item = u'My Certificate'
+        payment.p_id = u'anyid'
+        self.student['payments']['anykey'] = payment
+        payment.p_state = 'paid'
+        payment.p_level = 300
+        error, payment = utils.setPaymentDetails('third_semester',self.student)
         self.assertEqual(payment.p_level, 100)
         self.assertEqual(payment.p_session, 2004)
Index: /main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
===================================================================
--- /main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py	(revision 16007)
+++ /main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py	(revision 16008)
@@ -71,4 +71,13 @@
             new_session = student['studycourse'].current_session + 1
         return new_session, new_level
+
+    def _nce3PaymentMade(self, student):
+        if len(student['payments']):
+            for ticket in student['payments'].values():
+                if ticket.p_state == 'paid' and \
+                    ticket.p_level in (300, 310, 320) and \
+                    ticket.p_category == 'schoolfee':
+                    return True
+        return False
 
     def setPaymentDetails(self, category, student,
@@ -118,4 +127,6 @@
                 return _(u'Acceptance Fee payments not allowed.'), None
         elif category == 'third_semester' and student.current_mode == 'nce_ft':
+            if not self._nce3PaymentMade(student):
+                return _(u'Make NCE 3 school fee payment first.'), None
             if student.depcode in ARTS:
                 amount = 7688
@@ -126,8 +137,6 @@
             if not p_item:
                 return _('Study course data are incomplete.'), None
-
             if student.state not in (CLEARED, RETURNING):
                 return _('Wrong state.'), None
-
             # PDE repeater
             if student.current_verdict == 'OPDE':
