Changeset 13952 for main/waeup.kofa/trunk/src
- Timestamp:
- 17 Jun 2016, 13:02:01 (8 years ago)
- 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 161 161 IApplicantOnlinePayment, 162 162 exclude_attribs=False, 163 omit=['display_item']))) + ('applicant_id',) 163 omit=['display_item']))) + ( 164 'applicant_id', 165 'reg_number', 166 'display_fullname',) 164 167 title = _(u'Applicant Payments') 165 168 … … 167 170 """The mangler determines the applicant's id. 168 171 """ 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: 170 174 applicant = context.__parent__ 171 175 value = getattr(applicant, name, None) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r13949 r13952 287 287 cdate = str('%s#' % self.applicant['p120'].creation_date) 288 288 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) 294 294 return 295 295 … … 301 301 cdate = str('%s#' % self.applicant['p120'].creation_date) 302 302 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) 308 308 return 309 309 … … 316 316 cdate = str('%s#' % self.applicant['p120'].creation_date) 317 317 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.