@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
|
@@ -9570,13 +9570,14 @@ class HitInvoiceComponent {
|
|
|
9570
9570
|
this.isFileModalOpen = true;
|
|
9571
9571
|
}
|
|
9572
9572
|
getInvoicePreview(record) {
|
|
9573
|
-
debugger;
|
|
9574
9573
|
this.invoiceService.getInvoicePreview(record.id, record.resourceDocType).subscribe(fatura => {
|
|
9575
|
-
const
|
|
9576
|
-
|
|
9574
|
+
const bytes = Uint8Array.from(atob(fatura.previewHTML), c => c.charCodeAt(0));
|
|
9575
|
+
const htmlContent = new TextDecoder('utf-8').decode(bytes);
|
|
9577
9576
|
const newTab = window.open();
|
|
9577
|
+
newTab.document.open();
|
|
9578
|
+
newTab.document.write(htmlContent);
|
|
9579
|
+
newTab.document.close();
|
|
9578
9580
|
newTab.document.title = record.id;
|
|
9579
|
-
newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
|
|
9580
9581
|
});
|
|
9581
9582
|
}
|
|
9582
9583
|
getInvoiceXML(record) {
|
|
@@ -12178,10 +12179,13 @@ class HitFailedInvoiceComponent {
|
|
|
12178
12179
|
}
|
|
12179
12180
|
getInvoicePreview(record) {
|
|
12180
12181
|
this.invoiceService.getInvoicePreview(record.id, record.resourceDocType).subscribe(fatura => {
|
|
12181
|
-
const
|
|
12182
|
+
const bytes = Uint8Array.from(atob(fatura.previewHTML), c => c.charCodeAt(0));
|
|
12183
|
+
const htmlContent = new TextDecoder('utf-8').decode(bytes);
|
|
12182
12184
|
const newTab = window.open();
|
|
12185
|
+
newTab.document.open();
|
|
12186
|
+
newTab.document.write(htmlContent);
|
|
12187
|
+
newTab.document.close();
|
|
12183
12188
|
newTab.document.title = record.id;
|
|
12184
|
-
newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
|
|
12185
12189
|
});
|
|
12186
12190
|
}
|
|
12187
12191
|
requeueInvoiceSingle(record) {
|