Index: /WAeUP_SRP/trunk/skins/waeup_epayment/getSchoolFeePrefix.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_epayment/getSchoolFeePrefix.py	(revision 5060)
+++ /WAeUP_SRP/trunk/skins/waeup_epayment/getSchoolFeePrefix.py	(revision 5061)
@@ -8,5 +8,5 @@
 ##title=
 ##
-# $Id:getMaintenancePrefix.py 486 2006-09-06 10:09:39Z joachim $
+# $Id:getSchoolFeePrefix.py 486 2006-09-06 10:09:39Z joachim $
 """
 return the Prefix for Schoolfee
@@ -27,17 +27,80 @@
 student_record = context.students_catalog(id=student_id)[0]
 
-# still to be configured properly (see ticket 651)
-#if student_record.lga == 'foreigner':
-#    if student_record.faculty in ('ART','LAW','SSC','MGS'):
-#         prefix == 'FRNART'
-#    elif student_record.faculty in ('MED'):
-#         prefix == 'FRNSCI'
-#    else: 
-#        logger.info('%s, foreign student faculty %s not found' % (student_id,student_record.faculty))
-#        prefix = "--"       
-#        return prefix  
-#    if student_record.review_state == 'cleared_and_validated':
-#        prefix = prefix + 'NEW'   
-#    return prefix     
+FRNART =    (
+            "BADTSW",
+            "BAEDEDO",
+            "BAEDEL",
+            "BAEDENG",
+            "BAEDFAA",
+            "BAEDFRC",
+            "BAEDHIS",
+            "BBEDSW",
+            "BECOSW",
+            "BEDADT",
+            "BEMGTSW",
+            "BENLSW",
+            "BGEOSW",
+            "BHISSW",
+            "BPOLSW",
+            "BSCEDAC",
+            "BSCEDAP",
+            "BSCEDB",
+            "BSCEDBE",
+            "BSCEDE",
+            "BSCEDECO",
+            "BSCEDES",
+            "BSCEDG",
+            "BSCEDGEO",
+            "BSCEDGR",
+            "BSCEDPOL",
+            "BSCEDPS",
+            "BSCEDSE",
+            "BSCEDSOC",
+            "BSCEDSS",
+            "BSSTSW",
+            "DAED", 
+            )
+
+FRNSCI = (
+            "BAGRSW",
+            "BBIOSW",
+            "BCHESW",
+            "BCSCSW",
+            "BHECSW",
+            "BHEDSW",
+            "BISCSW",
+            "BITESW",
+            "BSCEDAG",
+            "BSCEDBC",
+            "BSCEDC",
+            "BSCEDCO",
+            "BSCEDEE",
+            "BSCEDEM",
+            "BSCEDEV",
+            "BSCEDHE",
+            "BSCEDHK",
+            "BSCEDHM",
+            "BSCEDIS",
+            "BSCEDM",
+            "BSCEDME",
+            "BSCEDP",
+            "BSCEDPE",
+            "BSCEDTE",
+            "BSCEDWB",
+            "DHT",
+            )
+
+if student_record.lga == 'foreigner':
+    if student_record.course in FRNART:
+         prefix == 'FRNART'
+    elif student_record.course in FRNSCI:
+         prefix == 'FRNSCI'
+    else: 
+        logger.info('%s, foreign student course %s not categorized' % (student_id,student_record.faculty))
+        prefix = "--"       
+        return prefix  
+    if student_record.review_state == 'cleared_and_validated':
+        prefix = prefix + 'NEW'   
+    return prefix     
 
 res = context.certificates_catalog(code = student_record.course)
