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>
$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;
}