From b9b4ba789638ff0f42f86eed03ced7d480814be0 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 21 Feb 2019 08:47:55 +0000 Subject: [PATCH] Bug 21756: (follow-up) Replace newly introduced manualinvoice call Signed-off-by: Martin Renvoize --- t/db_dependent/Circulation.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 96e32077b7..9298e15e5c 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -2316,9 +2316,8 @@ subtest '_FixAccountForLostAndReturned' => sub { 'Payment applied' ); - # TODO use add_debit when time comes my $manual_debit_amount = 80; - C4::Accounts::manualinvoice( $patron->id, undef, undef, 'FU', $manual_debit_amount ); + $account->add_debit( { amount => $manual_debit_amount, type => 'fine' } ); is( $account->balance, $manual_debit_amount + $replacement_amount - $payment_amount, 'Manual debit applied' ); -- 2.20.1