Bug 22533: Fix manual invoices from patron accounting
authorLiz Rea <wizzyrea@gmail.com>
Tue, 19 Mar 2019 17:52:46 +0000 (17:52 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 22 Mar 2019 18:57:00 +0000 (18:57 +0000)
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 <hayleymapley@catalyst.net.nz>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

members/maninvoice.pl

index 2d22666..668136a 100755 (executable)
@@ -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 );