shareneus 1.6.93 → 1.6.95

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.
@@ -201,12 +201,15 @@ function formatExpiryDateValue(value) {
201
201
  function shouldSkipFixedTo(header) {
202
202
  var _a;
203
203
  const text = String((_a = header === null || header === void 0 ? void 0 : header.text) !== null && _a !== void 0 ? _a : '').trim().toUpperCase();
204
- if (text === 'HSN/SAC' || text === 'BN' || text === 'BNO') {
204
+ if (text === 'HSN/SAC' || text === 'BN' || text === 'BNO' || text === 'BATCH' || text === 'BATCH NO' || text === 'BATCH NO.') {
205
205
  return true;
206
206
  }
207
207
  const dbFields = Array.isArray(header === null || header === void 0 ? void 0 : header.dbFields) ? header.dbFields : [];
208
208
  return dbFields.some((field) => {
209
209
  const normalized = String(field !== null && field !== void 0 ? field : '').trim().toUpperCase();
210
- return normalized === 'BN' || normalized === 'BNO' || normalized.endsWith('.BN');
210
+ return normalized === 'BNO'
211
+ || normalized.endsWith('.BNO')
212
+ || normalized.endsWith('.BN')
213
+ || normalized.includes('BATCH');
211
214
  });
212
215
  }
@@ -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.95",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",