shareneus 1.7.25 → 1.7.26
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/dist/accounting/payment-receive/payment-receipt-pdf/receipt-pdf.service.d.ts +8 -12
- package/dist/shared/header-footer-section/pdf-header-footer.section.d.ts +2 -3
- package/dist/shared/header-footer-section/pdf-header-footer.section.js +5 -4
- package/package.json +1 -1
- package/src/shared/header-footer-section/pdf-header-footer.section.ts +5 -4
|
@@ -36,7 +36,7 @@ export declare function CreateReceiptPDFService(DocumentData?: any, PrintConfigD
|
|
|
36
36
|
margin: number[];
|
|
37
37
|
width: number;
|
|
38
38
|
image: string;
|
|
39
|
-
|
|
39
|
+
height: number;
|
|
40
40
|
stack?: undefined;
|
|
41
41
|
})[];
|
|
42
42
|
columnGap: number;
|
|
@@ -46,8 +46,7 @@ export declare function CreateReceiptPDFService(DocumentData?: any, PrintConfigD
|
|
|
46
46
|
columns: ({
|
|
47
47
|
width: number;
|
|
48
48
|
image: string;
|
|
49
|
-
|
|
50
|
-
margin: number[];
|
|
49
|
+
height: number;
|
|
51
50
|
} | {
|
|
52
51
|
width: string;
|
|
53
52
|
marginLeft: number;
|
|
@@ -298,7 +297,7 @@ export declare function DownloadReceiptPDFService(filename?: string, DocumentDat
|
|
|
298
297
|
margin: number[];
|
|
299
298
|
width: number;
|
|
300
299
|
image: string;
|
|
301
|
-
|
|
300
|
+
height: number;
|
|
302
301
|
stack?: undefined;
|
|
303
302
|
})[];
|
|
304
303
|
columnGap: number;
|
|
@@ -308,8 +307,7 @@ export declare function DownloadReceiptPDFService(filename?: string, DocumentDat
|
|
|
308
307
|
columns: ({
|
|
309
308
|
width: number;
|
|
310
309
|
image: string;
|
|
311
|
-
|
|
312
|
-
margin: number[];
|
|
310
|
+
height: number;
|
|
313
311
|
} | {
|
|
314
312
|
width: string;
|
|
315
313
|
marginLeft: number;
|
|
@@ -560,7 +558,7 @@ export declare function GetReceiptPdfDataUrl(DocumentData?: any, PrintConfigData
|
|
|
560
558
|
margin: number[];
|
|
561
559
|
width: number;
|
|
562
560
|
image: string;
|
|
563
|
-
|
|
561
|
+
height: number;
|
|
564
562
|
stack?: undefined;
|
|
565
563
|
})[];
|
|
566
564
|
columnGap: number;
|
|
@@ -570,8 +568,7 @@ export declare function GetReceiptPdfDataUrl(DocumentData?: any, PrintConfigData
|
|
|
570
568
|
columns: ({
|
|
571
569
|
width: number;
|
|
572
570
|
image: string;
|
|
573
|
-
|
|
574
|
-
margin: number[];
|
|
571
|
+
height: number;
|
|
575
572
|
} | {
|
|
576
573
|
width: string;
|
|
577
574
|
marginLeft: number;
|
|
@@ -822,7 +819,7 @@ export declare function buildPdfDocDefinition(DocumentData?: any, PrintConfigDat
|
|
|
822
819
|
margin: number[];
|
|
823
820
|
width: number;
|
|
824
821
|
image: string;
|
|
825
|
-
|
|
822
|
+
height: number;
|
|
826
823
|
stack?: undefined;
|
|
827
824
|
})[];
|
|
828
825
|
columnGap: number;
|
|
@@ -832,8 +829,7 @@ export declare function buildPdfDocDefinition(DocumentData?: any, PrintConfigDat
|
|
|
832
829
|
columns: ({
|
|
833
830
|
width: number;
|
|
834
831
|
image: string;
|
|
835
|
-
|
|
836
|
-
margin: number[];
|
|
832
|
+
height: number;
|
|
837
833
|
} | {
|
|
838
834
|
width: string;
|
|
839
835
|
marginLeft: number;
|
|
@@ -73,7 +73,7 @@ export declare function buildDocumentHeaderSection(PrintConfig: any, DocumentDat
|
|
|
73
73
|
margin: number[];
|
|
74
74
|
width: number;
|
|
75
75
|
image: string;
|
|
76
|
-
|
|
76
|
+
height: number;
|
|
77
77
|
stack?: undefined;
|
|
78
78
|
})[];
|
|
79
79
|
columnGap: number;
|
|
@@ -83,8 +83,7 @@ export declare function buildDocumentHeaderSection(PrintConfig: any, DocumentDat
|
|
|
83
83
|
columns: ({
|
|
84
84
|
width: number;
|
|
85
85
|
image: string;
|
|
86
|
-
|
|
87
|
-
margin: number[];
|
|
86
|
+
height: number;
|
|
88
87
|
} | {
|
|
89
88
|
width: string;
|
|
90
89
|
marginLeft: number;
|
|
@@ -167,7 +167,7 @@ function buildDocumentHeadingSection(PDFInvoiceData, PrintConfig, availableWidth
|
|
|
167
167
|
{
|
|
168
168
|
text: headingText,
|
|
169
169
|
bold: true,
|
|
170
|
-
fontSize:
|
|
170
|
+
fontSize: 14,
|
|
171
171
|
alignment: 'center',
|
|
172
172
|
margin: [0, 0, 0, 4]
|
|
173
173
|
},
|
|
@@ -424,13 +424,14 @@ function buildHeaderContentWithLogo(logoDataUrl, hasLogo, organizationStack, log
|
|
|
424
424
|
const logoBlock = {
|
|
425
425
|
width: 120,
|
|
426
426
|
image: logoDataUrl,
|
|
427
|
-
fit: [80, 80],
|
|
428
|
-
|
|
427
|
+
// fit: [80, 80],
|
|
428
|
+
height: 80,
|
|
429
|
+
// margin: [0, 2, 6, 0]
|
|
429
430
|
};
|
|
430
431
|
if (logoPosition === 'Top') {
|
|
431
432
|
return {
|
|
432
433
|
stack: [
|
|
433
|
-
{ image: logoDataUrl, fit: [
|
|
434
|
+
{ image: logoDataUrl, fit: [72, 72], alignment: textAlignment, margin: [0, 2, 0, 6] },
|
|
434
435
|
...safeOrganizationStack
|
|
435
436
|
]
|
|
436
437
|
};
|
package/package.json
CHANGED
|
@@ -190,7 +190,7 @@ export function buildDocumentHeadingSection(PDFInvoiceData: any, PrintConfig: an
|
|
|
190
190
|
{
|
|
191
191
|
text: headingText,
|
|
192
192
|
bold: true,
|
|
193
|
-
fontSize:
|
|
193
|
+
fontSize: 14,
|
|
194
194
|
alignment: 'center',
|
|
195
195
|
margin: [0, 0, 0, 4]
|
|
196
196
|
},
|
|
@@ -484,14 +484,15 @@ function buildHeaderContentWithLogo(
|
|
|
484
484
|
const logoBlock = {
|
|
485
485
|
width: 120,
|
|
486
486
|
image: logoDataUrl,
|
|
487
|
-
fit: [80, 80],
|
|
488
|
-
|
|
487
|
+
// fit: [80, 80],
|
|
488
|
+
height:80,
|
|
489
|
+
// margin: [0, 2, 6, 0]
|
|
489
490
|
};
|
|
490
491
|
|
|
491
492
|
if (logoPosition === 'Top') {
|
|
492
493
|
return {
|
|
493
494
|
stack: [
|
|
494
|
-
{ image: logoDataUrl, fit: [
|
|
495
|
+
{ image: logoDataUrl, fit: [72, 72], alignment: textAlignment, margin: [0, 2, 0, 6] },
|
|
495
496
|
...safeOrganizationStack
|
|
496
497
|
]
|
|
497
498
|
};
|