Set PO order date at PO activation time
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 26 Mar 2010 15:09:31 +0000 (15:09 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 26 Mar 2010 15:09:31 +0000 (15:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16004 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm

index 7d06933..2df2bab 100644 (file)
@@ -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 = [