Bug 22626: 'Filter paid transactions' broken on Transactions tab in staff
authorOwen Leonard <oleonard@myacpl.org>
Tue, 9 Apr 2019 16:06:27 +0000 (16:06 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 11 Apr 2019 13:34:09 +0000 (13:34 +0000)
This patch changes a parameter in the function which filters the
DataTable of transactions. The addition of more columns to the table
changed the index of the column which is being filtered.

To test, apply the patch and locate a patron who has multiple fines or
charges, some of them paid. Go to Accounting -> Transactions. Test the
"Filter paid transactions" link. Table rows which show "0.00" in the
"Oustanding" column should be hidden.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt

index ceeccad..352c529 100644 (file)
                     var filteredValue = '^((?!0.00).*)$'; //Filter not matching 0.00 http://stackoverflow.com/a/406408
                     $(this).html('<i class="fa fa-filter"></i> '+txtInactivefilter);
                 }
-                table_account_fines.fnFilter(filteredValue, 5, true, false);
+                table_account_fines.fnFilter(filteredValue, 8, true, false);
                 $(this).toggleClass('filtered');
             });