Changeset 16334


Ignore:
Timestamp:
24 Nov 2020, 10:48:31 (4 years ago)
Author:
Henrik Bettermann
Message:

Add sex field to exporter.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/export.py

    r16197 r16334  
    133133            omit=['display_item', 'certificate', 'student']))) + (
    134134            'student_id','matric_number','reg_number',
    135             'firstname', 'middlename', 'lastname',
     135            'firstname', 'middlename', 'lastname','sex',
    136136            'state','current_session',
    137137            'entry_session', 'entry_mode',
     
    145145            if name in [
    146146                'student_id','matric_number', 'reg_number',
    147                 'firstname', 'middlename', 'lastname',
     147                'firstname', 'middlename', 'lastname','sex',
    148148                'state', 'current_session',
    149149                'entry_session', 'entry_mode',
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r16195 r16334  
    192192            'payment_date,provider_amt,r_amount_approved,r_card_num,r_code,'
    193193            'r_company,r_desc,r_pay_reference,thirdparty_amt,student_id,'
    194             'matric_number,reg_number,firstname,middlename,lastname,state,'
     194            'matric_number,reg_number,firstname,middlename,lastname,sex,state,'
    195195            'current_session,entry_session,entry_mode,faccode,depcode,certcode,lga\r\n'
    196196
    197197            '666,12.12,%s-04-01 13:12:01#,,,,schoolfee,[],1,my-id,p-item,'
    198198            '100,%s,,paid,%s-04-01 14:12:01#,,12.12,,r-code,,,,,A111111,'
    199             '234,123,Anna,M.,Tester,created,2012,2010,ug_ft,NA,NA,CERT1,\r\n'
     199            '234,123,Anna,M.,Tester,f,created,2012,2010,ug_ft,NA,NA,CERT1,\r\n'
    200200            % (curr_year-6, curr_year-6, curr_year-6)
    201201            )
Note: See TracChangeset for help on using the changeset viewer.