Some SQL code moved into Acquisition.pm
authortoins <toins>
Tue, 1 Aug 2006 15:04:33 +0000 (15:04 +0000)
committertoins <toins>
Tue, 1 Aug 2006 15:04:33 +0000 (15:04 +0000)
acqui/finishreceive.pl

index 9d23208..4aa7d42 100755 (executable)
@@ -181,15 +181,8 @@ else {
 
 #lets do a lookup on aqorders, with ordnum, then insert biblioitem fiels with new biblioitem number
 
-        my $query =
-          "UPDATE aqorders SET biblioitemnumber = ? where ordernumber = ? 
-               and biblionumber =  ?";
-        my $sth = $dbh->prepare($query);
-        my $error = $sth->execute( $biblioitemnumber, $ordnum, $biblionumber );
-        #warn Dumper $error;
-        $sth->fetchrow_hashref;
-        $sth->finish;
-    }
+    &ModOrderBiblioNumber($biblioitemnumber,$ordnum, $biblionumber);
+    
     else {
         &modbiblio($bibliohash);
         &modbibitem($biblioitemhash);