shareneus 1.4.48 → 1.4.50

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.
Files changed (109) hide show
  1. package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +3 -3
  2. package/dist/accounting/counter-sales/sales-receipt-print.service.js +30 -29
  3. package/dist/accounting/credit-note/cn-print.service.d.ts +1 -2
  4. package/dist/accounting/credit-note/cn-print.service.js +10 -32
  5. package/dist/accounting/credit-note/credit-note-totals.service.d.ts +6 -6
  6. package/dist/accounting/credit-note/credit-note-totals.service.js +19 -19
  7. package/dist/accounting/debit-note/debit-note-print.service.d.ts +2 -2
  8. package/dist/accounting/debit-note/debit-note-print.service.js +15 -15
  9. package/dist/accounting/debit-note/debit-note-totals.service.d.ts +6 -6
  10. package/dist/accounting/debit-note/debit-note-totals.service.js +18 -18
  11. package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +7 -7
  12. package/dist/accounting/invoice/hc-inv-pdf.service.js +36 -36
  13. package/dist/accounting/invoice/inv-pdf.service.d.ts +6 -6
  14. package/dist/accounting/invoice/inv-pdf.service.js +43 -43
  15. package/dist/accounting/invoice/inv-print.service.d.ts +3 -3
  16. package/dist/accounting/invoice/inv-print.service.js +24 -24
  17. package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +6 -6
  18. package/dist/accounting/invoice/invoice-letterhead-pdf.service.js +43 -43
  19. package/dist/accounting/invoice/invoice-total.service.d.ts +11 -11
  20. package/dist/accounting/invoice/invoice-total.service.js +54 -54
  21. package/dist/accounting/invoice/reports/excel/analysis-excel.service.d.ts +3 -3
  22. package/dist/accounting/invoice/reports/excel/analysis-excel.service.js +8 -7
  23. package/dist/accounting/invoice/reports/excel/category-wise-item-excel.service.d.ts +4 -4
  24. package/dist/accounting/invoice/reports/excel/category-wise-item-excel.service.js +14 -14
  25. package/dist/accounting/invoice/reports/excel/cust-wise-sales-details.d.ts +4 -4
  26. package/dist/accounting/invoice/reports/excel/cust-wise-sales-details.js +8 -8
  27. package/dist/accounting/invoice/reports/excel/cust-wise-sales-summary-excel.service.d.ts +4 -4
  28. package/dist/accounting/invoice/reports/excel/cust-wise-sales-summary-excel.service.js +8 -8
  29. package/dist/accounting/invoice/reports/excel/invoice-wise-excel.service.d.ts +4 -4
  30. package/dist/accounting/invoice/reports/excel/invoice-wise-excel.service.js +8 -8
  31. package/dist/accounting/invoice/reports/excel/item-wise-doctor-sale-excel.service.d.ts +4 -4
  32. package/dist/accounting/invoice/reports/excel/item-wise-doctor-sale-excel.service.js +10 -10
  33. package/dist/accounting/invoice/reports/excel/items-wise-sales-excel.service.d.ts +4 -4
  34. package/dist/accounting/invoice/reports/excel/items-wise-sales-excel.service.js +14 -13
  35. package/dist/accounting/invoice/reports/excel/manf-wise-sales-excel.service.d.ts +4 -4
  36. package/dist/accounting/invoice/reports/excel/manf-wise-sales-excel.service.js +8 -8
  37. package/dist/accounting/invoice/reports/excel/operator-wise-details.d.ts +4 -4
  38. package/dist/accounting/invoice/reports/excel/operator-wise-details.js +8 -8
  39. package/dist/accounting/invoice/reports/excel/operator-wise-summary.d.ts +4 -4
  40. package/dist/accounting/invoice/reports/excel/operator-wise-summary.js +8 -8
  41. package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +6 -6
  42. package/dist/accounting/invoice/shared-inv-pdf.service.js +29 -29
  43. package/dist/appointments/appointments/appointment-total.service.d.ts +6 -6
  44. package/dist/appointments/appointments/appointment-total.service.js +28 -29
  45. package/dist/gst/excel/GSTR-RO-excel.service.d.ts +4 -4
  46. package/dist/gst/excel/GSTR-RO-excel.service.js +8 -8
  47. package/dist/gst/excel/GSTR1-excel.service.d.ts +4 -4
  48. package/dist/gst/excel/GSTR1-excel.service.js +10 -10
  49. package/dist/gst/excel/GSTR2-excel.service.d.ts +4 -4
  50. package/dist/gst/excel/GSTR2-excel.service.js +9 -9
  51. package/dist/gst/excel/tally-sales-import.service.d.ts +4 -4
  52. package/dist/gst/excel/tally-sales-import.service.js +8 -8
  53. package/dist/inventory/items/issue-parts-pdf.service.d.ts +6 -6
  54. package/dist/inventory/items/issue-parts-pdf.service.js +32 -32
  55. package/dist/inventory/items/reports/excel/expiring-drugs-excel.service.d.ts +4 -4
  56. package/dist/inventory/items/reports/excel/expiring-drugs-excel.service.js +11 -10
  57. package/dist/inventory/items/reports/excel/item-wise-mout-details.d.ts +4 -4
  58. package/dist/inventory/items/reports/excel/item-wise-mout-details.js +8 -8
  59. package/dist/inventory/items/reports/excel/item-wise-mout-summary.d.ts +4 -4
  60. package/dist/inventory/items/reports/excel/item-wise-mout-summary.js +8 -8
  61. package/dist/inventory/items/reports/excel/spares-issue-excel.service.d.ts +4 -4
  62. package/dist/inventory/items/reports/excel/spares-issue-excel.service.js +12 -12
  63. package/dist/inventory/items/reports/excel/stock-excel.service.d.ts +4 -4
  64. package/dist/inventory/items/reports/excel/stock-excel.service.js +8 -8
  65. package/dist/purchases/payment-made/reports/excel/payments-made-excel.service.d.ts +4 -4
  66. package/dist/purchases/payment-made/reports/excel/payments-made-excel.service.js +9 -9
  67. package/dist/purchases/payment-made/reports/excel/ven-balance-excel.service.d.ts +6 -6
  68. package/dist/purchases/payment-made/reports/excel/ven-balance-excel.service.js +14 -14
  69. package/dist/purchases/purchase-order/po-totals.service.d.ts +7 -7
  70. package/dist/purchases/purchase-order/po-totals.service.js +24 -25
  71. package/dist/purchases/purchase-order/purchase-order-print.service.js +3 -3
  72. package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +10 -10
  73. package/dist/purchases/purchase-order/purchase-order-totals.service.js +27 -27
  74. package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.d.ts +1 -1
  75. package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.js +20 -20
  76. package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +8 -8
  77. package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.js +31 -32
  78. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +1 -2
  79. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.js +10 -32
  80. package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +6 -6
  81. package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.js +19 -19
  82. package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +1 -2
  83. package/dist/sales/delivery-challan/delivery-challan-print.service.js +10 -33
  84. package/dist/sales/delivery-challan/delivery-challan-totals.d.ts +6 -6
  85. package/dist/sales/delivery-challan/delivery-challan-totals.js +20 -20
  86. package/dist/sales/sales/sales-print.service.d.ts +2 -2
  87. package/dist/sales/sales/sales-print.service.js +18 -18
  88. package/dist/sales/sales/sales-totals.service.d.ts +6 -6
  89. package/dist/sales/sales/sales-totals.service.js +19 -19
  90. package/dist/services/est.print-service.d.ts +18 -18
  91. package/dist/services/est.print-service.js +133 -133
  92. package/dist/services/reports/excel/insurance-expire-excel.service.d.ts +4 -4
  93. package/dist/services/reports/excel/insurance-expire-excel.service.js +8 -8
  94. package/dist/services/reports/excel/next-service-date-excel.service.d.ts +4 -4
  95. package/dist/services/reports/excel/next-service-date-excel.service.js +8 -8
  96. package/dist/services/reports/excel/repair-orders-excel.service.d.ts +5 -5
  97. package/dist/services/reports/excel/repair-orders-excel.service.js +11 -11
  98. package/dist/services/ro-print-service.d.ts +6 -6
  99. package/dist/services/ro-print-service.js +40 -40
  100. package/dist/services/ro-totals.service.d.ts +11 -11
  101. package/dist/services/ro-totals.service.js +50 -50
  102. package/dist/shared/shared-pdf.service.d.ts +0 -16
  103. package/dist/shared/shared-pdf.service.js +36 -34
  104. package/dist/shared/shared-print.service.js +1 -0
  105. package/dist/utils/tr-utils.d.ts +2 -3
  106. package/dist/utils/tr-utils.js +7 -6
  107. package/package.json +1 -1
  108. package/dist/shared/shared-pdfs/shared-pdf.service.d.ts +0 -926
  109. package/dist/shared/shared-pdfs/shared-pdf.service.js +0 -2608
