Bug 21756: (follow-up) Replace newly introduced manualinvoice call
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
0c0ac4161e
commit
6f5f675194
1 changed files with 1 additions and 2 deletions
|
@ -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' );
|
||||
|
||||
|
|
Loading…
Reference in a new issue