From 20a4348c14047c0640f36cbb03c7c58dd8cac895 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 11 Aug 2017 15:39:53 +0000 Subject: [PATCH] [SIGNED OFF ] Bug 19076 - followup - delete fines from additional renewal Signed-off-by: Christopher Brannon --- t/db_dependent/Circulation.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index f768cc0..1826c1f 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -506,6 +506,8 @@ C4::Context->dbh->do("DELETE FROM accountlines"); $new_log_size = scalar(@{GetLogs( $date, $date, undef,["CIRCULATION"], ["ISSUE"]) } ); is ($new_log_size, $old_issue_log_size, 'renew not logged as issue when renewed via issuing'); + $fines = Koha::Account::Lines->search( { borrowernumber => $renewing_borrower->{borrowernumber}, itemnumber => $itemnumber7 } ); + $fines->delete(); t::lib::Mocks::mock_preference('OverduesBlockRenewing','blockitem'); ( $renewokay, $error ) = CanBookBeRenewed($renewing_borrowernumber, $itemnumber6); -- 2.1.4