Changeset 13640 for main


Ignore:
Timestamp:
20 Jan 2016, 13:44:11 (9 years ago)
Author:
Henrik Bettermann
Message:

Add reg_number.

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

    r13639 r13640  
    363363            IStudentOnlinePayment, exclude_attribs=False,
    364364            omit=['display_item']))) + (
    365             'student_id','state','current_session')
     365            'student_id','state','current_session', 'reg_number')
    366366    title = _(u'Student Payments')
    367367
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r13639 r13640  
    746746            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    747747            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    748             'r_code,r_desc,student_id,state,current_session\r\n'
    749 
    750             ',0.0,2012-04-01 13:12:01#,,1,,,,,unpaid,,0.0,,,,,\r\n'
     748            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
     749
     750            ',0.0,2012-04-01 13:12:01#,,1,,,,,unpaid,,0.0,,,,,,\r\n'
    751751            )
    752752        return
     
    764764            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    765765            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    766             'r_code,r_desc,student_id,state,current_session\r\n'
     766            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
    767767
    768768            '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,'
    769769            'p-item,100,2012,paid,2012-04-01 14:12:01#,12.12,'
    770             'r-code,,A111111,created,2012\r\n'
     770            'r-code,,A111111,created,2012,\r\n'
    771771            )
    772772        return
     
    783783            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    784784            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    785             'r_code,r_desc,student_id,state,current_session\r\n'
     785            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
    786786
    787787            '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,'
    788788            'p-item,100,2012,paid,2012-04-01 14:12:01#,12.12,'
    789             'r-code,,A111111,created,2012\r\n'
     789            'r-code,,A111111,created,2012,\r\n'
    790790            )
    791791        return
     
    802802            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    803803            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    804             'r_code,r_desc,student_id,state,current_session\r\n'
     804            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
    805805
    806806            '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,'
    807807            'p-item,100,2012,paid,2012-04-01 14:12:01#,12.12,'
    808             'r-code,,A111111,created,2012\r\n'
     808            'r-code,,A111111,created,2012,\r\n'
    809809            )
    810810        return
     
    824824            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    825825            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    826             'r_code,r_desc,student_id,state,current_session\r\n'
     826            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
    827827
    828828            '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,'
    829829            'p-item,100,2012,paid,2012-04-01 14:12:01#,12.12,'
    830             'r-code,,A111111,created,2012\r\n'
     830            'r-code,,A111111,created,2012,\r\n'
    831831            )
    832832        return
     
    860860            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    861861            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    862             'r_code,r_desc,student_id,state,current_session\r\n'
     862            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
    863863
    864864            '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,'
    865865            'p-item,100,2012,paid,2012-04-01 14:12:01#,12.12,'
    866             'r-code,,A111111,created,2012\r\n'
     866            'r-code,,A111111,created,2012,\r\n'
    867867            )
    868868        # Payment date is 2012-04-01, 14:12:01.
     
    877877            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    878878            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    879             'r_code,r_desc,student_id,state,current_session\r\n'
     879            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
    880880            )
    881881        exporter.export_filtered(
     
    888888            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    889889            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    890             'r_code,r_desc,student_id,state,current_session\r\n'
     890            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
    891891            )
    892892        # No results if payment_date is not set
     
    901901            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    902902            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    903             'r_code,r_desc,student_id,state,current_session\r\n'
     903            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
    904904            )
    905905        return
     
    926926            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    927927            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    928             'r_code,r_desc,student_id,state,current_session\r\n'
     928            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
    929929            )
    930930        # Make ticket unpaid
     
    936936            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
    937937            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    938             'r_code,r_desc,student_id,state,current_session\r\n'
     938            'r_code,r_desc,student_id,state,current_session,reg_number\r\n'
    939939
    940940            '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,'
    941941            'p-item,100,2012,unpaid,2012-04-01 14:12:01#,12.12,'
    942             'r-code,,A111111,created,2012\r\n'
     942            'r-code,,A111111,created,2012,\r\n'
    943943            )
    944944        return
Note: See TracChangeset for help on using the changeset viewer.