@hitsoft/e-donusum 1.0.120 → 1.0.121
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-failed-invoices/hit-failed-invoice.component.mjs +6 -3
- package/esm2020/lib/components/hit-invoices/hit-invoice.component.mjs +6 -5
- package/fesm2015/hitsoft-e-donusum.mjs +10 -6
- package/fesm2015/hitsoft-e-donusum.mjs.map +1 -1
- package/fesm2020/hitsoft-e-donusum.mjs +10 -6
- package/fesm2020/hitsoft-e-donusum.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9431,13 +9431,14 @@ class HitInvoiceComponent {
|
|
|
9431
9431
|
this.isFileModalOpen = true;
|
|
9432
9432
|
}
|
|
9433
9433
|
getInvoicePreview(record) {
|
|
9434
|
-
debugger;
|
|
9435
9434
|
this.invoiceService.getInvoicePreview(record.id, record.resourceDocType).subscribe(fatura => {
|
|
9436
|
-
const
|
|
9437
|
-
|
|
9435
|
+
const bytes = Uint8Array.from(atob(fatura.previewHTML), c => c.charCodeAt(0));
|
|
9436
|
+
const htmlContent = new TextDecoder('utf-8').decode(bytes);
|
|
9438
9437
|
const newTab = window.open();
|
|
9438
|
+
newTab.document.open();
|
|
9439
|
+
newTab.document.write(htmlContent);
|
|
9440
|
+
newTab.document.close();
|
|
9439
9441
|
newTab.document.title = record.id;
|
|
9440
|
-
newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
|
|
9441
9442
|
});
|
|
9442
9443
|
}
|
|
9443
9444
|
getInvoiceXML(record) {
|
|
@@ -12049,10 +12050,13 @@ class HitFailedInvoiceComponent {
|
|
|
12049
12050
|
}
|
|
12050
12051
|
getInvoicePreview(record) {
|
|
12051
12052
|
this.invoiceService.getInvoicePreview(record.id, record.resourceDocType).subscribe(fatura => {
|
|
12052
|
-
const
|
|
12053
|
+
const bytes = Uint8Array.from(atob(fatura.previewHTML), c => c.charCodeAt(0));
|
|
12054
|
+
const htmlContent = new TextDecoder('utf-8').decode(bytes);
|
|
12053
12055
|
const newTab = window.open();
|
|
12056
|
+
newTab.document.open();
|
|
12057
|
+
newTab.document.write(htmlContent);
|
|
12058
|
+
newTab.document.close();
|
|
12054
12059
|
newTab.document.title = record.id;
|
|
12055
|
-
newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
|
|
12056
12060
|
});
|
|
12057
12061
|
}
|
|
12058
12062
|
requeueInvoiceSingle(record) {
|