[open-ils-commits] r19030 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq (senator)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 21 14:37:22 EST 2010


Author: senator
Date: 2010-12-21 14:37:18 -0500 (Tue, 21 Dec 2010)
New Revision: 19030

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
Log:
Acq: Fix a bug where upon PO activation, lineitems in the order-ready state
would stay there, rather than progressing to the on-order state


Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm	2010-12-20 18:14:10 UTC (rev 19029)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm	2010-12-21 19:37:18 UTC (rev 19030)
@@ -2196,7 +2196,7 @@
     my $query = [
         {
             purchase_order => $po_id, 
-            '-or' => [{state => 'pending-order'}, {state => 'new'}]
+            state => [qw/pending-order new order-ready/]
         },
         {limit => 1}
     ];



More information about the open-ils-commits mailing list