@hitsoft/e-donusum 1.0.76 → 1.0.78
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 +5 -5
- package/esm2020/lib/components/hit-inbound-invoices/hit-inbound-invoice.component.mjs +2 -3
- package/esm2020/lib/components/hit-invoices/hit-invoice.component.mjs +11 -12
- package/esm2020/lib/paramse-dispatches/paramse-dispatch/paramse-dispatch.module.mjs +1 -1
- package/esm2020/lib/paramse-invoices/paramse-invoice/paramse-invoice.module.mjs +1 -1
- package/esm2020/lib/proxy/auto-send-rule-doc-types/index.mjs +1 -1
- package/esm2020/lib/proxy/auto-send-rule-scenarios/index.mjs +1 -1
- package/esm2020/lib/proxy/auto-send-rules/index.mjs +1 -1
- package/esm2020/lib/proxy/document-serials/index.mjs +1 -1
- package/esm2020/lib/proxy/gib-partner-pks/index.mjs +1 -1
- package/esm2020/lib/proxy/note-rule-doc-types/index.mjs +1 -1
- package/esm2020/lib/proxy/note-rule-scenarios/index.mjs +1 -1
- package/esm2020/lib/proxy/note-rules/index.mjs +1 -1
- package/esm2020/lib/proxy/params-companies/index.mjs +1 -1
- package/esm2020/lib/proxy/params-generals/index.mjs +1 -1
- package/esm2020/lib/proxy/params-integrators/index.mjs +1 -1
- package/esm2020/lib/proxy/paramse-dispatches/index.mjs +1 -1
- package/esm2020/lib/proxy/paramse-invoices/index.mjs +1 -1
- package/esm2020/lib/proxy/xslt-formats/index.mjs +1 -1
- package/esm2020/lib/proxy/xslt-rule-doc-types/index.mjs +1 -1
- package/esm2020/lib/proxy/xslt-rule-scenarios/index.mjs +1 -1
- package/esm2020/lib/proxy/xslt-rules/index.mjs +1 -1
- package/fesm2015/hitsoft-e-donusum.mjs +16 -18
- package/fesm2015/hitsoft-e-donusum.mjs.map +1 -1
- package/fesm2020/hitsoft-e-donusum.mjs +15 -17
- package/fesm2020/hitsoft-e-donusum.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9523,22 +9523,21 @@ class HitInvoiceComponent {
|
|
|
9523
9523
|
debugger;
|
|
9524
9524
|
this.invoiceService.getInvoicePreview(record.id, record.resourceDocType).subscribe(fatura => {
|
|
9525
9525
|
const source = `data:text/html;base64,${fatura.previewHTML}`;
|
|
9526
|
-
this.hitSharedService.previewFile(fatura.previewHTML);
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
*/
|
|
9526
|
+
//this.hitSharedService.previewFile(fatura.previewHTML);
|
|
9527
|
+
const newTab = window.open();
|
|
9528
|
+
newTab.document.title = record.id;
|
|
9529
|
+
newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
|
|
9531
9530
|
});
|
|
9532
9531
|
}
|
|
9533
9532
|
getInvoiceXML(record) {
|
|
9534
9533
|
debugger;
|
|
9535
9534
|
this.invoiceService.getXMLPreview(record.id, record.resourceDocType).subscribe(fatura => {
|
|
9536
9535
|
const source = `data:${fatura.mimeType};base64,${fatura.content}`;
|
|
9537
|
-
this.hitSharedService.previewFile(fatura.content);
|
|
9538
|
-
|
|
9536
|
+
//this.hitSharedService.previewFile(fatura.content);
|
|
9537
|
+
const link = document.createElement('a');
|
|
9539
9538
|
link.href = source;
|
|
9540
9539
|
link.download = `${fatura.filename}`;
|
|
9541
|
-
link.click()
|
|
9540
|
+
link.click();
|
|
9542
9541
|
});
|
|
9543
9542
|
}
|
|
9544
9543
|
getReceiverResponseName(responseId) {
|
|
@@ -9566,11 +9565,11 @@ class HitInvoiceComponent {
|
|
|
9566
9565
|
DownloadFile(record) {
|
|
9567
9566
|
this.invoiceService.downloadFileById(record.contentMasterId).subscribe(item => {
|
|
9568
9567
|
const source = `data:${item.mimeType};base64,${item.content}`;
|
|
9569
|
-
this.hitSharedService.previewFile(item.content);
|
|
9570
|
-
|
|
9568
|
+
//this.hitSharedService.previewFile(item.content);
|
|
9569
|
+
const link = document.createElement('a');
|
|
9571
9570
|
link.href = source;
|
|
9572
9571
|
link.download = `${item.filename}`;
|
|
9573
|
-
link.click()
|
|
9572
|
+
link.click();
|
|
9574
9573
|
});
|
|
9575
9574
|
}
|
|
9576
9575
|
}
|
|
@@ -10571,9 +10570,8 @@ class HitInboundInvoiceComponent {
|
|
|
10571
10570
|
this.partnerAvailableStates = [];
|
|
10572
10571
|
}
|
|
10573
10572
|
buildFormForDocument() {
|
|
10574
|
-
console.log(this.branchesDataSource);
|
|
10575
10573
|
this.formDocument = this.formBuilderForDocument.group({
|
|
10576
|
-
selectedBranch: this.branchesDataSource
|
|
10574
|
+
selectedBranch: this.branchesDataSource?.filter(p => p.isMain)[0].code ?? ""
|
|
10577
10575
|
});
|
|
10578
10576
|
}
|
|
10579
10577
|
openDraftForm(record) {
|
|
@@ -11318,10 +11316,10 @@ class HitDespatchComponent {
|
|
|
11318
11316
|
getDespatchView(record) {
|
|
11319
11317
|
this.service.getDespatchView(record.uuId).subscribe(item => {
|
|
11320
11318
|
const source = `data:${item.mimeType};base64,${item.content}`;
|
|
11321
|
-
const newTab = window.open();
|
|
11322
|
-
newTab.document.title = record.id
|
|
11323
|
-
newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
|
|
11324
|
-
|
|
11319
|
+
// const newTab = window.open();
|
|
11320
|
+
// newTab.document.title = record.id
|
|
11321
|
+
// newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
|
|
11322
|
+
this.hitSharedService.previewFile(item.content);
|
|
11325
11323
|
/*const link = document.createElement('a');
|
|
11326
11324
|
link.href = source;
|
|
11327
11325
|
link.download = `${item.filename}`;
|