From 478f2392ce7b7cedd4f1c93ed3c64800a16a425b Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Tue, 19 Mar 2019 17:52:46 +0000 Subject: [PATCH] Bug 22533: Fix manual invoices from patron accounting 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 Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- members/maninvoice.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/members/maninvoice.pl b/members/maninvoice.pl index 2d22666..668136a 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 ); -- 1.7.2.5