flesh some columns for purchase order grid
authorJason Etheridge <jason@EquinoxInitiative.org>
Mon, 11 Nov 2019 19:52:57 +0000 (14:52 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 16 Jan 2020 21:38:28 +0000 (16:38 -0500)
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts
Open-ILS/src/eg2/src/app/staff/acq/search/purchase-order-results.component.html
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Financials.pm

index 73c3791..9e21871 100644 (file)
@@ -44,6 +44,10 @@ const searchOptions = {
     },
     purchase_order: {
         no_flesh_cancel_reason: true,
+        flesh_provider: true,
+        flesh_owner: true,
+        flesh_creator: true,
+        flesh_editor: true
     },
     picklist: {
         flesh_lineitem_count: true,
index 3b6e7fa..ee05ad9 100644 (file)
@@ -6,9 +6,9 @@
 </ng-template>
 
 <ng-template #providerTmpl let-purchaseorder="row">
-  <a href="/eg/conify/global/acq/provider/{{purchaseorder.provider()}}"
+  <a href="/eg/conify/global/acq/provider/{{purchaseorder.provider().id()}}"
      target="_blank">
-    {{purchaseorder.provider()}}
+    {{purchaseorder.provider().code()}}
   </a>
 </ng-template>
 
index e66e648..062a9d1 100644 (file)
@@ -1015,6 +1015,15 @@ sub retrieve_purchase_order_impl {
     if ($options->{"flesh_provider"}) {
         push @{$flesh->{"flesh_fields"}->{"acqpo"}}, "provider";
     }
+    if ($options->{"flesh_owner"}) {
+        push @{$flesh->{"flesh_fields"}->{"acqpo"}}, "owner";
+    }
+    if ($options->{"flesh_creator"}) {
+        push @{$flesh->{"flesh_fields"}->{"acqpo"}}, "creator";
+    }
+    if ($options->{"flesh_editor"}) {
+        push @{$flesh->{"flesh_fields"}->{"acqpo"}}, "editor";
+    }
 
     push (@{$flesh->{flesh_fields}->{acqpo}}, 'po_items') if $options->{flesh_po_items};