Index: /main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/export.py
===================================================================
--- /main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/export.py	(revision 16664)
+++ /main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/export.py	(revision 16665)
@@ -72,4 +72,23 @@
             ICustomStudentOnlinePayment, exclude_attribs=False,
             omit=['display_item']))) + (
-            'student_id','state','current_session', 'entry_session')
+            'student_id','state','current_session', 'entry_session',
+            'faculty', 'department')
 
+    def mangle_value(self, value, name, context=None):
+        """The mangler determines the student's id, registration
+        state and current session.
+        """
+        if context is not None:
+            student = context.student
+            if name in ['faculty', 'department'] and student is not None:
+                try:
+                    if name == 'department':
+                        value = student['studycourse'].certificate.__parent__.__parent__.title
+                    else:
+                        value = student['studycourse'].certificate.__parent__.__parent__.__parent__.title
+                except AttributeError:
+                    value = 'N/A'
+        return super(
+            CustomStudentPaymentExporter, self).mangle_value(
+            value, name, context=context)
+
Index: /main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_export.py
===================================================================
--- /main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_export.py	(revision 16664)
+++ /main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_export.py	(revision 16665)
@@ -80,8 +80,9 @@
             'r_amount_approved,r_card_num,r_code,r_company,r_desc,'
             'r_pay_reference,thirdparty_amt,student_id,state,'
-            'current_session,entry_session\r\n'
+            'current_session,entry_session,faculty,department\r\n'
             '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,'
             '100,first,%s,paid,%s-04-01 14:12:01#,,12.12,'
-            '789,r-code,interswitch,,,,A111111,created,2012,2010\r\n'
+            '789,r-code,interswitch,,,,A111111,created,2012,2010,'
+            'Unnamed Faculty,Unnamed Department\r\n'
             % (curr_year-6, curr_year-6, curr_year-6), result
             )
