From c3da4c23f3afc461ed7d7e203419571193711272 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 3 Feb 2022 10:51:52 -0500 Subject: [PATCH] LP1952931 Handle barcode not found Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.html | 8 ++++++++ Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts | 4 ++++ 2 files changed, 12 insertions(+) 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 03b9053a20..c59d16b33e 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 @@ -34,6 +34,14 @@ across different vendors to match a container code. --> +
+
+
+ No container found with barcode {{barcode}}. +
+
+
+
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 4108a050ef..7ddfd4411f 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 @@ -29,6 +29,7 @@ export class AsnReceiveComponent implements OnInit { receiving = false; dryRun = true; receiveOnScan = false; + notFound = false; // Technically possible for one container code to match across providers. container: IdlObject; @@ -80,6 +81,7 @@ export class AsnReceiveComponent implements OnInit { } findContainer() { + this.notFound = false; this.receiving = false; this.container = null; this.containers = []; @@ -100,6 +102,8 @@ export class AsnReceiveComponent implements OnInit { if (this.receiveOnScan) { this.receiveAllItems(); } + } else if (this.containers.length === 0) { + this.notFound = true; } const node = document.getElementById('barcode-search-input'); -- 2.11.0