Bug 20656: Don't print lines that have no balance on print summary
[koha.git] / members / summary-print.pl
index 342685b..352b497 100755 (executable)
@@ -49,7 +49,7 @@ output_and_exit_if_error( $input, $cookie, $template, { module => 'members', log
 
 my $total = $patron->account->balance;
 my $accts = Koha::Account::Lines->search(
-    { borrowernumber => $patron->borrowernumber },
+    { borrowernumber => $patron->borrowernumber, amountoutstanding => { '!=' => 0 } },
     { order_by       => { -desc => 'accountlines_id' } }
 );