Merge branch 'bug_9824' into 3.14-master
[koha.git] / acqui / finishreceive.pl
index 565ac36..5ca2c98 100755 (executable)
@@ -52,7 +52,6 @@ my $invoiceno        = $invoice->{invoicenumber};
 my $datereceived     = $invoice->{shipmentdate};
 my $booksellerid     = $input->param('booksellerid');
 my $cnt              = 0;
-my $error_url_str;
 my $ecost            = $input->param('ecost');
 my $rrp              = $input->param('rrp');
 my $note             = $input->param("note");
@@ -93,7 +92,7 @@ if ($quantityrec > $origquantityrec ) {
             $user,
             $order->{unitprice},
             $order->{ecost},
-            $invoiceno,
+            $invoiceid,
             $order->{rrp},
             undef,
             $datereceived,