From ceb2f2895b8a0266692f5a796ad556065d17a58f Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Tue, 19 Mar 2019 17:52:46 +0000 Subject: [PATCH] Bug 22533: maninvoice.pl is using deprecated maininvoice() method To test: Attempt to create a manual fine from the patron accounting page, it should fail. Apply this patch, restart the things Attempt to create a manual fine from the patron accounting page, it should succeed. Signed-off-by: Hayley Mapley --- members/maninvoice.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/maninvoice.pl b/members/maninvoice.pl index 2d22666bd5..668136a978 100755 --- a/members/maninvoice.pl +++ b/members/maninvoice.pl @@ -78,7 +78,7 @@ if ($add){ my $amount=$input->param('amount'); my $type=$input->param('type'); my $note = $input->param('note'); - my $error = manualinvoice( $borrowernumber, $itemnum, $desc, $type, $amount, $note ); + my $error = C4::Accounts::manualinvoice( $borrowernumber, $itemnum, $desc, $type, $amount, $note ); if ($error) { if ( $error =~ /FOREIGN KEY/ && $error =~ /itemnumber/ ) { $template->param( 'ITEMNUMBER' => 1 ); -- 2.11.0