shareneus 1.7.12 → 1.7.13
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/shared/party-details-section/pdf-party-details.section.js +1 -1
- package/dist/shared/totals-section/pdf-totals.section.js +4 -4
- package/package.json +1 -1
- package/src/shared/party-details-section/pdf-party-details.section.ts +1 -1
- package/src/shared/totals-section/pdf-totals.section.ts +4 -4
|
@@ -240,7 +240,7 @@ function resolveOtherDetails(transactionData, printConfig = {}) {
|
|
|
240
240
|
{ label: 'Vehicle', value: vehicleDetails },
|
|
241
241
|
{ label: 'Regn. No', value: (0, pdf_shared_utils_1.firstValue)(RegnNo) },
|
|
242
242
|
{ label: 'Engine No', value: (0, pdf_shared_utils_1.firstValue)(EngNo) },
|
|
243
|
-
{ label: 'Chassis
|
|
243
|
+
{ label: 'Chassis', value: (0, pdf_shared_utils_1.firstValue)(ChassisNo) },
|
|
244
244
|
{ label: 'Milage', value: Milage },
|
|
245
245
|
...(shouldShowDoctorName ? [{ label: 'Doctor Name', value: DoctorName }] : [])
|
|
246
246
|
].filter((line) => !!line.value);
|
|
@@ -372,7 +372,7 @@ function buildInfoCardStack(title, lines, options = {}) {
|
|
|
372
372
|
...(heading ? [{
|
|
373
373
|
text: heading,
|
|
374
374
|
bold: true,
|
|
375
|
-
fontSize: 7,
|
|
375
|
+
fontSize: (heading === 'Bank Details') ? 7 : 9,
|
|
376
376
|
color: '#374151',
|
|
377
377
|
margin: [0, 0, 0, 4],
|
|
378
378
|
alignment: isRightAlign ? 'right' : 'left'
|
|
@@ -383,9 +383,9 @@ function buildInfoCardStack(title, lines, options = {}) {
|
|
|
383
383
|
body: (body.length > 0 ? body : [{ label: '', value: '-' }]).map((line) => {
|
|
384
384
|
const displayValue = hasDisplayValue(line === null || line === void 0 ? void 0 : line.value) ? String(line.value) : '-';
|
|
385
385
|
return [
|
|
386
|
-
{ text: line.label || '', bold: true, fontSize: 6, color: '#111827', alignment: isRightAlign ? 'right' : 'left' },
|
|
387
|
-
{ text: ':', bold: true, fontSize: 6, color: '#111827', alignment: 'center' },
|
|
388
|
-
{ text: displayValue, fontSize: 6, color: '#111827', alignment: isRightAlign ? 'right' : 'left' }
|
|
386
|
+
{ text: line.label || '', bold: true, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: isRightAlign ? 'right' : 'left' },
|
|
387
|
+
{ text: ':', bold: true, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: 'center' },
|
|
388
|
+
{ text: displayValue, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: isRightAlign ? 'right' : 'left' }
|
|
389
389
|
];
|
|
390
390
|
})
|
|
391
391
|
},
|
package/package.json
CHANGED
|
@@ -299,7 +299,7 @@ function resolveOtherDetails(transactionData: any, printConfig: any = {}) {
|
|
|
299
299
|
{ label: 'Vehicle', value: vehicleDetails },
|
|
300
300
|
{ label: 'Regn. No', value: firstValue(RegnNo) },
|
|
301
301
|
{ label: 'Engine No', value: firstValue(EngNo) },
|
|
302
|
-
{ label: 'Chassis
|
|
302
|
+
{ label: 'Chassis', value: firstValue(ChassisNo) },
|
|
303
303
|
{ label: 'Milage', value: Milage },
|
|
304
304
|
...(shouldShowDoctorName ? [{ label: 'Doctor Name', value: DoctorName }] : [])
|
|
305
305
|
].filter((line) => !!line.value);
|
|
@@ -461,7 +461,7 @@ function buildInfoCardStack(title: string | null, lines: Array<{ label: string;
|
|
|
461
461
|
...(heading ? [{
|
|
462
462
|
text: heading,
|
|
463
463
|
bold: true,
|
|
464
|
-
fontSize: 7,
|
|
464
|
+
fontSize: (heading === 'Bank Details') ? 7 : 9,
|
|
465
465
|
color: '#374151',
|
|
466
466
|
margin: [0, 0, 0, 4],
|
|
467
467
|
alignment: isRightAlign ? 'right' : 'left'
|
|
@@ -472,9 +472,9 @@ function buildInfoCardStack(title: string | null, lines: Array<{ label: string;
|
|
|
472
472
|
body: (body.length > 0 ? body : [{ label: '', value: '-' }]).map((line: any) => {
|
|
473
473
|
const displayValue = hasDisplayValue(line?.value) ? String(line.value) : '-';
|
|
474
474
|
return [
|
|
475
|
-
{ text: line.label || '', bold: true, fontSize: 6, color: '#111827', alignment: isRightAlign ? 'right' : 'left' },
|
|
476
|
-
{ text: ':', bold: true, fontSize: 6, color: '#111827', alignment: 'center' },
|
|
477
|
-
{ text: displayValue, fontSize: 6, color: '#111827', alignment: isRightAlign ? 'right' : 'left' }
|
|
475
|
+
{ text: line.label || '', bold: true, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: isRightAlign ? 'right' : 'left' },
|
|
476
|
+
{ text: ':', bold: true, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: 'center' },
|
|
477
|
+
{ text: displayValue, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: isRightAlign ? 'right' : 'left' }
|
|
478
478
|
];
|
|
479
479
|
})
|
|
480
480
|
},
|