Fixing a bug that bruno spotted, $bookfund in receiveorder
authorrangi <rangi>
Fri, 9 Jun 2006 11:47:53 +0000 (11:47 +0000)
committerrangi <rangi>
Fri, 9 Jun 2006 11:47:53 +0000 (11:47 +0000)
C4/Acquisition.pm

index 1568737..759c262 100644 (file)
@@ -382,7 +382,7 @@ Also updates the book fund ID in the aqorderbreakdown table.
 
 #'
 sub receiveorder {
-    my ( $biblio, $ordnum, $quantrec, $user, $cost, $invoiceno, $freight, $rrp )
+    my ( $biblio, $ordnum, $quantrec, $user, $cost, $invoiceno, $freight, $rrp $bookfund)
       = @_;
     my $dbh = C4::Context->dbh;
     my $sth = $dbh->prepare(
@@ -402,7 +402,7 @@ sub receiveorder {
     # allows them to adjust budgets
     if ( C4::Context->preferene("LooseBudgets") ) {
         my $sth = $dbh->prepare(
-"UPDATE aqorderbreakdown SET bookfundid=?                                                                                                         
+"UPDATE aqorderbreakdown SET bookfundid=?
                            WHERE ordernumber=?"
         );
         $sth->execute( $bookfund, $ordnum );