Ignore:
Timestamp:
28 May 2013, 09:11:56 (11 years ago)
Author:
Henrik Bettermann
Message:

Add more columns to bursary export file.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r10233 r10236  
    324324            IStudentOnlinePayment, exclude_attribs=False,
    325325            omit=['display_item']))) + (
    326             'student_id','matric_number','state','current_session',
    327             'faccode', 'depcode', 'display_fullname')
     326            'student_id','matric_number',
     327            'firstname', 'middlename', 'lastname',
     328            'state','current_session',
     329            'entry_session', 'entry_mode',
     330            'faccode', 'depcode')
    328331
    329332    #: The title under which this exporter will be displayed
     
    335338        if context is not None:
    336339            student = context.student
    337             if name in ['student_id','matric_number',
    338                         'state','current_session',
    339                         'faccode','depcode',
    340                         'display_fullname'] and student is not None:
     340            if name in [
     341                'student_id','matric_number',
     342                'firstname', 'middlename', 'lastname',
     343                'state','current_session',
     344                'entry_session', 'entry_mode',
     345                'faccode', 'depcode'] and student is not None:
    341346                value = getattr(student, name, None)
    342347        return super(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r10233 r10236  
    736736            result,
    737737            'ac,amount_auth,creation_date,p_category,p_current,p_id,p_item,'
    738             'p_level,p_session,p_state,payment_date,r_amount_approved,'
    739             'r_code,r_desc,student_id,matric_number,state,current_session,'
    740             'faccode,depcode,display_fullname\r\n'
     738            'p_level,p_session,p_state,payment_date,r_amount_approved,r_code,'
     739            'r_desc,student_id,matric_number,firstname,middlename,lastname,'
     740            'state,current_session,entry_session,entry_mode,faccode,depcode\r\n'
    741741
    742742            '666,0.0,2012-04-01 13:12:01,schoolfee,1,my-id,p-item,100,2012,'
    743             'unpaid,2012-04-01 14:12:01,12.12,r-code,,A111111,'
    744             '234,created,2012,NA,NA,Anna M. Tester\r\n'
     743            'unpaid,2012-04-01 14:12:01,12.12,r-code,,A111111,234,'
     744            'Anna,M.,Tester,created,2012,2010,,NA,NA\r\n'
    745745            )
    746746        return
Note: See TracChangeset for help on using the changeset viewer.