ACQ PO state defaults to "pending" from upload
authorBill Erickson <berick@esilibrary.com>
Wed, 7 Mar 2012 15:39:44 +0000 (10:39 -0500)
committerBill Erickson <berick@esilibrary.com>
Thu, 15 Mar 2012 17:11:25 +0000 (13:11 -0400)
When uploading a batch of records to create a PO, give the PO the
initial state of "pending" instead of "on-order".  If the PO is meant to
be activated, its state will updated to "on-order" during the activation
phase.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: James Fournie <jfournie@sitka.bclibraries.ca>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm

index b0290a5..ff07c7d 100644 (file)
@@ -1231,7 +1231,7 @@ sub upload_records {
         $po = create_purchase_order($mgr, 
             ordering_agency => $ordering_agency,
             provider => $provider->id,
-            state => 'on-order'
+            state => 'pending' # will be updated later if activated
         ) or return $mgr->editor->die_event;
     }