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>
my $total = $patron->account->balance;
my $accts = Koha::Account::Lines->search(
- { borrowernumber => $patron->borrowernumber },
+ { borrowernumber => $patron->borrowernumber, amountoutstanding => { '!=' => 0 } },
{ order_by => { -desc => 'accountlines_id' } }
);