shareneus 1.7.355 → 1.7.357
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(
|
|
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): {
|
|
@@ -1560,7 +1560,7 @@ class SharedPDFService {
|
|
|
1560
1560
|
return {
|
|
1561
1561
|
style: 'tableExample',
|
|
1562
1562
|
table: {
|
|
1563
|
-
widths: hasCESS ? [25,
|
|
1563
|
+
widths: hasCESS ? [25, 50, 30, 30] : [25, 60, 50],
|
|
1564
1564
|
headerRows: 1,
|
|
1565
1565
|
body: this.CreateHSNTaxTable1(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn)
|
|
1566
1566
|
},
|
|
@@ -1571,7 +1571,7 @@ class SharedPDFService {
|
|
|
1571
1571
|
return {
|
|
1572
1572
|
style: 'tableExample',
|
|
1573
1573
|
table: {
|
|
1574
|
-
widths: hasCESS ? [25,
|
|
1574
|
+
widths: hasCESS ? [25, 50, 30, 30, 30] : [25, 60, 40, 40],
|
|
1575
1575
|
headerRows: 1,
|
|
1576
1576
|
body: this.CreateHSNTaxTable1(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn)
|
|
1577
1577
|
},
|
|
@@ -1585,7 +1585,7 @@ class SharedPDFService {
|
|
|
1585
1585
|
return {
|
|
1586
1586
|
style: 'tableExample',
|
|
1587
1587
|
table: {
|
|
1588
|
-
widths: hasCESS ? [40, 'auto',
|
|
1588
|
+
widths: hasCESS ? [40, 'auto', 30, 30] : [40, 'auto', 50],
|
|
1589
1589
|
headerRows: 1,
|
|
1590
1590
|
body: this.CreateHSNTaxTable(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn)
|
|
1591
1591
|
},
|
|
@@ -1596,7 +1596,7 @@ class SharedPDFService {
|
|
|
1596
1596
|
return {
|
|
1597
1597
|
style: 'tableExample',
|
|
1598
1598
|
table: {
|
|
1599
|
-
widths: hasCESS ? [50,
|
|
1599
|
+
widths: hasCESS ? [50, 60, 35, 35, 35] : [50, 65, 50, 50],
|
|
1600
1600
|
headerRows: 1,
|
|
1601
1601
|
body: this.CreateHSNTaxTable(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn)
|
|
1602
1602
|
},
|
|
@@ -1724,11 +1724,11 @@ class SharedPDFService {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
return HeaderNames;
|
|
1726
1726
|
}
|
|
1727
|
-
static hasCESS(
|
|
1728
|
-
if (
|
|
1727
|
+
static hasCESS(partsTaxInfo) {
|
|
1728
|
+
if (!partsTaxInfo || partsTaxInfo.length === 0) {
|
|
1729
1729
|
return false;
|
|
1730
1730
|
}
|
|
1731
|
-
return
|
|
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
|
@@ -1654,7 +1654,7 @@ export class SharedPDFService {
|
|
|
1654
1654
|
return {
|
|
1655
1655
|
style: 'tableExample',
|
|
1656
1656
|
table: {
|
|
1657
|
-
widths: hasCESS ? [25,
|
|
1657
|
+
widths: hasCESS ? [25, 50, 30, 30] : [25, 60, 50],
|
|
1658
1658
|
headerRows: 1,
|
|
1659
1659
|
body: this.CreateHSNTaxTable1(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn)
|
|
1660
1660
|
},
|
|
@@ -1664,7 +1664,7 @@ export class SharedPDFService {
|
|
|
1664
1664
|
return {
|
|
1665
1665
|
style: 'tableExample',
|
|
1666
1666
|
table: {
|
|
1667
|
-
widths: hasCESS ? [25,
|
|
1667
|
+
widths: hasCESS ? [25, 50, 30, 30, 30] : [25, 60, 40, 40],
|
|
1668
1668
|
headerRows: 1,
|
|
1669
1669
|
body: this.CreateHSNTaxTable1(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn)
|
|
1670
1670
|
},
|
|
@@ -1679,7 +1679,7 @@ export class SharedPDFService {
|
|
|
1679
1679
|
return {
|
|
1680
1680
|
style: 'tableExample',
|
|
1681
1681
|
table: {
|
|
1682
|
-
widths: hasCESS ? [40, 'auto',
|
|
1682
|
+
widths: hasCESS ? [40, 'auto', 30, 30] : [40, 'auto', 50],
|
|
1683
1683
|
headerRows: 1,
|
|
1684
1684
|
body: this.CreateHSNTaxTable(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn)
|
|
1685
1685
|
},
|
|
@@ -1689,7 +1689,7 @@ export class SharedPDFService {
|
|
|
1689
1689
|
return {
|
|
1690
1690
|
style: 'tableExample',
|
|
1691
1691
|
table: {
|
|
1692
|
-
widths: hasCESS ? [50,
|
|
1692
|
+
widths: hasCESS ? [50, 60, 35, 35, 35] : [50, 65, 50, 50],
|
|
1693
1693
|
headerRows: 1,
|
|
1694
1694
|
body: this.CreateHSNTaxTable(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn)
|
|
1695
1695
|
},
|
|
@@ -1820,13 +1820,13 @@ export class SharedPDFService {
|
|
|
1820
1820
|
|
|
1821
1821
|
return HeaderNames;
|
|
1822
1822
|
}
|
|
1823
|
-
|
|
1824
|
-
|
|
1823
|
+
|
|
1824
|
+
static hasCESS(partsTaxInfo: any[]): boolean {
|
|
1825
|
+
if (!partsTaxInfo || partsTaxInfo.length === 0) {
|
|
1825
1826
|
return false;
|
|
1826
1827
|
}
|
|
1827
|
-
|
|
1828
|
-
|
|
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) {
|