shareneus 1.7.11 → 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.
@@ -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 No', value: (0, pdf_shared_utils_1.firstValue)(ChassisNo) },
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);
@@ -67,9 +67,9 @@ function buildTopSectionColumns(taxSummary, sType, showBankDetails, bankDetails,
67
67
  const inWords = totalInWords || '-';
68
68
  if (taxSummary.hasData) {
69
69
  return [
70
- { width: '40%', stack: buildTaxSummaryTableStack(null, taxSummary.rows, sType), marginTop: 2 },
71
- { width: '35%', stack: showBankDetails ? buildInfoCardStack('Bank Details', bankDetails.lines) : [{ text: '' }] },
72
- { width: '25%', stack: buildInfoCardStack(null, totals.lines, { rightAlign: true }) }
70
+ { width: '42%', stack: buildTaxSummaryTableStack(null, taxSummary.rows, sType), marginTop: 2 },
71
+ { width: '28%', stack: showBankDetails ? buildInfoCardStack('Bank Details', bankDetails.lines) : [{ text: '' }] },
72
+ { width: '30%', stack: buildInfoCardStack(null, totals.lines, { rightAlign: true }) }
73
73
  ];
74
74
  }
75
75
  if (showBankDetails) {
@@ -372,7 +372,7 @@ function buildInfoCardStack(title, lines, options = {}) {
372
372
  ...(heading ? [{
373
373
  text: heading,
374
374
  bold: true,
375
- fontSize: 8,
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: 7, color: '#111827', alignment: isRightAlign ? 'right' : 'left' },
387
- { text: ':', bold: true, fontSize: 7, color: '#111827', alignment: 'center' },
388
- { text: displayValue, fontSize: 7, 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.11",
3
+ "version": "1.7.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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 No', value: firstValue(ChassisNo) },
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);
@@ -91,9 +91,9 @@ function buildTopSectionColumns(
91
91
 
92
92
  if (taxSummary.hasData) {
93
93
  return [
94
- { width: '40%', stack: buildTaxSummaryTableStack(null, taxSummary.rows, sType), marginTop: 2 },
95
- { width: '35%', stack: showBankDetails ? buildInfoCardStack('Bank Details', bankDetails.lines) : [{ text: '' }] },
96
- { width: '25%', stack: buildInfoCardStack(null, totals.lines, { rightAlign: true }) }
94
+ { width: '42%', stack: buildTaxSummaryTableStack(null, taxSummary.rows, sType), marginTop: 2 },
95
+ { width: '28%', stack: showBankDetails ? buildInfoCardStack('Bank Details', bankDetails.lines) : [{ text: '' }] },
96
+ { width: '30%', stack: buildInfoCardStack(null, totals.lines, { rightAlign: true }) }
97
97
  ];
98
98
  }
99
99
 
@@ -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: 8,
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: 7, color: '#111827', alignment: isRightAlign ? 'right' : 'left' },
476
- { text: ':', bold: true, fontSize: 7, color: '#111827', alignment: 'center' },
477
- { text: displayValue, fontSize: 7, 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
  },