shareneus 1.6.93 → 1.6.94

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.
@@ -33,7 +33,7 @@ function buildInvoiceTotalsAndNotesSection(invoiceData, availableWidth, PrintCon
33
33
  canvas: [
34
34
  { type: 'line', x1: 0, y1: 0, x2: Math.max(1, availableWidth), y2: 0, lineWidth: 1, lineColor: '#1f2937' }
35
35
  ],
36
- margin: [0, 10, 0, 10]
36
+ margin: [0, 5, 0, 5]
37
37
  };
38
38
  const topColumns = {
39
39
  columns: buildTopSectionColumns(taxSummary, sType, showBankDetails, bankDetails, totals),
@@ -180,7 +180,7 @@ function buildSignatureSection(PrintConfig, invoiceData, availableWidth) {
180
180
  { width: '*', text: '' },
181
181
  { width: '*', text: `For ${companyName || ''}`.trim(), fontSize: 9, bold: true, color: '#111827', alignment: 'right' }
182
182
  ],
183
- margin: [0, 8, 0, 0]
183
+ margin: [0, 4, 0, 0]
184
184
  }
185
185
  ];
186
186
  if (!isPoSPrint) {
@@ -213,7 +213,7 @@ function buildGatePassSection(companyName, invoiceData, availableWidth) {
213
213
  canvas: [
214
214
  { type: 'line', x1: 0, y1: 0, x2: Math.max(1, availableWidth), y2: 0, lineWidth: 1, lineColor: '#1f2937' }
215
215
  ],
216
- margin: [0, 10, 0, 10]
216
+ margin: [0, 5, 0, 5]
217
217
  };
218
218
  return [
219
219
  {
@@ -534,7 +534,6 @@ function resolveTotals(invoiceData, totalTax, printConfigData = {}) {
534
534
  ? itemsDiscount + servicesDiscount + overallDiscount
535
535
  : (0, pdf_table_section_1.readNumericValue)(invoiceData, ['Disc', 'Discount', 'TotDisc']);
536
536
  const roundOff = (0, pdf_table_section_1.readNumericValue)(invoiceData, ['Round', 'RoundOff']);
537
- console.log('invoiceData', invoiceData);
538
537
  const taxFromInvoice = (0, pdf_table_section_1.readNumericValue)(invoiceData, ['TotalTax', 'TaxTotal', 'TaxAmt', 'GSTTotal', 'CustItemITax']);
539
538
  const totalTaxValue = taxFromInvoice !== 0 ? taxFromInvoice : totalTax;
540
539
  const returnTotal = (0, pdf_shared_utils_1.firstValue)(invoiceData === null || invoiceData === void 0 ? void 0 : invoiceData.RetTotal);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.6.93",
3
+ "version": "1.6.94",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",