Bug 28264: Transaction type is empty is cash register statistics wizard report
authorIvan Dziuba <ivan.dziuba@inlibro.com>
Thu, 6 May 2021 19:33:02 +0000 (15:33 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 21 Jun 2021 11:27:33 +0000 (13:27 +0200)
To test:
1) Go into a patron file and add some manual fees and pay them
2) Go to Reports > Statistics wizards > Cash register
3) In the form, choose Transaction type: All transactions
4) Click "Submit"
5) Note that the Transaction type column is empty
6) In the form, choose Output: To a file
7) Click "Submit"
8) Open the file in a spreadsheet software (I use LibreOffice)
9) The Transaction type column IS NOT empty

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
reports/cash_register_stats.pl

index a59fcdb..40f358e 100755 (executable)
@@ -167,7 +167,7 @@ if ($do_it) {
                         $row->{branchname},
                         $row->{date},
                         $row->{timestamp},
-                        $row->{credit_type},
+                        $row->{credit_type_code},
                         $row->{debit_type},
                         $row->{note},
                         $row->{amount},