From: Bill Erickson Date: Wed, 7 Mar 2012 15:39:44 +0000 (-0500) Subject: ACQ PO state defaults to "pending" from upload X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4be9ad1d62feb36cfa07b3cbd652b921cfd7b570;p=working%2FEvergreen.git ACQ PO state defaults to "pending" from upload 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 --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm index 1b1aff30e9..4999bc081a 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm @@ -1230,7 +1230,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; }