Index: main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py
===================================================================
--- main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py	(revision 14921)
+++ main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py	(revision 14938)
@@ -36,4 +36,13 @@
     # prefix
     STUDENT_ID_PREFIX = u'P'
+
+    def _dep_sug_paymentMade(self, student, session):
+        if len(student['payments']):
+            for ticket in student['payments'].values():
+                if ticket.p_state == 'paid' and \
+                    ticket.p_category == 'dep_sug' and \
+                    ticket.p_session == session:
+                    return True
+        return False
 
     def setPaymentDetails(self, category, student,
@@ -87,4 +96,9 @@
                         amount = getattr(certificate, 'school_fee_4', 0.0)
             else:
+                # Students are only allowed to pay school fee 
+                # if current session dep_sug payment has been made.
+                if not self._dep_sug_paymentMade(student,
+                    student.current_session):
+                    return _('You have to pay NADESU/SA/SUG Dues first.'), None
                 if student.state == CLEARED:
                     if local(student):
@@ -164,5 +178,7 @@
             amount = 13000.0
         elif category == 'dep_sug':
-            amount = 2900.0
+            amount = 3150.0 # includes GATEWAY_AMT
+            if student.faccode == 'SPAT':
+                amount = 1650.0 # includes GATEWAY_AMT
         else:
             fee_name = category + '_fee'
