From: Bill Erickson Date: Thu, 3 Feb 2022 15:51:52 +0000 (-0500) Subject: LP1952931 Handle barcode not found X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=179a8e24feeacd04c2a00f2f6a7cfd6904192ba5;p=working%2FEvergreen.git LP1952931 Handle barcode not found Signed-off-by: Bill Erickson --- 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');