@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.
- package/esm2020/lib/components/hit-despatches/hit-despatch.component.mjs +3 -5
- package/esm2020/lib/components/hit-inbound-invoices/hit-inbound-invoice.component.mjs +2 -6
- package/esm2020/lib/components/hit-invoices/hit-invoice.component.mjs +2 -2
- package/fesm2015/hitsoft-e-donusum.mjs +4 -10
- package/fesm2015/hitsoft-e-donusum.mjs.map +1 -1
- package/fesm2020/hitsoft-e-donusum.mjs +4 -10
- package/fesm2020/hitsoft-e-donusum.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9530,7 +9530,7 @@ class HitInvoiceComponent {
|
|
|
9530
9530
|
newTab.document.open();
|
|
9531
9531
|
newTab.document.write(htmlContent);
|
|
9532
9532
|
newTab.document.close();
|
|
9533
|
-
newTab.document.title = record.id;
|
|
9533
|
+
newTab.document.title = record.invoiceId || record.id;
|
|
9534
9534
|
});
|
|
9535
9535
|
}
|
|
9536
9536
|
getInvoiceXML(record) {
|
|
@@ -10658,11 +10658,7 @@ class HitInboundInvoiceComponent {
|
|
|
10658
10658
|
debugger;
|
|
10659
10659
|
this.service.getInboundInvoiceView(record.uuId).subscribe(item => {
|
|
10660
10660
|
const source = `data:${item.mimeType};base64,${item.content}`;
|
|
10661
|
-
this.hitSharedService.previewFile(item.content);
|
|
10662
|
-
/*const link = document.createElement('a');
|
|
10663
|
-
link.href = source;
|
|
10664
|
-
link.download = `${item.filename}`;
|
|
10665
|
-
link.click();*/
|
|
10661
|
+
this.hitSharedService.previewFile(item.content, record.invoiceId || item.filename);
|
|
10666
10662
|
});
|
|
10667
10663
|
}
|
|
10668
10664
|
openResponseModal(record) {
|
|
@@ -11624,9 +11620,8 @@ class HitDespatchComponent {
|
|
|
11624
11620
|
debugger;
|
|
11625
11621
|
this.service.getDespatchPreview(record.id, record.resourceDocType).subscribe(fatura => {
|
|
11626
11622
|
const source = `data:text/html;base64,${fatura.previewHTML}`;
|
|
11627
|
-
//this.hitSharedService.previewFile(btoa(unescape(encodeURIComponent(fatura.previewHTML))));
|
|
11628
11623
|
const newTab = window.open();
|
|
11629
|
-
newTab.document.title = record.id;
|
|
11624
|
+
newTab.document.title = record.despatchId || record.id;
|
|
11630
11625
|
newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
|
|
11631
11626
|
});
|
|
11632
11627
|
}
|
|
@@ -11741,9 +11736,8 @@ class HitDespatchComponent {
|
|
|
11741
11736
|
debugger;
|
|
11742
11737
|
this.service.getReceiptAdvicePreview(record.id).subscribe(despatch => {
|
|
11743
11738
|
const source = `data:text/html;base64,${despatch.previewHTML}`;
|
|
11744
|
-
//this.hitSharedService.previewFile(despatch.previewHTML);
|
|
11745
11739
|
const newTab = window.open();
|
|
11746
|
-
newTab.document.title = record.id;
|
|
11740
|
+
newTab.document.title = record.despatchId || record.id;
|
|
11747
11741
|
newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
|
|
11748
11742
|
});
|
|
11749
11743
|
}
|