Ignore:
Timestamp:
21 Nov 2020, 14:59:17 (4 years ago)
Author:
Henrik Bettermann
Message:

Add field to bursary data exporter.

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

Legend:

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

    r16302 r16329  
    22172217        return
    22182218
    2219     #@action(_('Add online payment ticket'))
    2220     #def addPaymentTicket(self, **data):
    2221     #    self.redirect(self.url(self.context, '@@addop'))
    2222 
    22232219class OnlinePaymentAddFormPage(KofaAddFormPage):
    22242220    """ Page to add an online payment ticket
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r16186 r16329  
    640640            omit=['display_item', 'certificate', 'student']))) + (
    641641            'student_id','matric_number','reg_number',
    642             'firstname', 'middlename', 'lastname',
     642            'firstname', 'middlename', 'lastname','sex',
    643643            'state','current_session',
    644644            'entry_session', 'entry_mode',
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r16303 r16329  
    42434243            '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100,%s,'
    42444244            'paid,2012-12-13 00:00:00#,12.12,r-code,,K1000000,234,123,Anna,,'
    4245             'Tester,created,2004,2004,,fac1,dep1,CERT1'
     4245            'Tester,,created,2004,2004,,fac1,dep1,CERT1'
    42464246            %(curr_year-6) in self.browser.contents)
    42474247        self.assertEqual(len(self.app['datacenter'].running_exports), 1)
     
    42904290            '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100,%s,'
    42914291            'paid,2012-12-13 00:00:00#,12.12,r-code,,K1000000,234,123,Anna,,'
    4292             'Tester,created,2004,2004,,fac1,dep1,CERT1'
     4292            'Tester,,created,2004,2004,,fac1,dep1,CERT1'
    42934293            %(curr_year-6) in self.browser.contents)
    42944294
     
    46494649            '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100,%s,'
    46504650            'paid,2012-12-13 00:00:00#,12.12,r-code,,K1000000,234,123,Anna,,'
    4651             'Tester,created,2004,2004,,fac1,dep1,CERT1'
     4651            'Tester,,created,2004,2004,,fac1,dep1,CERT1'
    46524652            %(curr_year-6) in self.browser.contents)
    46534653        # ... and discarded
     
    46764676            '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100,%s,'
    46774677            'paid,2012-12-13 00:00:00#,12.12,r-code,,K1000000,234,123,Anna,,'
    4678             'Tester,created,2004,2004,,fac1,dep1,CERT1'
     4678            'Tester,,created,2004,2004,,fac1,dep1,CERT1'
    46794679            %(curr_year-6) in self.browser.contents)
    46804680
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r16186 r16329  
    11971197            'p_level,p_session,p_state,payment_date,r_amount_approved,r_code,'
    11981198            'r_desc,student_id,matric_number,reg_number,firstname,middlename,lastname,'
    1199             'state,current_session,entry_session,entry_mode,faccode,depcode,certcode\r\n'
     1199            'sex,state,current_session,entry_session,entry_mode,faccode,depcode,certcode\r\n'
    12001200
    12011201            '666,12.12,%s-04-01 13:12:01#,schoolfee,[],1,my-id,p-item,100,%s,'
    12021202            'paid,%s-04-01 14:12:01#,12.12,r-code,,A111111,234,123,'
    1203             'Anna,M.,Tester,created,2012,2010,ug_ft,NA,NA,CERT1\r\n'
     1203            'Anna,M.,Tester,,created,2012,2010,ug_ft,NA,NA,CERT1\r\n'
    12041204            % (curr_year-6, curr_year-6, curr_year-6)
    12051205            )
     
    12551255            'ac,amount_auth,creation_date,p_category,p_combi,p_current,p_id,p_item,'
    12561256            'p_level,p_session,p_state,payment_date,r_amount_approved,r_code,'
    1257             'r_desc,student_id,matric_number,reg_number,firstname,middlename,lastname,'
     1257            'r_desc,student_id,matric_number,reg_number,firstname,middlename,lastname,sex,'
    12581258            'state,current_session,entry_session,entry_mode,faccode,depcode,certcode\r\n'
    12591259            'abc,12.12,%s-04-01 13:12:01#,bed_allocation,[],1,id1,xyz,100,%s,'
    12601260            'paid,%s-04-01 14:12:01#,12.12,cde,,A111111,234,123,'
    1261             'Anna,M.,Tester,created,2012,2010,ug_ft,NA,NA,CERT1\r\n'
     1261            'Anna,M.,Tester,,created,2012,2010,ug_ft,NA,NA,CERT1\r\n'
    12621262            'abc,12.12,%s-04-01 13:12:01#,hostel_maintenance,[],1,id2,xyz,100,%s,'
    12631263            'paid,%s-04-01 14:12:01#,12.12,cde,,A111111,234,123,'
    1264             'Anna,M.,Tester,created,2012,2010,ug_ft,NA,NA,CERT1\r\n'
     1264            'Anna,M.,Tester,,created,2012,2010,ug_ft,NA,NA,CERT1\r\n'
    12651265            % (curr_year-6, curr_year-6, curr_year-6,
    12661266               curr_year-6, curr_year-6, curr_year-6)
Note: See TracChangeset for help on using the changeset viewer.