[open-ils-commits] r19031 - branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq (senator)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 21 14:38:01 EST 2010


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

Modified:
   branches/rel_2_0/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: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm	2010-12-21 19:37:18 UTC (rev 19030)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm	2010-12-21 19:37:57 UTC (rev 19031)
@@ -2197,7 +2197,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