Bug 20656: Don't print lines that have no balance on print summary
To test:
1 - Add at least two fines to a patron
2 - Pay off one of them
3 - Print summary - all 3 lines show
4 - Apply patch
5 - Print summary - only line with balance shows
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 0fd329724b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
41130848be
commit
fd13428bc5
|
|
@ -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' } }
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue