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.
- package/dist/shared/header-footer-section/pdf-header-footer.section.js +1 -1
- package/dist/shared/table-section/pdf-table.section.js +2 -2
- package/package.json +1 -1
- package/src/shared/header-footer-section/pdf-header-footer.section.ts +1 -1
- package/src/shared/table-section/pdf-table.section.ts +3 -3
|
@@ -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 (
|
|
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:
|
|
373
|
+
return Object.assign(Object.assign({}, column), { show: false, Show: false });
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
function isDiscountColumnConfig(column) {
|
package/package.json
CHANGED
|
@@ -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 (
|
|
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:
|
|
405
|
-
Show:
|
|
404
|
+
show: false,
|
|
405
|
+
Show: false
|
|
406
406
|
};
|
|
407
407
|
});
|
|
408
408
|
}
|