mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
[HIMA-1111] fixed error with postuck id scanning
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div class="shipping-document-creation" *ngIf="shippingDocumentCreationPage && loaded">
|
||||
<div class="title">
|
||||
<span>Warenbegleitschein eröffnen v1</span>
|
||||
<span>Warenbegleitschein eröffnen v2</span>
|
||||
</div>
|
||||
<div class="sub-title">
|
||||
<span class="align-center"
|
||||
|
||||
@@ -19,7 +19,6 @@ export class RemissionShippingDocumentScannerScanditComponent implements AfterVi
|
||||
public errorAccess = false;
|
||||
public errorOther = false;
|
||||
public code = '';
|
||||
lastCode;
|
||||
public ready = false;
|
||||
public webview = true;
|
||||
@Output() scan = new EventEmitter();
|
||||
@@ -115,9 +114,8 @@ export class RemissionShippingDocumentScannerScanditComponent implements AfterVi
|
||||
.subscribe(data => {
|
||||
this.code = JSON.stringify(data);
|
||||
|
||||
if (data.status === 'SUCCESS' && isNullOrUndefined(this.lastCode)) {
|
||||
if (data.status === 'SUCCESS') {
|
||||
this.code = data.data;
|
||||
this.lastCode = data.data;
|
||||
this.scan.emit(this.code);
|
||||
this.enabled = false;
|
||||
this.cdRef.detectChanges();
|
||||
|
||||
Reference in New Issue
Block a user