From: Martin Renvoize Date: Thu, 21 Feb 2019 08:47:55 +0000 (+0000) Subject: Bug 21756: (follow-up) Replace newly introduced manualinvoice call X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=6f5f675194ba3de51e2f24354893faec2856bc91;p=koha.git Bug 21756: (follow-up) Replace newly introduced manualinvoice call Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Nick Clemens --- diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 39c5dc74a6..134921269a 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -2334,9 +2334,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' );