From: Bill Erickson Date: Tue, 7 Dec 2021 23:10:21 +0000 (-0500) Subject: LP1952931 ASN receiving UI X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b06a848ec1c9476f2d5abc37b6e92cff04e8a1f3;p=working%2FEvergreen.git LP1952931 ASN receiving UI 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 567fc0417d..828dc61ce4 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 @@ -1,17 +1,31 @@ -
-
-
- Container Barcode: -
- -
- +
+
+
+
+ Container Barcode: +
+ +
+ +
+
+ +
+
+
{{container.container_code()}}
+
{{container.provider().name()}}
+
{{container.recv_date() | date:'short'}}
+
{{container.lading_number()}}
+
{{container.note()}}
+
+
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 5d25969b01..cb534990bb 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 @@ -1,20 +1,38 @@ import {Component, OnInit} from '@angular/core'; import {Router, ActivatedRoute, ParamMap} from '@angular/router'; import {IdlObject} from '@eg/core/idl.service'; +import {PcrudService} from '@eg/core/pcrud.service'; +import {LineitemService} from '../lineitem/lineitem.service'; @Component({ templateUrl: 'receive.component.html' }) export class AsnReceiveComponent implements OnInit { + barcode = ''; + + // Technically possible for one barcode to match across providers. + containers: IdlObject[] = []; + constructor( private route: ActivatedRoute, + private pcrud: PcrudService, + private li: LineitemService ) {} ngOnInit() { } findContainer() { + + console.log('BARCODE', this.barcode); + + this.containers = []; + + this.pcrud.search('acqsn', + {container_code: this.barcode}, + {flesh: 1, flesh_fields: {acqsn: ['entries', 'provider']}} + ).subscribe(sn => this.containers.push(sn)); } }