@hitsoft/e-donusum 1.0.124-test → 1.0.125-test

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9393,7 +9393,7 @@ class HitInvoiceComponent {
9393
9393
  newTab.document.open();
9394
9394
  newTab.document.write(htmlContent);
9395
9395
  newTab.document.close();
9396
- newTab.document.title = record.id;
9396
+ newTab.document.title = record.invoiceId || record.id;
9397
9397
  });
9398
9398
  }
9399
9399
  getInvoiceXML(record) {
@@ -10524,11 +10524,7 @@ class HitInboundInvoiceComponent {
10524
10524
  debugger;
10525
10525
  this.service.getInboundInvoiceView(record.uuId).subscribe(item => {
10526
10526
  const source = `data:${item.mimeType};base64,${item.content}`;
10527
- this.hitSharedService.previewFile(item.content);
10528
- /*const link = document.createElement('a');
10529
- link.href = source;
10530
- link.download = `${item.filename}`;
10531
- link.click();*/
10527
+ this.hitSharedService.previewFile(item.content, record.invoiceId || item.filename);
10532
10528
  });
10533
10529
  }
10534
10530
  openResponseModal(record) {
@@ -11497,9 +11493,8 @@ class HitDespatchComponent {
11497
11493
  debugger;
11498
11494
  this.service.getDespatchPreview(record.id, record.resourceDocType).subscribe(fatura => {
11499
11495
  const source = `data:text/html;base64,${fatura.previewHTML}`;
11500
- //this.hitSharedService.previewFile(btoa(unescape(encodeURIComponent(fatura.previewHTML))));
11501
11496
  const newTab = window.open();
11502
- newTab.document.title = record.id;
11497
+ newTab.document.title = record.despatchId || record.id;
11503
11498
  newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
11504
11499
  });
11505
11500
  }
@@ -11614,9 +11609,8 @@ class HitDespatchComponent {
11614
11609
  debugger;
11615
11610
  this.service.getReceiptAdvicePreview(record.id).subscribe(despatch => {
11616
11611
  const source = `data:text/html;base64,${despatch.previewHTML}`;
11617
- //this.hitSharedService.previewFile(despatch.previewHTML);
11618
11612
  const newTab = window.open();
11619
- newTab.document.title = record.id;
11613
+ newTab.document.title = record.despatchId || record.id;
11620
11614
  newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
11621
11615
  });
11622
11616
  }