From: Jason Etheridge Date: Wed, 20 Nov 2019 12:49:50 +0000 (-0500) Subject: tweak invoice grid and middle layer retriever X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e29660c73aeff52d239c0eac0d67ee73489befdc;p=working%2FEvergreen.git tweak invoice grid and middle layer retriever Flesh provider and shipper, and provide links to the legacy dojo for those and inv_ident Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts b/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts index 38040a2795..45ea4e3cb5 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts @@ -56,7 +56,8 @@ const searchOptions = { flesh_editor: false }, invoice: { - no_flesh_misc: true + no_flesh_misc: true, + flesh_provider: true // and shipper, which is also a provider } }; diff --git a/Open-ILS/src/eg2/src/app/staff/acq/search/invoice-results.component.html b/Open-ILS/src/eg2/src/app/staff/acq/search/invoice-results.component.html index fbccacbdee..2f85b987f0 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/search/invoice-results.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/search/invoice-results.component.html @@ -1,5 +1,32 @@ + + + {{invoice.inv_ident()}} + + + + + {{invoice.provider().code()}} + + + + + {{invoice.shipper().code()}} + + + + + + + + + + + diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm index 78765c62c4..653a66411b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm @@ -717,6 +717,13 @@ sub fetch_invoice_impl { } } ]; + if ($options->{"flesh_provider"}) { + if ($options->{"no_flesh_misc"}) { + $args = [ $invoice_id, { "flesh" => 1, "flesh_fields" => { "acqinv" => [] } } ]; + } + push @{ $args->[1]->{flesh_fields}->{acqinv} }, "provider"; + push @{ $args->[1]->{flesh_fields}->{acqinv} }, "shipper"; + } return $e->retrieve_acq_invoice($args); }