From: erickson Date: Fri, 26 Mar 2010 15:09:31 +0000 (+0000) Subject: Set PO order date at PO activation time X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bf8c650c1f69632044b6491bf62f2c65fa803a3d;p=evergreen%2Fbjwebb.git Set PO order date at PO activation time git-svn-id: svn://svn.open-ils.org/ILS/trunk@16004 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm index 7d0693351..2df2bab22 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm @@ -2018,6 +2018,7 @@ sub activate_purchase_order_impl { return $e->die_event unless $e->allowed('CREATE_PURCHASE_ORDER', $po->ordering_agency); $po->state('on-order'); + $po->order_date('now'); update_purchase_order($mgr, $po) or return $e->die_event; my $query = [