shareneus 1.7.355 → 1.7.356

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.
@@ -544,7 +544,7 @@ export declare class SharedPDFService {
544
544
  Field: string;
545
545
  alignment: string;
546
546
  }[];
547
- static hasCESS(items: any[]): boolean;
547
+ static hasCESS(partsTaxInfo: any[]): boolean;
548
548
  static CreateHSNTaxTable1(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): any;
549
549
  static CreateHSNTaxTable(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): any;
550
550
  static GetFinalTotalDetails1(RecordData: any, BasicLaborTotal: any, OverAllMainLaborDiscount: any, LCGST: any, LSGST: any, LIGST: any, PIGST: any, ShowIGST: any, ShowTaxColumn: any, BasicPartsTotal: any, OverAllMainPartsDiscount: any, PCGST: any, PSGST: any, PartsTaxInfo: any, ShowAccParts: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, For: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, ShowDetailedLaborTaxInfo: any, ShowDetailedPartTaxInfo: any, istaxable: boolean, LaborTotalTax: any, PartTotalTax: any, Consolidate: boolean, From: string, Adj: any, CustLaborTaxGroupDataByPerc: any, STotal: any, isAuto: boolean, moreDiscDetails: boolean): {
@@ -1724,11 +1724,11 @@ class SharedPDFService {
1724
1724
  }
1725
1725
  return HeaderNames;
1726
1726
  }
1727
- static hasCESS(items) {
1728
- if (tr_utils_1.TrUtils.IsNull(items) || (items === null || items === void 0 ? void 0 : items.length) === 0) {
1727
+ static hasCESS(partsTaxInfo) {
1728
+ if (!partsTaxInfo || partsTaxInfo.length === 0) {
1729
1729
  return false;
1730
1730
  }
1731
- return items.some(item => { var _a; return (_a = item.Taxes) === null || _a === void 0 ? void 0 : _a.some((tax) => { var _a; return ((_a = tax.Code) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === 'CESS'; }); });
1731
+ return partsTaxInfo.some(item => Number(item.CESSAmt) > 0);
1732
1732
  }
1733
1733
  static CreateHSNTaxTable1(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn) {
1734
1734
  if (!tr_utils_1.TrUtils.IsNull(PartsTaxInfo) && PartsTaxInfo.length !== 0 && ShowAccParts && ShowTaxColumn) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.355",
3
+ "version": "1.7.356",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1820,13 +1820,13 @@ export class SharedPDFService {
1820
1820
 
1821
1821
  return HeaderNames;
1822
1822
  }
1823
- static hasCESS(items: any[]): boolean {
1824
- if (TrUtils.IsNull(items) || items?.length === 0) {
1823
+
1824
+ static hasCESS(partsTaxInfo: any[]): boolean {
1825
+ if (!partsTaxInfo || partsTaxInfo.length === 0) {
1825
1826
  return false;
1826
1827
  }
1827
- return items.some(item =>
1828
- item.Taxes?.some((tax: any) => tax.Code?.toUpperCase() === 'CESS')
1829
- );
1828
+
1829
+ return partsTaxInfo.some(item => Number(item.CESSAmt) > 0);
1830
1830
  }
1831
1831
 
1832
1832
  static CreateHSNTaxTable1(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any) {