shareneus 1.5.84 → 1.5.85

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.
@@ -35,6 +35,7 @@ function buildInvoiceTotalsAndNotesSection(invoiceData, availableWidth, PrintCon
35
35
  columnGap: 20,
36
36
  margin: [0, 0, 0, 8]
37
37
  };
38
+ console.log('Top Columns:', topColumns);
38
39
  const bottomColumns = buildPostTotalsInfoSection({
39
40
  totalInWords,
40
41
  notes,
@@ -44,6 +45,7 @@ function buildInvoiceTotalsAndNotesSection(invoiceData, availableWidth, PrintCon
44
45
  qrPayload,
45
46
  showDueSection
46
47
  });
48
+ console.log('Bottom Columns:', bottomColumns);
47
49
  if (hasTopSection && hasBottomSection) {
48
50
  return [dividerLine, topColumns, bottomColumns];
49
51
  }
@@ -71,6 +73,7 @@ function buildTopSectionColumns(taxSummary, showBankDetails, bankDetails, totals
71
73
  ];
72
74
  }
73
75
  function buildPostTotalsInfoSection(data) {
76
+ console.log('Building Post Totals Info Section with data:', data);
74
77
  const hasQr = !!(0, pdf_shared_utils_1.firstValue)(data.qrPayload);
75
78
  const inWords = data.totalInWords || '-';
76
79
  const termsText = (0, pdf_shared_utils_1.firstValue)(data.terms);
@@ -433,7 +436,7 @@ function shouldShowDueSection(printConfigData = {}) {
433
436
  return false;
434
437
  }
435
438
  const normalizedType = String(type).trim().toLowerCase();
436
- return normalizedType === 'Invoice' || normalizedType === 'Bill';
439
+ return normalizedType === 'invoice' || normalizedType === 'bill';
437
440
  }
438
441
  function isTruthy(value) {
439
442
  if (typeof value === 'boolean') {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.5.84",
3
+ "version": "1.5.85",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "scripts": {
8
- "build": "tsc"
9
- },
7
+ "scripts": {
8
+ "build": "tsc"
9
+ },
10
10
  "keywords": [],
11
11
  "author": "",
12
12
  "license": "ISC",