[HIMA-1111] fixed error with postuck id scanning

This commit is contained in:
Eraldo Hasanaj
2020-02-27 11:55:48 +01:00
parent 14eaf06daa
commit 9839925e4d
2 changed files with 2 additions and 4 deletions

View File

@@ -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"

View File

@@ -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();