CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Donor Report Detail does not label every row
Pages: [1]

Author Topic: Donor Report Detail does not label every row  (Read 1467 times)

jobewan

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 0
Donor Report Detail does not label every row
January 26, 2010, 07:43:26 am
Hello!

Hope everyone is on their way to a banner New Year!

I am exporting to CSV the Donor Report Detail.  Turns out the report seems to use a "primary" row to identify the donor in question, and any/every subsequent donation under that same donor is simply - blank, beyond (of course) the amount and date.

I don't want to so negative as to say how silly this is when attempting to perform any meaningful sorts in Excel (for instance).  The amount of hand work it takes to populate these blank  rows with donor ID is profoundly wasteful.

Is there any way to produce a properly populated set of donation/transaction rows from this report without revamping it entirely?

Many thanks,

-Joe

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Donor Report Detail does not label every row
January 26, 2010, 11:21:59 pm
Quote
I don't want to so negative as to say how silly this is when attempting to perform any meaningful sorts in Excel (for instance).  The amount of hand work it takes to populate these blank  rows with donor ID is profoundly wasteful.

This is done intentionally and IMO it's much friendly than showing multiple row with repeated data. I do understand sorting this exported sheet in spreadsheet will be a problem.
Quote
Is there any way to produce a properly populated set of donation/transaction rows from this report without revamping it entirely?

You will have to modify code for this report.

Kurund
Found this reply helpful? Support CiviCRM

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Donor Report Detail does not label every row
January 28, 2010, 02:03:44 am
I would agree that having the full data in an export would be useful, so would an option for 'later on' be to have both exports always available and just a checkbox to specify if you want the current version or the 'all data in all rows' version.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Donor Report Detail does not label every row
January 28, 2010, 06:03:49 am
I think it makes sense to "always have full data for csv" and could be supported as default behaviour.

Sample fix for contribution detail would be sth like:
Code: [Select]
Index: CRM/Report/Form/Contribute/Detail.php
===================================================================
--- CRM/Report/Form/Contribute/Detail.php (revision 26048)
+++ CRM/Report/Form/Contribute/Detail.php (working copy)
@@ -342,7 +342,7 @@
         foreach ( $rows as $rowNum => $row ) {
-            if ( !empty($this->_noRepeats) ) {
+            if ( !empty($this->_noRepeats) && $this->_outputMode != 'csv') {
                 // don't repeat contact details if its same as the previous row


Filed an issue here - http://issues.civicrm.org/jira/browse/CRM-5732
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Donor Report Detail does not label every row

This forum was archived on 2017-11-26.