Ignore:
Timestamp:
17 Jun 2016, 13:02:01 (9 years ago)
Author:
Henrik Bettermann
Message:

Export also reg_number and display_fullname.

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

Legend:

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

    r13949 r13952  
    161161        IApplicantOnlinePayment,
    162162        exclude_attribs=False,
    163         omit=['display_item']))) + ('applicant_id',)
     163        omit=['display_item']))) + (
     164              'applicant_id',
     165              'reg_number',
     166              'display_fullname',)
    164167    title = _(u'Applicant Payments')
    165168
     
    167170        """The mangler determines the applicant's id.
    168171        """
    169         if name == 'applicant_id' and context is not None:
     172        if name in ('applicant_id', 'reg_number',
     173            'display_fullname',) and context is not None:
    170174            applicant = context.__parent__
    171175            value = getattr(applicant, name, None)
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py

    r13949 r13952  
    287287        cdate = str('%s#' % self.applicant['p120'].creation_date)
    288288        self.assertEqual(
    289             'ac,amount_auth,creation_date,p_category,p_id,p_item,p_session,'
    290             'p_state,payment_date,r_amount_approved,r_code,r_desc,'
    291             'applicant_id\r\n,'
    292             '0.0,%s,application,p120,,2012,'
    293             'paid,,0.0,,,dp2011_654321\r\n' % cdate, result)
     289            'ac,amount_auth,creation_date,p_category,p_id,'
     290            'p_item,p_session,p_state,payment_date,r_amount_approved,'
     291            'r_code,r_desc,applicant_id,reg_number,display_fullname\r\n'
     292            ',0.0,%s,application,p120,,2012,paid,,0.0,,,dp2011_654321,'
     293            '123456,Anna M. Tester\r\n' % cdate, result)
    294294        return
    295295
     
    301301        cdate = str('%s#' % self.applicant['p120'].creation_date)
    302302        self.assertEqual(
    303             'ac,amount_auth,creation_date,p_category,p_id,p_item,p_session,'
    304             'p_state,payment_date,r_amount_approved,r_code,r_desc,'
    305             'applicant_id\r\n,'
    306             '0.0,%s,application,p120,,2012,'
    307             'paid,,0.0,,,dp2011_654321\r\n' % cdate, result)
     303            'ac,amount_auth,creation_date,p_category,p_id,'
     304            'p_item,p_session,p_state,payment_date,r_amount_approved,'
     305            'r_code,r_desc,applicant_id,reg_number,display_fullname\r\n'
     306            ',0.0,%s,application,p120,,2012,paid,,0.0,,,dp2011_654321,'
     307            '123456,Anna M. Tester\r\n' % cdate, result)
    308308        return
    309309
     
    316316        cdate = str('%s#' % self.applicant['p120'].creation_date)
    317317        self.assertEqual(
    318             'ac,amount_auth,creation_date,p_category,p_id,p_item,p_session,'
    319             'p_state,payment_date,r_amount_approved,r_code,r_desc,'
    320             'applicant_id\r\n,'
    321             '0.0,%s,application,p120,,2012,'
    322             'paid,,0.0,,,dp2011_654321\r\n' % cdate, result)
    323         return
     318            'ac,amount_auth,creation_date,p_category,p_id,'
     319            'p_item,p_session,p_state,payment_date,r_amount_approved,'
     320            'r_code,r_desc,applicant_id,reg_number,display_fullname\r\n'
     321            ',0.0,%s,application,p120,,2012,paid,,0.0,,,dp2011_654321,'
     322            '123456,Anna M. Tester\r\n' % cdate, result)
     323        return
Note: See TracChangeset for help on using the changeset viewer.