From a6807c2731d583d598394499e48c154d4fa45005 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 7 Mar 2012 10:39:44 -0500 Subject: [PATCH] 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 Signed-off-by: James Fournie --- Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b0290a5244..ff07c7dc75 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm @@ -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; } -- 2.11.0