Acq: Fix a bug where upon PO activation, lineitems in the order-ready state
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 21 Dec 2010 19:37:57 +0000 (19:37 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 21 Dec 2010 19:37:57 +0000 (19:37 +0000)
would stay there, rather than progressing to the on-order state

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19031 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm

index d564d05..5b2f12c 100644 (file)
@@ -2197,7 +2197,7 @@ sub activate_purchase_order_impl {
     my $query = [
         {
             purchase_order => $po_id, 
-            '-or' => [{state => 'pending-order'}, {state => 'new'}]
+            state => [qw/pending-order new order-ready/]
         },
         {limit => 1}
     ];