From 9b5ef063a1bfdafdad5fbf3c0a380e34c6b2e840 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 15 Mar 2022 10:15:30 -0400 Subject: [PATCH] LP1952931 LI# link goes to LI items; show title in summary Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.html | 9 +++++++-- Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts | 8 +++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.html b/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.html index c59d16b33e..0009e5ea34 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.html @@ -113,7 +113,7 @@ across different vendors to match a container code. + routerLink="/staff/acq/po/{{row.lineitem.purchase_order().id()}}/lineitem/{{row.lineitem.id()}}"> {{row.lineitem.id()}} @@ -125,7 +125,7 @@ across different vendors to match a container code.
-
+
Receiving Items (Dry Run)
@@ -135,12 +135,17 @@ across different vendors to match a container code.
  • +
    Title
    Lineitem
    Notified
    Received
  • +
    #{{li.id}} diff --git a/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts index 7ddfd4411f..07ceddeacf 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts @@ -30,6 +30,7 @@ export class AsnReceiveComponent implements OnInit { dryRun = true; receiveOnScan = false; notFound = false; + liCache: {[id: number]: any} = {}; // Technically possible for one container code to match across providers. container: IdlObject; @@ -66,7 +67,7 @@ export class AsnReceiveComponent implements OnInit { gridifyEntry(entry: IdlObject): any { const li = entry.lineitem(); const sum = li.order_summary(); - return { + const display = { entry: entry, lineitem: li, title: this.li.getFirstAttributeValue(li, 'title'), @@ -78,6 +79,10 @@ export class AsnReceiveComponent implements OnInit { sum.recv_count() + sum.cancel_count() ) }; + + this.liCache[li.id()] = display; + + return display; } findContainer() { @@ -86,6 +91,7 @@ export class AsnReceiveComponent implements OnInit { this.container = null; this.containers = []; this.entries = []; + this.liCache = {}; this.pcrud.search('acqsn', {container_code: this.barcode}, -- 2.11.0