shareneus 1.7.20 → 1.7.21

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.
@@ -447,7 +447,7 @@ function buildHeaderContentWithLogo(logoDataUrl, hasLogo, organizationStack, log
447
447
  logoBlock,
448
448
  {
449
449
  width: '*',
450
- marginLeft: -25,
450
+ marginLeft: -50,
451
451
  stack: safeOrganizationStack
452
452
  }
453
453
  ],
@@ -363,14 +363,14 @@ function normalizeTableConfig(tableConfig, pdfInvoiceData) {
363
363
  return Array.isArray(tableConfig) ? tableConfig : [];
364
364
  }
365
365
  console.log('Original Table Config:', pdfInvoiceData === null || pdfInvoiceData === void 0 ? void 0 : pdfInvoiceData.ShowDiscountColumn);
366
- if (!(pdfInvoiceData === null || pdfInvoiceData === void 0 ? void 0 : pdfInvoiceData.ShowDiscountColumn)) {
366
+ if (pdfInvoiceData === null || pdfInvoiceData === void 0 ? void 0 : pdfInvoiceData.ShowDiscountColumn) {
367
367
  return tableConfig;
368
368
  }
369
369
  return tableConfig.map((column) => {
370
370
  if (!isDiscountColumnConfig(column)) {
371
371
  return column;
372
372
  }
373
- return Object.assign(Object.assign({}, column), { show: true, Show: true });
373
+ return Object.assign(Object.assign({}, column), { show: false, Show: false });
374
374
  });
375
375
  }
376
376
  function isDiscountColumnConfig(column) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.20",
3
+ "version": "1.7.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -511,7 +511,7 @@ function buildHeaderContentWithLogo(
511
511
  logoBlock,
512
512
  {
513
513
  width: '*',
514
- marginLeft: -25,
514
+ marginLeft: -50,
515
515
  stack: safeOrganizationStack
516
516
  }
517
517
  ],
@@ -390,7 +390,7 @@ function normalizeTableConfig(tableConfig: any[], pdfInvoiceData: any) {
390
390
 
391
391
  console.log('Original Table Config:', pdfInvoiceData?.ShowDiscountColumn);
392
392
 
393
- if (!pdfInvoiceData?.ShowDiscountColumn) {
393
+ if (pdfInvoiceData?.ShowDiscountColumn) {
394
394
  return tableConfig;
395
395
  }
396
396
 
@@ -401,8 +401,8 @@ function normalizeTableConfig(tableConfig: any[], pdfInvoiceData: any) {
401
401
 
402
402
  return {
403
403
  ...column,
404
- show: true,
405
- Show: true
404
+ show: false,
405
+ Show: false
406
406
  };
407
407
  });
408
408
  }