shareneus 1.7.24 → 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 +6 -5
- package/package.json +1 -1
- package/src/shared/header-footer-section/pdf-header-footer.section.ts +6 -5
|
@@ -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
|
},
|
|
@@ -422,10 +422,11 @@ function buildHeaderContentWithLogo(logoDataUrl, hasLogo, organizationStack, log
|
|
|
422
422
|
return { stack: safeOrganizationStack };
|
|
423
423
|
}
|
|
424
424
|
const logoBlock = {
|
|
425
|
-
width:
|
|
425
|
+
width: 120,
|
|
426
426
|
image: logoDataUrl,
|
|
427
|
-
fit: [
|
|
428
|
-
|
|
427
|
+
// fit: [80, 80],
|
|
428
|
+
height: 80,
|
|
429
|
+
// margin: [0, 2, 6, 0]
|
|
429
430
|
};
|
|
430
431
|
if (logoPosition === 'Top') {
|
|
431
432
|
return {
|
|
@@ -452,7 +453,7 @@ function buildHeaderContentWithLogo(logoDataUrl, hasLogo, organizationStack, log
|
|
|
452
453
|
logoBlock,
|
|
453
454
|
{
|
|
454
455
|
width: '*',
|
|
455
|
-
marginLeft: -90,
|
|
456
|
+
marginLeft: textAlignment === 'center' ? -90 : 0,
|
|
456
457
|
stack: safeOrganizationStack
|
|
457
458
|
}
|
|
458
459
|
],
|
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
|
},
|
|
@@ -482,10 +482,11 @@ function buildHeaderContentWithLogo(
|
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
const logoBlock = {
|
|
485
|
-
width:
|
|
485
|
+
width: 120,
|
|
486
486
|
image: logoDataUrl,
|
|
487
|
-
fit: [
|
|
488
|
-
|
|
487
|
+
// fit: [80, 80],
|
|
488
|
+
height:80,
|
|
489
|
+
// margin: [0, 2, 6, 0]
|
|
489
490
|
};
|
|
490
491
|
|
|
491
492
|
if (logoPosition === 'Top') {
|
|
@@ -518,7 +519,7 @@ function buildHeaderContentWithLogo(
|
|
|
518
519
|
logoBlock,
|
|
519
520
|
{
|
|
520
521
|
width: '*',
|
|
521
|
-
marginLeft: -90,
|
|
522
|
+
marginLeft: textAlignment === 'center' ? -90 : 0,
|
|
522
523
|
stack: safeOrganizationStack
|
|
523
524
|
}
|
|
524
525
|
],
|