Bug 18742: Circulation statistics wizard no longer exports the total row
authorNick Clemens <nick@bywatersolutions.com>
Wed, 7 Jun 2017 14:56:47 +0000 (10:56 -0400)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 29 Oct 2017 17:59:28 +0000 (18:59 +0100)
To test:
- Run the circulation wizard
- Export to csv
- Note there is no total row
- Apply patch
- Export to csv
- Total row totally there!

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ff22cb46a5f6a1f75422c2a90e1f80ccb05c30b9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 30811a653eb2f5e6ab089094bbb9936756aa9a16)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

reports/issues_stats.pl

index 4241393..e7d1b83 100755 (executable)
@@ -135,6 +135,12 @@ if ($do_it) {
             print map { $_->{value} . $sep } @$x;
             print $line->{totalrow}, "\n";
         }
+# footer
+         print "TOTAL";
+         $cols = @$results[0]->{loopfooter};
+         print map {$sep.$_->{totalcol}} @$cols;
+         print $sep.@$results[0]->{total};
+
     }
     exit;
 }