@@ -465,22 +465,6 @@ export declare class SharedPDFService {
465
465
  }[];
466
466
  static CreateHSNTaxTable1(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): any;
467
467
  static CreateHSNTaxTable(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): any;
468
- static GetHCFinalTotalDetails(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, STotal: any, moreDiscDetails: boolean): {
469
- columns: ({
470
- style: string[];
471
- lineHeight: number;
472
- marginBottom: number;
473
- width: string;
474
- table: {
475
- body: any;
476
- };
477
- layout: string;
478
- } | {
479
- text: string;
480
- width: number;
481
- })[];
482
- marginLeft: number;
483
- };
484
468
  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): {
485
469
  columns: ({
486
470
  style: string[];
@@ -1536,40 +1536,42 @@ class SharedPDFService {
1536
1536
  return [{}];
1537
1537
  }
1538
1538
  }
1539
- static GetHCFinalTotalDetails(RecordData, BasicLaborTotal, OverAllMainLaborDiscount, LCGST, LSGST, LIGST, PIGST, ShowIGST, ShowTaxColumn, BasicPartsTotal, OverAllMainPartsDiscount, PCGST, PSGST, PartsTaxInfo, ShowAccParts, LaborAfterGST, PartsAfterGST, OverAllRecordDiscount, For, OverAllRecordTotal, Rounded, GrandTotal, ShowDetailedLaborTaxInfo, ShowDetailedPartTaxInfo, istaxable, LaborTotalTax, PartTotalTax, Consolidate, From, Adj, STotal, moreDiscDetails) {
1540
- let totalDisc;
1541
- let totalTax;
1542
- if (!Consolidate) {
1543
- totalTax = tr_utils_1.TrUtils.FixPriceValue(Number(LaborTotalTax) + Number(PartTotalTax));
1544
- if (istaxable) {
1545
- totalDisc = tr_utils_1.TrUtils.FixPriceValue(Number(OverAllMainLaborDiscount) + Number(OverAllMainPartsDiscount));
1546
- }
1547
- else {
1548
- totalDisc = tr_utils_1.TrUtils.FixPriceValue(Number(OverAllMainLaborDiscount) + Number(OverAllMainPartsDiscount) + Number(OverAllRecordDiscount));
1549
- }
1550
- }
1551
- return {
1552
- columns: [
1553
- // this.GetTaxOnLabor(BasicLaborTotal, OverAllMainLaborDiscount, LCGST,
1554
- // LSGST, LIGST, ShowIGST, ShowTaxColumn, ShowDetailedLaborTaxInfo),
1555
- { text: '', width: 225 },
1556
- // {
1557
- // stack: [
1558
- // this.GetTaxOnParts(BasicPartsTotal, OverAllMainPartsDiscount, PCGST,
1559
- // PSGST, ShowAccParts, PIGST, ShowIGST, ShowTaxColumn, ShowDetailedPartTaxInfo, From),
1560
- // this.PartsTaxAmounts(PartsTaxInfo, ShowAccParts, ShowIGST,
1561
- // ShowTaxColumn)
1562
- // ]
1563
- // },
1564
- { text: '', width: 230 },
1565
- // this.GrandTotal(LaborAfterGST, PartsAfterGST, totalDisc, For, OverAllRecordTotal, Rounded, GrandTotal)
1566
- this.GrandTotal(RecordData, BasicLaborTotal, BasicPartsTotal, totalDisc, totalTax, For, OverAllRecordTotal, Rounded, GrandTotal, Adj, Consolidate, STotal, moreDiscDetails)
1567
- ]
1568
- // columnGap: 40
1569
- ,
1570
- marginLeft: 10
1571
- };
1572
- }
1539
+ // static GetHCFinalTotalDetails(RecordData: any, BasicLaborTotal: any, OverAllMainLaborDiscount: any, LCGST: any, LSGST: any, LIGST: any, PIGST: any, ShowIGST: any, ShowTaxColumn: any,
1540
+ // BasicPartsTotal: any, OverAllMainPartsDiscount: any, PCGST: any, PSGST: any, PartsTaxInfo: any,
1541
+ // ShowAccParts: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, For: any,
1542
+ // OverAllRecordTotal: any, Rounded: any, GrandTotal: any, ShowDetailedLaborTaxInfo: any,
1543
+ // ShowDetailedPartTaxInfo: any, istaxable: boolean, LaborTotalTax: any, PartTotalTax: any, Consolidate: boolean, From: string, Adj: any, STotal: any, moreDiscDetails: boolean) {
1544
+ // let totalDisc: any;
1545
+ // let totalTax: any;
1546
+ // if (!Consolidate) {
1547
+ // totalTax = TrUtils.FixPriceValue(Number(LaborTotalTax) + Number(PartTotalTax));
1548
+ // if (istaxable) {
1549
+ // totalDisc = TrUtils.FixPriceValue(Number(OverAllMainLaborDiscount) + Number(OverAllMainPartsDiscount));
1550
+ // } else {
1551
+ // totalDisc = TrUtils.FixPriceValue(Number(OverAllMainLaborDiscount) + Number(OverAllMainPartsDiscount) + Number(OverAllRecordDiscount));
1552
+ // }
1553
+ // }
1554
+ // return {
1555
+ // columns: [
1556
+ // // this.GetTaxOnLabor(BasicLaborTotal, OverAllMainLaborDiscount, LCGST,
1557
+ // // LSGST, LIGST, ShowIGST, ShowTaxColumn, ShowDetailedLaborTaxInfo),
1558
+ // { text: '', width: 225 },
1559
+ // // {
1560
+ // // stack: [
1561
+ // // this.GetTaxOnParts(BasicPartsTotal, OverAllMainPartsDiscount, PCGST,
1562
+ // // PSGST, ShowAccParts, PIGST, ShowIGST, ShowTaxColumn, ShowDetailedPartTaxInfo, From),
1563
+ // // this.PartsTaxAmounts(PartsTaxInfo, ShowAccParts, ShowIGST,
1564
+ // // ShowTaxColumn)
1565
+ // // ]
1566
+ // // },
1567
+ // { text: '', width: 230 },
1568
+ // // this.GrandTotal(LaborAfterGST, PartsAfterGST, totalDisc, For, OverAllRecordTotal, Rounded, GrandTotal)
1569
+ // this.GrandTotal(RecordData, BasicLaborTotal, BasicPartsTotal, totalDisc, totalTax, For, OverAllRecordTotal, Rounded, GrandTotal, Adj, Consolidate, STotal, moreDiscDetails)
1570
+ // ]
1571
+ // // columnGap: 40
1572
+ // , marginLeft: 10
1573
+ // };
1574
+ // }
1573
1575
  static GetFinalTotalDetails1(RecordData, BasicLaborTotal, OverAllMainLaborDiscount, LCGST, LSGST, LIGST, PIGST, ShowIGST, ShowTaxColumn, BasicPartsTotal, OverAllMainPartsDiscount, PCGST, PSGST, PartsTaxInfo, ShowAccParts, LaborAfterGST, PartsAfterGST, OverAllRecordDiscount, For, OverAllRecordTotal, Rounded, GrandTotal, ShowDetailedLaborTaxInfo, ShowDetailedPartTaxInfo, istaxable, LaborTotalTax, PartTotalTax, Consolidate, From, Adj, CustLaborTaxGroupDataByPerc, STotal, isAuto, moreDiscDetails) {
1574
1576
  let totalDisc;
1575
1577
  let totalTax;
@@ -22,6 +22,7 @@ class PrintSharedService {
22
22
  // MyDate.UserTimeZone = EntityData.User.TZ;
23
23
  let Entity = {};
24
24
  Entity.User = EntityData.User;
25
+ Entity.DecimalsNumber = 2;
25
26
  if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common)) {
26
27
  tempEntity.Settings.Common = {};
27
28
  }
@@ -1,5 +1,4 @@
1
1
  export declare class TrUtils {
2
- static DecimalsNumber: number;
3
2
  static IsNull(Value: any): boolean;
4
3
  static IsEmpty(Value: any): boolean;
5
4
  static IsZero(Value: any): boolean;
@@ -7,8 +6,8 @@ export declare class TrUtils {
7
6
  static Stringify(RecordData: any): any;
8
7
  static ConcatObjects(obj1: any, obj2: any): any;
9
8
  static ConvertPercToVal(Discount: any, Total: any): number | null;
10
- static FixedTo(value: any): number;
11
- static FixPriceValue(Value: any): string;
9
+ static FixedTo(value: any, DecimalsNumber?: number): number;
10
+ static FixPriceValue(Value: any, DecimalsNumber?: number): string;
12
11
  static SetValueToZeroIfNull(Value: any): any;
13
12
  static SetPercToStringIfNull(Value: any): any;
14
13
  static SetPercToTrueIfNull(Value: any): any;
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TrUtils = void 0;
4
+ const aggregation_1 = require("../aggregation/aggregation");
4
5
  class TrUtils {
6
+ // static DecimalsNumber:number=2;
5
7
  static IsNull(Value) {
6
8
  return Value === null || typeof Value === 'undefined';
7
9
  }
@@ -39,29 +41,29 @@ class TrUtils {
39
41
  if (this.IsNull(Total)) {
40
42
  Total = 0;
41
43
  }
42
- let value = this.FixedTo(((Total * Discount) / 100));
44
+ let value = this.FixedTo((0, aggregation_1.division)((0, aggregation_1.multiply)(Total, Discount), 100));
43
45
  if (isNaN(value)) {
44
46
  value = 0;
45
47
  }
46
48
  return value;
47
49
  }
48
50
  }
49
- static FixedTo(value) {
51
+ static FixedTo(value, DecimalsNumber = 2) {
50
52
  if (this.IsNull(value)) {
51
53
  value = 0;
52
54
  }
53
55
  value = Number(value);
54
- let Result = value.toFixed(this.DecimalsNumber);
56
+ let Result = value.toFixed(DecimalsNumber);
55
57
  return Number(Result);
56
58
  }
57
- static FixPriceValue(Value) {
59
+ static FixPriceValue(Value, DecimalsNumber = 2) {
58
60
  if (this.IsNull(Value)) {
59
61
  Value = 0;
60
62
  }
61
63
  if (typeof Value === 'string') {
62
64
  Value = Number(Value);
63
65
  }
64
- let Result = Value.toFixed(this.DecimalsNumber);
66
+ let Result = Value.toFixed(DecimalsNumber);
65
67
  return Result;
66
68
  }
67
69
  static SetValueToZeroIfNull(Value) {
@@ -90,4 +92,3 @@ class TrUtils {
90
92
  }
91
93
  }
92
94
  exports.TrUtils = TrUtils;
93
- TrUtils.DecimalsNumber = 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.4.48",
3
+ "version": "1.4.50",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",