From 707d95a17a9764afcc62ace21b969f4922094e20 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 9 Dec 2021 15:17:59 -0500 Subject: [PATCH] LP1952931 ASN Receiving UI Signed-off-by: Bill Erickson --- .../src/app/staff/acq/asn/receive.component.html | 22 ++++++++++++++++++++-- .../eg2/src/app/staff/acq/asn/receive.component.ts | 11 +++++++++++ 2 files changed, 31 insertions(+), 2 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 11d13e6296..b66d5c5fd9 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 @@ -50,7 +50,7 @@ across different vendors to match a container code.
- +
{{entries.length}}
@@ -69,6 +69,12 @@ across different vendors to match a container code.
{{container.recv_date() | date:'short'}}
+
+ +
+
+
{{affectedItemsCount()}}
+
@@ -98,13 +104,25 @@ across different vendors to match a container code. {{row.lineitem.id()}} + + + {{row.lineitem.purchase_order().name()}} + + + + + - + 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 f8bd153619..a4d29a5c01 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 @@ -120,5 +120,16 @@ export class AsnReceiveComponent implements OnInit { window.open(url); } + + affectedItemsCount(): number { + if (this.entries.length === 0) { return 0; } + return this.entries + .map(e => e.item_count()) + .reduce((pv, cv) => pv + (cv || 0)); + } + + receiveAllItems() { + alert('TODO'); + } } -- 2.11.0