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:18 +0000 (19:37 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 21 Dec 2010 19:37:18 +0000 (19:37 +0000)
would stay there, rather than progressing to the on-order state

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

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

index 33f3eec..6fd0bf0 100644 (file)
@@ -2196,7 +2196,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}
     ];