Before this patch the Void button didn't appear.
After this patch the Void button appears on payments.
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
$totalcredit = 1;
}
-my $reverse_col = 0; # Flag whether we need to show the reverse column
+my $reverse_col = ( Koha::Account::Lines->search(
+ { borrowernumber => $patron->borrowernumber },
+ { where => { amount => { '<=', 0 } } } )->count > 0 ) ? 1 : 0;
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($borrowernumber);