this.entries = [];
this.liCache = {};
+ this.gridDataSource.reset();
+
this.pcrud.search('acqsn',
{container_code: this.barcode},
{flesh: 1, flesh_fields: {acqsn: ['entries', 'provider']}}
});
} else if (this.containers.length === 0) {
this.notFound = true;
+ this.loadingContainer = false;
}
const node = document.getElementById('barcode-search-input');
}
loadContainer(): Promise<any> {
- if (!this.container) { return Promise.resolve(); }
+ if (!this.container) {
+ this.loadingContainer = false;
+ return Promise.resolve();
+ }
const entries = this.container.entries();
- if (entries.length === 0) { return Promise.resolve(); }
+ if (entries.length === 0) {
+ this.loadingContainer = false;
+ return Promise.resolve();
+ }
return this.li.getFleshedLineitems(entries.map(e => e.lineitem()), {})
.pipe(tap(li_struct => {