shareneus 1.4.47 → 1.4.49

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 (96) hide show
  1. package/dist/accounting/counter-sales/auto-sales-receipt-pdf.service.js +1 -1
  2. package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +3 -3
  3. package/dist/accounting/counter-sales/sales-receipt-print.service.js +31 -30
  4. package/dist/accounting/credit-note/cn-print.service.d.ts +1 -2
  5. package/dist/accounting/credit-note/cn-print.service.js +10 -32
  6. package/dist/accounting/credit-note/credit-note-totals.service.d.ts +6 -6
  7. package/dist/accounting/credit-note/credit-note-totals.service.js +19 -19
  8. package/dist/accounting/debit-note/debit-note-print.service.d.ts +2 -2
  9. package/dist/accounting/debit-note/debit-note-print.service.js +15 -15
  10. package/dist/accounting/debit-note/debit-note-totals.service.d.ts +6 -6
  11. package/dist/accounting/debit-note/debit-note-totals.service.js +18 -18
  12. package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +7 -7
  13. package/dist/accounting/invoice/hc-inv-pdf.service.js +36 -36
  14. package/dist/accounting/invoice/inv-pdf.service.d.ts +6 -6
  15. package/dist/accounting/invoice/inv-pdf.service.js +44 -44
  16. package/dist/accounting/invoice/inv-print.service.d.ts +3 -3
  17. package/dist/accounting/invoice/inv-print.service.js +24 -24
  18. package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +6 -6
  19. package/dist/accounting/invoice/invoice-letterhead-pdf.service.js +44 -44
  20. package/dist/accounting/invoice/invoice-total.service.d.ts +11 -11
  21. package/dist/accounting/invoice/invoice-total.service.js +54 -54
  22. package/dist/accounting/invoice/reports/excel/analysis-excel.service.d.ts +3 -3
  23. package/dist/accounting/invoice/reports/excel/analysis-excel.service.js +6 -6
  24. package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.d.ts +4 -4
  25. package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.js +10 -9
  26. package/dist/accounting/invoice/reports/pdf/category-wise-item-pdf.service.js +0 -2
  27. package/dist/accounting/invoice/reports/pdf/cust-wise-sales-details-pdf.service.js +0 -2
  28. package/dist/accounting/invoice/reports/pdf/cust-wise-sales-summary-pdf.service.js +0 -2
  29. package/dist/accounting/invoice/reports/pdf/item-wise-doctor-sale-pdf.service.js +0 -2
  30. package/dist/accounting/invoice/reports/pdf/item-wise-sales-pdf.service.js +0 -2
  31. package/dist/accounting/invoice/reports/pdf/manf-wise-sales-pdf.service.js +0 -2
  32. package/dist/accounting/invoice/reports/pdf/operator-wise-details-pdf.service.js +0 -2
  33. package/dist/accounting/invoice/reports/pdf/operator-wise-summary-pdf.js +0 -2
  34. package/dist/accounting/invoice/reports/pdf/sales-by-service-pdf.service.js +0 -2
  35. package/dist/accounting/invoice/reports/pdf/scheduled-drug-pdf.service.js +0 -2
  36. package/dist/accounting/invoice/reports/pdf/scheduled-drug-summary-pdf.service.js +0 -2
  37. package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +6 -6
  38. package/dist/accounting/invoice/shared-inv-pdf.service.js +30 -30
  39. package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +1 -1
  40. package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.js +3 -3
  41. package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +4 -4
  42. package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.js +9 -11
  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/appointments/consultations/consultation-fee-receipt.service.d.ts +1 -1
  46. package/dist/appointments/consultations/consultation-fee-receipt.service.js +3 -3
  47. package/dist/appointments/consultations/consultation-full-pdf.service.d.ts +2 -2
  48. package/dist/appointments/consultations/consultation-full-pdf.service.js +7 -7
  49. package/dist/appointments/consultations/consultation-letterhead-pdf.service.d.ts +2 -3
  50. package/dist/appointments/consultations/consultation-letterhead-pdf.service.js +7 -15
  51. package/dist/appointments/consultations/consultation-pdf.service.d.ts +2 -3
  52. package/dist/appointments/consultations/consultation-pdf.service.js +14 -15
  53. package/dist/inventory/items/issue-parts-pdf.service.js +1 -1
  54. package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +1 -1
  55. package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.js +4 -4
  56. package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.js +0 -2
  57. package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.js +0 -2
  58. package/dist/inventory/items/reports/pdf/reorder-point-pdf.service.js +1 -1
  59. package/dist/inventory/transfer-order/transfer-order-pdf.service.js +1 -2
  60. package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +1 -1
  61. package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.js +3 -3
  62. package/dist/purchases/purchase-order/po-totals.service.d.ts +7 -7
  63. package/dist/purchases/purchase-order/po-totals.service.js +24 -25
  64. package/dist/purchases/purchase-order/purchase-order-print.service.js +3 -3
  65. package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +10 -10
  66. package/dist/purchases/purchase-order/purchase-order-totals.service.js +27 -27
  67. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +1 -2
  68. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.js +10 -32
  69. package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +1 -2
  70. package/dist/sales/delivery-challan/delivery-challan-print.service.js +9 -32
  71. package/dist/sales/sales/sales-print.service.d.ts +2 -2
  72. package/dist/sales/sales/sales-print.service.js +17 -17
  73. package/dist/services/est.print-service.d.ts +18 -18
  74. package/dist/services/est.print-service.js +132 -132
  75. package/dist/services/reports/pdf/next-service-date-pdf.service.js +0 -2
  76. package/dist/services/reports/pdf/repair-orders-pdf.service.js +0 -1
  77. package/dist/services/ro-print-service.d.ts +6 -6
  78. package/dist/services/ro-print-service.js +39 -39
  79. package/dist/services/separate-wo-print.service.d.ts +1 -1
  80. package/dist/services/separate-wo-print.service.js +4 -4
  81. package/dist/shared/shared-pdf.service.d.ts +0 -16
  82. package/dist/shared/shared-pdf.service.js +36 -34
  83. package/dist/shared/shared-print.service.js +3 -1
  84. package/dist/tasks/meetings/meeting-pdf.d.ts +4 -4
  85. package/dist/tasks/meetings/meeting-pdf.js +9 -9
  86. package/dist/tasks/tasks/task-pdf.service.d.ts +4 -4
  87. package/dist/tasks/tasks/task-pdf.service.js +8 -8
  88. package/dist/tasks/tasks/task-reports-pdf.service.d.ts +6 -6
  89. package/dist/tasks/tasks/task-reports-pdf.service.js +14 -14
  90. package/dist/utils/my-date.d.ts +6 -7
  91. package/dist/utils/my-date.js +16 -16
  92. package/dist/utils/tr-utils.d.ts +2 -3
  93. package/dist/utils/tr-utils.js +5 -5
  94. package/package.json +1 -1
  95. package/dist/shared/shared-pdfs/shared-pdf.service.d.ts +0 -926
  96. package/dist/shared/shared-pdfs/shared-pdf.service.js +0 -2608
@@ -1,14 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AppointmentTotalsService = void 0;
4
+ const aggregation_1 = require("../../aggregation/aggregation");
4
5
  const enums_1 = require("../../enums/enums");
5
6
  const tr_utils_1 = require("../../utils/tr-utils");
6
7
  class AppointmentTotalsService {
7
- static GetTotalsValue(OriRecordData, TaxCodes, detailedInfo, withItems) {
8
+ static GetTotalsValue(OriRecordData, TaxCodes, detailedInfo, withItems, EntitySettings) {
8
9
  let dupRecordData = tr_utils_1.TrUtils.Stringify(OriRecordData);
9
10
  let argRecordData = {};
10
11
  dupRecordData.Ops = this.CalculateLaborValues(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
11
- argRecordData = this.GetROTotalsData(argRecordData, dupRecordData, TaxCodes, withItems, detailedInfo);
12
+ argRecordData = this.GetROTotalsData(argRecordData, dupRecordData, TaxCodes, withItems, detailedInfo, EntitySettings.DecimalsNumber);
12
13
  return argRecordData;
13
14
  }
14
15
  static CalculateLaborValues(opCodesList, isTaxable) {
@@ -77,12 +78,12 @@ class AppointmentTotalsService {
77
78
  });
78
79
  return OperationsList;
79
80
  }
80
- static GetROTotalsData(argRecordData, dupRecordData, TaxCodes, withItems, detailedInfo) {
81
+ static GetROTotalsData(argRecordData, dupRecordData, TaxCodes, withItems, detailedInfo, DecimalsNumber) {
81
82
  dupRecordData = this.ResetDiscountValuesIfInvalid(dupRecordData);
82
83
  argRecordData = this.SetMainDiscountValues(argRecordData, dupRecordData, detailedInfo);
83
- argRecordData = this.GetFinalCustomerTotalsData(argRecordData, dupRecordData, detailedInfo);
84
+ argRecordData = this.GetFinalCustomerTotalsData(argRecordData, dupRecordData, detailedInfo, DecimalsNumber);
84
85
  if (detailedInfo) {
85
- argRecordData = this.GetDetailedTotalsData(argRecordData, dupRecordData, TaxCodes);
86
+ argRecordData = this.GetDetailedTotalsData(argRecordData, dupRecordData, TaxCodes, DecimalsNumber);
86
87
  }
87
88
  if (withItems) {
88
89
  argRecordData.Ops = dupRecordData.Ops;
@@ -109,21 +110,20 @@ class AppointmentTotalsService {
109
110
  }
110
111
  return argRecordData;
111
112
  }
112
- static GetFinalCustomerTotalsData(argRecordData, dupRecordData, detailedInfo) {
113
+ static GetFinalCustomerTotalsData(argRecordData, dupRecordData, detailedInfo, DecimalsNumber) {
113
114
  let CustomerAfterDiscTotals = this.GetCustSubTotal(dupRecordData.Ops);
114
115
  let CustLaborTaxTotal = this.GetCustLaborTaxTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
115
- let CustLaborDiscTotal = this.GetCustLaborDiscountedTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax), dupRecordData);
116
+ let CustLaborDiscTotal = this.GetCustLaborDiscountedTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax), dupRecordData, DecimalsNumber);
116
117
  let CustLaborTotalAfterDisc = this.GetCustLaborTotalAfterDiscount(dupRecordData.Ops);
117
- argRecordData.STotal = tr_utils_1.TrUtils.FixPriceValue(CustLaborDiscTotal + CustLaborTotalAfterDisc);
118
- argRecordData.CustLaborTotalBeforeDisc = tr_utils_1.TrUtils.FixedTo(argRecordData.CustLaborTotalAfterDisc
119
- + argRecordData.CustLaborDiscTotal);
120
- argRecordData.SubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
121
- let CustTotal = this.GetCustomerTotalBasedOnTaxType(dupRecordData, CustLaborTaxTotal, dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
118
+ argRecordData.STotal = tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.addition)(CustLaborDiscTotal, CustLaborTotalAfterDisc), DecimalsNumber);
119
+ argRecordData.CustLaborTotalBeforeDisc = tr_utils_1.TrUtils.FixedTo((0, aggregation_1.addition)(argRecordData.CustLaborTotalAfterDisc, argRecordData.CustLaborDiscTotal, DecimalsNumber));
120
+ argRecordData.SubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals, DecimalsNumber);
121
+ let CustTotal = this.GetCustomerTotalBasedOnTaxType(dupRecordData, CustLaborTaxTotal, dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax), DecimalsNumber);
122
122
  if (detailedInfo) {
123
- argRecordData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
124
- argRecordData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal);
123
+ argRecordData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals, DecimalsNumber);
124
+ argRecordData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal, DecimalsNumber);
125
125
  }
126
- argRecordData.Round = tr_utils_1.TrUtils.FixedTo(Math.round(CustTotal) - CustTotal);
126
+ argRecordData.Round = tr_utils_1.TrUtils.FixedTo((0, aggregation_1.subtraction)(Math.round(CustTotal), CustTotal), DecimalsNumber);
127
127
  argRecordData.Total = Math.round(CustTotal);
128
128
  return argRecordData;
129
129
  }
@@ -147,29 +147,28 @@ class AppointmentTotalsService {
147
147
  }
148
148
  return TotalTaxAmt;
149
149
  }
150
- static GetCustomerTotalBasedOnTaxType(dupRecordData, LaborTaxAmount, LaborList, IsTaxable) {
150
+ static GetCustomerTotalBasedOnTaxType(dupRecordData, LaborTaxAmount, LaborList, IsTaxable, DecimalsNumber) {
151
151
  let SubTotalWithTax = 0;
152
152
  let LaborTotalAfterDisc = this.GetCustLaborTotalAfterDiscount(LaborList);
153
153
  if (IsTaxable) {
154
- SubTotalWithTax = LaborTotalAfterDisc + LaborTaxAmount;
154
+ SubTotalWithTax = (0, aggregation_1.addition)(LaborTotalAfterDisc, LaborTaxAmount);
155
155
  }
156
156
  else {
157
- SubTotalWithTax = tr_utils_1.TrUtils.FixedTo((LaborTotalAfterDisc - dupRecordData.LDisc) - dupRecordData.Disc);
157
+ SubTotalWithTax = tr_utils_1.TrUtils.FixedTo((0, aggregation_1.subtraction)(LaborTotalAfterDisc - dupRecordData.LDisc, dupRecordData.Disc), DecimalsNumber);
158
158
  }
159
159
  return SubTotalWithTax;
160
160
  }
161
- static GetDetailedTotalsData(argRecordData, dupRecordData, TaxCodes) {
162
- argRecordData.CustLaborDiscTotal = this.GetCustLaborDiscountedTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax), dupRecordData);
161
+ static GetDetailedTotalsData(argRecordData, dupRecordData, TaxCodes, DecimalsNumber) {
162
+ argRecordData.CustLaborDiscTotal = this.GetCustLaborDiscountedTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax), dupRecordData, DecimalsNumber);
163
163
  argRecordData.CustLaborTotalAfterDisc = this.GetCustLaborTotalAfterDiscount(dupRecordData.Ops);
164
- argRecordData.CustLaborTotalBeforeDisc = tr_utils_1.TrUtils.FixedTo(argRecordData.CustLaborTotalAfterDisc
165
- + argRecordData.CustLaborDiscTotal);
164
+ argRecordData.CustLaborTotalBeforeDisc = tr_utils_1.TrUtils.FixedTo((0, aggregation_1.addition)(argRecordData.CustLaborTotalAfterDisc, argRecordData.CustLaborDiscTotal), DecimalsNumber);
166
165
  argRecordData.CustLaborITax = this.GetCustLaborTaxTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
167
166
  argRecordData.CustLaborSGST = this.GetCustLaborSGSTTaxTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
168
167
  argRecordData.CustLaborCGST = this.GetCustLaborCGSTTaxTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
169
168
  argRecordData.CustLaborIGST = this.GetCustLaborIGSTTaxTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
170
169
  argRecordData.CustLaborLDiscAmount = this.GetLaborLDiscAmount(argRecordData.CustLaborTotalAfterDisc, argRecordData.LDisc);
171
170
  argRecordData.CustLaborAfterLDisc = argRecordData.CustLaborTotalAfterDisc;
172
- argRecordData.CustLaborAfterTax = tr_utils_1.TrUtils.FixedTo(argRecordData.CustLaborITax + argRecordData.CustLaborAfterLDisc);
171
+ argRecordData.CustLaborAfterTax = tr_utils_1.TrUtils.FixedTo((0, aggregation_1.addition)(argRecordData.CustLaborITax, argRecordData.CustLaborAfterLDisc), DecimalsNumber);
173
172
  argRecordData.CustTotalRoundedBy = argRecordData.Round;
174
173
  argRecordData.CustRoundedTotal = argRecordData.Total;
175
174
  for (var key in argRecordData) {
@@ -177,12 +176,12 @@ class AppointmentTotalsService {
177
176
  key !== 'LDisc' && key !== 'LPerc' && key !== 'PDisc' &&
178
177
  key !== 'PPerc' && key !== 'Disc' && key !== 'Perc' && key !== 'Tax'
179
178
  && typeof argRecordData[key] === 'number') {
180
- argRecordData[key] = tr_utils_1.TrUtils.FixPriceValue(argRecordData[key]);
179
+ argRecordData[key] = tr_utils_1.TrUtils.FixPriceValue(argRecordData[key], DecimalsNumber);
181
180
  }
182
181
  }
183
182
  return argRecordData;
184
183
  }
185
- static GetCustLaborDiscountedTotal(LaborList, isTaxable, finalTotalsData) {
184
+ static GetCustLaborDiscountedTotal(LaborList, isTaxable, finalTotalsData, DecimalsNumber) {
186
185
  let LaborDiscountedTotal = 0;
187
186
  let overallLaborDisc = 0;
188
187
  if (!isTaxable) {
@@ -191,13 +190,13 @@ class AppointmentTotalsService {
191
190
  LaborList.forEach((Labor) => {
192
191
  LaborDiscountedTotal += Labor.CustDiscountedPrice;
193
192
  });
194
- return tr_utils_1.TrUtils.FixedTo(LaborDiscountedTotal + overallLaborDisc);
193
+ return tr_utils_1.TrUtils.FixedTo((0, aggregation_1.addition)(LaborDiscountedTotal, overallLaborDisc), DecimalsNumber);
195
194
  }
196
195
  static GetCustLaborCGSTTaxTotal(opCodesList, IsTaxable) {
197
196
  let TotalTaxAmt = 0;
198
197
  if (IsTaxable) {
199
198
  opCodesList.forEach((Labor) => {
200
- TotalTaxAmt = TotalTaxAmt + Labor.CCGST;
199
+ TotalTaxAmt = (0, aggregation_1.addition)(TotalTaxAmt, Labor.CCGST);
201
200
  });
202
201
  }
203
202
  return TotalTaxAmt;
@@ -206,7 +205,7 @@ class AppointmentTotalsService {
206
205
  let TotalTaxAmt = 0;
207
206
  if (IsTaxable) {
208
207
  opCodesList.forEach((Labor) => {
209
- TotalTaxAmt = TotalTaxAmt + Labor.CIGST;
208
+ TotalTaxAmt = (0, aggregation_1.addition)(TotalTaxAmt, Labor.CIGST);
210
209
  });
211
210
  }
212
211
  return TotalTaxAmt;
@@ -215,7 +214,7 @@ class AppointmentTotalsService {
215
214
  let TotalTaxAmt = 0;
216
215
  if (IsTaxable) {
217
216
  opCodesList.forEach((Labor) => {
218
- TotalTaxAmt = TotalTaxAmt + Labor.CSGST;
217
+ TotalTaxAmt = (0, aggregation_1.addition)(TotalTaxAmt, Labor.CSGST);
219
218
  });
220
219
  }
221
220
  return TotalTaxAmt;
@@ -215,7 +215,7 @@ export declare class ConsultationFeeReceiptPrintService {
215
215
  static GetPhoneNumber(phone: any): string;
216
216
  static getDoctorName(DocName: any): any;
217
217
  static GetPhone(Phone: any): any;
218
- static DifferenceInYears(DOB: any): string;
218
+ static DifferenceInYears(DOB: any, TZ: any): string;
219
219
  static HeaderLayOut(): {
220
220
  hLineWidth: (i: any, node: any) => 0 | 1;
221
221
  vLineWidth: (i: any, node: any) => 0 | 1;
@@ -95,7 +95,7 @@ class ConsultationFeeReceiptPrintService {
95
95
  {
96
96
  columns: [{
97
97
  stack: [{ text: CnstData.Pat.Name, fontSize: 10, marginTop: 5 },
98
- { text: CnstData.Pat.Code + ' | ' + this.DifferenceInYears(CnstData.Pat.DOB) + ' | ' + CnstData.Pat.Sex + this.GetPhoneNumber((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Pat) === null || _a === void 0 ? void 0 : _a.Ph), fontSize: 10, marginBottom: 5 }]
98
+ { text: CnstData.Pat.Code + ' | ' + this.DifferenceInYears(CnstData.Pat.DOB, Entity.User.TZ) + ' | ' + CnstData.Pat.Sex + this.GetPhoneNumber((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Pat) === null || _a === void 0 ? void 0 : _a.Ph), fontSize: 10, marginBottom: 5 }]
99
99
  },
100
100
  {
101
101
  stack: [{ text: 'Bill No : ' + CnstData.Code, style: ['headerstyle'] },
@@ -149,11 +149,11 @@ class ConsultationFeeReceiptPrintService {
149
149
  return Phone;
150
150
  }
151
151
  }
152
- static DifferenceInYears(DOB) {
152
+ static DifferenceInYears(DOB, TZ) {
153
153
  if (tr_utils_1.TrUtils.IsNull(DOB)) {
154
154
  return 'DOB Not Specified';
155
155
  }
156
- const result = (0, date_fns_1.differenceInYears)(my_date_1.MyDate.GetDateTimeNowInUTC(), new Date(DOB));
156
+ const result = (0, date_fns_1.differenceInYears)(my_date_1.MyDate.GetDateTimeNowInUTC(TZ), new Date(DOB));
157
157
  return result + ' Years';
158
158
  }
159
159
  static HeaderLayOut() {
@@ -96,7 +96,7 @@ export declare class ConsultationFullPrintService {
96
96
  width: number;
97
97
  })[];
98
98
  })[];
99
- static GetCnsltDate(CnstData: any): string | null;
99
+ static GetCnsltDate(CnstData: any, User: any): string | null;
100
100
  static GetHeaderBasedOnCondition(CnstData: any, Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): {
101
101
  columns: ({
102
102
  columns: any;
@@ -161,7 +161,7 @@ export declare class ConsultationFullPrintService {
161
161
  static GetPhoneNumber(phone: any): string;
162
162
  static getDoctorName(DocName: any): any;
163
163
  static GetPhone(Phone: any): any;
164
- static DifferenceInYears(DOB: any): string;
164
+ static DifferenceInYears(DOB: any, TZ: any): string;
165
165
  static HeaderLayOut(): {
166
166
  hLineWidth: (i: any, node: any) => 0 | 1;
167
167
  vLineWidth: (i: any, node: any) => 0 | 1;
@@ -76,22 +76,22 @@ class ConsultationFullPrintService {
76
76
  {
77
77
  columns: [{
78
78
  stack: [{ text: CnstData.Pat.Name, fontSize: 10, marginTop: 5, bold: true },
79
- { text: CnstData.Pat.Code + ' | ' + this.DifferenceInYears(CnstData.Pat.DOB) + ' | ' + CnstData.Pat.Sex + this.GetPhoneNumber((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Pat) === null || _a === void 0 ? void 0 : _a.Ph), fontSize: 10, marginBottom: 5 }]
79
+ { text: CnstData.Pat.Code + ' | ' + this.DifferenceInYears(CnstData.Pat.DOB, Entity.User.TZ) + ' | ' + CnstData.Pat.Sex + this.GetPhoneNumber((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Pat) === null || _a === void 0 ? void 0 : _a.Ph), fontSize: 10, marginBottom: 5 }]
80
80
  },
81
81
  {
82
82
  stack: [
83
- { text: this.GetCnsltDate(CnstData), style: ['headerstyle'] }
83
+ { text: this.GetCnsltDate(CnstData, Entity.User), style: ['headerstyle'] }
84
84
  ], marginTop: 5, width: 120
85
85
  }]
86
86
  }
87
87
  ];
88
88
  }
89
- static GetCnsltDate(CnstData) {
89
+ static GetCnsltDate(CnstData, User) {
90
90
  if (!tr_utils_1.TrUtils.IsNull(CnstData.ClDate)) {
91
- return my_date_1.MyDate.GetWeekDateAndTime(CnstData.ClDate);
91
+ return my_date_1.MyDate.GetWeekDateAndTime(CnstData.ClDate, User.TZ);
92
92
  }
93
93
  else {
94
- return my_date_1.MyDate.GetWeekDateAndTime(CnstData.CrDate);
94
+ return my_date_1.MyDate.GetWeekDateAndTime(CnstData.CrDate, User.TZ);
95
95
  }
96
96
  }
97
97
  static GetHeaderBasedOnCondition(CnstData, Entity, HeaderName, Image, HColor, AColor, text) {
@@ -141,11 +141,11 @@ class ConsultationFullPrintService {
141
141
  return Phone;
142
142
  }
143
143
  }
144
- static DifferenceInYears(DOB) {
144
+ static DifferenceInYears(DOB, TZ) {
145
145
  if (tr_utils_1.TrUtils.IsNull(DOB)) {
146
146
  return 'DOB Not Specified';
147
147
  }
148
- const result = (0, date_fns_1.differenceInYears)(my_date_1.MyDate.GetDateTimeNowInUTC(), new Date(DOB));
148
+ const result = (0, date_fns_1.differenceInYears)(my_date_1.MyDate.GetDateTimeNowInUTC(TZ), new Date(DOB));
149
149
  return result + ' Years';
150
150
  }
151
151
  static HeaderLayOut() {
@@ -145,7 +145,7 @@ export declare class ConsultationLetterHeadPDFService {
145
145
  width: number;
146
146
  })[];
147
147
  }[];
148
- static GetCnsltDate(CnstData: any): string | null;
148
+ static GetCnsltDate(CnstData: any, User: any): string | null;
149
149
  static GetHeaderBasedOnCondition(CnstData: any, Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): {
150
150
  columns: ({
151
151
  columns: any;
@@ -208,10 +208,9 @@ export declare class ConsultationLetterHeadPDFService {
208
208
  })[];
209
209
  };
210
210
  static GetPhoneNumber(phone: any): string;
211
- static DifferenceInYears(DOB: any): string;
211
+ static DifferenceInYears(DOB: any, TZ: any): string;
212
212
  static GetDiagnosis(Diags: any): any;
213
213
  static GetComplaints(Comps: any): any;
214
- static GetDate(DatesDetails: any): string;
215
214
  static CustomerAndVehicleDetailsAfterLine(): {
216
215
  canvas: {
217
216
  type: string;
@@ -224,11 +224,11 @@ class ConsultationLetterHeadPDFService {
224
224
  {
225
225
  columns: [{
226
226
  stack: [{ text: CnstData.Pat.Name, fontSize: 10, marginTop: 5, bold: true },
227
- { text: CnstData.Pat.Code + ' | ' + this.DifferenceInYears(CnstData.Pat.DOB) + ' | ' + CnstData.Pat.Sex + this.GetPhoneNumber((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Pat) === null || _a === void 0 ? void 0 : _a.Ph), fontSize: 10, marginBottom: 5 }]
227
+ { text: CnstData.Pat.Code + ' | ' + this.DifferenceInYears(CnstData.Pat.DOB, Entity.User.TZ) + ' | ' + CnstData.Pat.Sex + this.GetPhoneNumber((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Pat) === null || _a === void 0 ? void 0 : _a.Ph), fontSize: 10, marginBottom: 5 }]
228
228
  },
229
229
  {
230
230
  stack: [
231
- { text: this.GetCnsltDate(CnstData), style: ['headerstyle'] }
231
+ { text: this.GetCnsltDate(CnstData, Entity.User), style: ['headerstyle'] }
232
232
  ], marginTop: 5, width: 120
233
233
  }]
234
234
  }
@@ -236,12 +236,12 @@ class ConsultationLetterHeadPDFService {
236
236
  // { text: CnstData.Pat.Code + ' | ' + this.DifferenceInYears(CnstData.Pat.DOB) + ' | ' + CnstData.Pat.Sex + this.GetPhoneNumber(CnstData?.Pat?.Ph), fontSize: 10, marginBottom: 5 },
237
237
  ];
238
238
  }
239
- static GetCnsltDate(CnstData) {
239
+ static GetCnsltDate(CnstData, User) {
240
240
  if (!tr_utils_1.TrUtils.IsNull(CnstData.ClDate)) {
241
- return my_date_1.MyDate.GetWeekDateAndTime(CnstData.ClDate);
241
+ return my_date_1.MyDate.GetWeekDateAndTime(CnstData.ClDate, User.TZ);
242
242
  }
243
243
  else {
244
- return my_date_1.MyDate.GetWeekDateAndTime(CnstData.CrDate);
244
+ return my_date_1.MyDate.GetWeekDateAndTime(CnstData.CrDate, User.TZ);
245
245
  }
246
246
  }
247
247
  static GetHeaderBasedOnCondition(CnstData, Entity, HeaderName, Image, HColor, AColor, text) {
@@ -280,11 +280,11 @@ class ConsultationLetterHeadPDFService {
280
280
  return '';
281
281
  }
282
282
  }
283
- static DifferenceInYears(DOB) {
283
+ static DifferenceInYears(DOB, TZ) {
284
284
  if (tr_utils_1.TrUtils.IsNull(DOB)) {
285
285
  return 'DOB Not Specified';
286
286
  }
287
- let Datei = my_date_1.MyDate.GetDateTimeNowInUTC();
287
+ let Datei = my_date_1.MyDate.GetDateTimeNowInUTC(TZ);
288
288
  const result = (0, date_fns_1.differenceInYears)(Datei, new Date(DOB));
289
289
  return result + ' Years';
290
290
  }
@@ -308,14 +308,6 @@ class ConsultationLetterHeadPDFService {
308
308
  });
309
309
  return Complaints;
310
310
  }
311
- static GetDate(DatesDetails) {
312
- if (DatesDetails.Date === 'CustomRange') {
313
- return my_date_1.MyDate.GetWeekAndDate(DatesDetails.StDate) + ' - ' + my_date_1.MyDate.GetWeekAndDate(DatesDetails.EnDate);
314
- }
315
- else {
316
- return 'till ' + my_date_1.MyDate.GetWeekAndDate(DatesDetails.EnDate);
317
- }
318
- }
319
311
  static CustomerAndVehicleDetailsAfterLine() {
320
312
  return {
321
313
  canvas: [
@@ -185,7 +185,7 @@ export declare class ConsultationPDFService {
185
185
  width: number;
186
186
  })[];
187
187
  })[];
188
- static GetCnsltDate(CnstData: any): string | null;
188
+ static GetCnsltDate(CnstData: any, User: any): string | null;
189
189
  static GetHeaderBasedOnCondition(CnstData: any, Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): {
190
190
  columns: ({
191
191
  columns: any;
@@ -248,10 +248,9 @@ export declare class ConsultationPDFService {
248
248
  })[];
249
249
  };
250
250
  static GetPhoneNumber(phone: any): string;
251
- static DifferenceInYears(DOB: any): string;
251
+ static DifferenceInYears(DOB: any, TZ: any): string;
252
252
  static GetDiagnosis(Diags: any): any;
253
253
  static GetComplaints(Comps: any): any;
254
- static GetDate(DatesDetails: any): string;
255
254
  static CustomerAndVehicleDetailsAfterLine(): {
256
255
  canvas: {
257
256
  type: string;
@@ -208,11 +208,11 @@ class ConsultationPDFService {
208
208
  {
209
209
  columns: [{
210
210
  stack: [{ text: CnstData.Pat.Name, fontSize: 10, marginTop: 5, bold: true },
211
- { text: CnstData.Pat.Code + ' | ' + this.DifferenceInYears(CnstData.Pat.DOB) + ' | ' + CnstData.Pat.Sex + this.GetPhoneNumber((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Pat) === null || _a === void 0 ? void 0 : _a.Ph), fontSize: 10, marginBottom: 5 }]
211
+ { text: CnstData.Pat.Code + ' | ' + this.DifferenceInYears(CnstData.Pat.DOB, Entity.User.TZ) + ' | ' + CnstData.Pat.Sex + this.GetPhoneNumber((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Pat) === null || _a === void 0 ? void 0 : _a.Ph), fontSize: 10, marginBottom: 5 }]
212
212
  },
213
213
  {
214
214
  stack: [
215
- { text: this.GetCnsltDate(CnstData), style: ['headerstyle'] }
215
+ { text: this.GetCnsltDate(CnstData, Entity.User), style: ['headerstyle'] }
216
216
  ], marginTop: 5, width: 120
217
217
  }]
218
218
  }
@@ -220,12 +220,12 @@ class ConsultationPDFService {
220
220
  // { text: CnstData.Pat.Code + ' | ' + this.DifferenceInYears(CnstData.Pat.DOB) + ' | ' + CnstData.Pat.Sex + this.GetPhoneNumber(CnstData?.Pat?.Ph), fontSize: 10, marginBottom: 5 },
221
221
  ];
222
222
  }
223
- static GetCnsltDate(CnstData) {
223
+ static GetCnsltDate(CnstData, User) {
224
224
  if (!tr_utils_1.TrUtils.IsNull(CnstData.ClDate)) {
225
- return my_date_1.MyDate.GetWeekDateAndTime(CnstData.ClDate);
225
+ return my_date_1.MyDate.GetWeekDateAndTime(CnstData.ClDate, User.TZ);
226
226
  }
227
227
  else {
228
- return my_date_1.MyDate.GetWeekDateAndTime(CnstData.CrDate);
228
+ return my_date_1.MyDate.GetWeekDateAndTime(CnstData.CrDate, User.TZ);
229
229
  }
230
230
  }
231
231
  static GetHeaderBasedOnCondition(CnstData, Entity, HeaderName, Image, HColor, AColor, text) {
@@ -264,11 +264,11 @@ class ConsultationPDFService {
264
264
  return '';
265
265
  }
266
266
  }
267
- static DifferenceInYears(DOB) {
267
+ static DifferenceInYears(DOB, TZ) {
268
268
  if (tr_utils_1.TrUtils.IsNull(DOB)) {
269
269
  return 'DOB Not Specified';
270
270
  }
271
- let Datei = my_date_1.MyDate.GetDateTimeNowInUTC();
271
+ let Datei = my_date_1.MyDate.GetDateTimeNowInUTC(TZ);
272
272
  const result = (0, date_fns_1.differenceInYears)(Datei, new Date(DOB));
273
273
  return result + ' Years';
274
274
  }
@@ -292,14 +292,13 @@ class ConsultationPDFService {
292
292
  });
293
293
  return Complaints;
294
294
  }
295
- static GetDate(DatesDetails) {
296
- if (DatesDetails.Date === 'CustomRange') {
297
- return my_date_1.MyDate.GetWeekAndDate(DatesDetails.StDate) + ' - ' + my_date_1.MyDate.GetWeekAndDate(DatesDetails.EnDate);
298
- }
299
- else {
300
- return 'till ' + my_date_1.MyDate.GetWeekAndDate(DatesDetails.EnDate);
301
- }
302
- }
295
+ // static GetDate(DatesDetails: any) {
296
+ // if (DatesDetails.Date === 'CustomRange') {
297
+ // return MyDate.GetWeekAndDate(DatesDetails.StDate) + ' - ' + MyDate.GetWeekAndDate(DatesDetails.EnDate);
298
+ // } else {
299
+ // return 'till ' + MyDate.GetWeekAndDate(DatesDetails.EnDate);
300
+ // }
301
+ // }
303
302
  static CustomerAndVehicleDetailsAfterLine() {
304
303
  return {
305
304
  canvas: [
@@ -703,7 +703,7 @@ class IssuePartsprintService {
703
703
  stack: [
704
704
  {
705
705
  columns: [{ text: '' }, { text: 'Gate Pass', bold: true, fontSize: 9, alignment: 'center', marginTop: 5 },
706
- { text: 'Date: ' + my_date_1.MyDate.ConvertUTCDateToReadable(my_date_1.MyDate.GetDateTimeNowInUTC()), marginTop: 5, fontSize: 9, alignment: 'right' }]
706
+ { text: 'Date: ' + my_date_1.MyDate.ConvertUTCDateToReadable(my_date_1.MyDate.GetDateTimeNowInUTC(ROPrintData.Entity.User.TZ)), marginTop: 5, fontSize: 9, alignment: 'right' }]
707
707
  },
708
708
  { text: ROPrintData.Entity.CName, alignment: 'center', bold: true, fontSize: 12, marginTop: 5, marginBottom: 5 },
709
709
  {
@@ -1,6 +1,6 @@
1
1
  export declare class ExpiringDrugPDFService {
2
2
  static GetPrint(ReOrderPointData: any, DatesDetails: any): any;
3
- static GetDate(DatesDetails: any): string;
3
+ static GetDate(DatesDetails: any, UserTimeZone: any): string;
4
4
  static CustomerAndVehicleDetailsAfterLine(): {
5
5
  canvas: {
6
6
  type: string;
@@ -20,7 +20,7 @@ class ExpiringDrugPDFService {
20
20
  pageSize: 'A4',
21
21
  content: [
22
22
  { text: ReOrderPointData.Entity.CName, style: ['headerstyle'], alignment: 'center', fontSize: 20 },
23
- { text: 'Expiring Drugs (' + this.GetDate(DatesDetails) + ')', style: ['headerstyle'], alignment: 'center', fontSize: 12 },
23
+ { text: 'Expiring Drugs (' + this.GetDate(DatesDetails, ReOrderPointData.Entity.User.TZ) + ')', style: ['headerstyle'], alignment: 'center', fontSize: 12 },
24
24
  this.GetItemsTable(ReOrderPointData.Items),
25
25
  this.GetSignatures(ReOrderPointData.Entity.CName, ReOrderPointData.Type, ReOrderPointData.For),
26
26
  ],
@@ -59,12 +59,12 @@ class ExpiringDrugPDFService {
59
59
  };
60
60
  return dd;
61
61
  }
62
- static GetDate(DatesDetails) {
62
+ static GetDate(DatesDetails, UserTimeZone) {
63
63
  if (DatesDetails.Date === 'CustomRange') {
64
- return my_date_1.MyDate.GetWeekAndDate(DatesDetails.StDate) + ' - ' + my_date_1.MyDate.GetWeekAndDate(DatesDetails.EnDate);
64
+ return my_date_1.MyDate.GetWeekAndDate(DatesDetails.StDate, UserTimeZone) + ' - ' + my_date_1.MyDate.GetWeekAndDate(DatesDetails.EnDate, UserTimeZone);
65
65
  }
66
66
  else {
67
- return 'till ' + my_date_1.MyDate.GetWeekAndDate(DatesDetails.EnDate);
67
+ return 'till ' + my_date_1.MyDate.GetWeekAndDate(DatesDetails.EnDate, UserTimeZone);
68
68
  }
69
69
  }
70
70
  static CustomerAndVehicleDetailsAfterLine() {
@@ -18,8 +18,6 @@ class ItemWiseMODetailsPDF {
18
18
  content: [
19
19
  { text: '' + CName + '', style: ['header'] },
20
20
  { text: HeaderName, alignment: 'center', fontSize: 15, bold: true },
21
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
22
- // SharedPDFService.HeaderAfterLine(),
23
21
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
24
22
  this.GetInvoiceDataTable(InvoicesData, isPhar, isHC),
25
23
  ],
@@ -16,8 +16,6 @@ class ItemWiseMOSummaryPDF {
16
16
  content: [
17
17
  { text: '' + CName + '', style: ['header'] },
18
18
  { text: HeaderName, alignment: 'center', fontSize: 15, bold: true },
19
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
20
- // SharedPDFService.HeaderAfterLine(),
21
19
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
22
20
  this.GetInvoiceDataTable(InvoicesData, isPhar, isHC),
23
21
  ],
@@ -20,7 +20,7 @@ class ReorderPointPDFService {
20
20
  pageSize: 'A4',
21
21
  content: [
22
22
  { text: ReOrderPointData.Entity.CName, style: ['headerstyle'], alignment: 'center', fontSize: 20 },
23
- { text: 'Reorder Point (' + 'As of ' + my_date_1.MyDate.ConvertUTCDateToReadable(my_date_1.MyDate.GetDateTimeNowInUTC()) + ')', style: ['headerstyle'], alignment: 'center', fontSize: 12 },
23
+ { text: 'Reorder Point (' + 'As of ' + my_date_1.MyDate.ConvertUTCDateToReadable(my_date_1.MyDate.GetDateTimeNowInUTC(ReOrderPointData.Entity.User.TZ)) + ')', style: ['headerstyle'], alignment: 'center', fontSize: 12 },
24
24
  { text: 'Items need to be Ordered', style: ['headerstyle'], alignment: 'left', fontSize: 10, marginTop: 10, decoration: 'underline' },
25
25
  this.GetItemsTable(ReOrderPointData.Items),
26
26
  this.GetSignatures(ReOrderPointData.Entity.CName, ReOrderPointData.Type, ReOrderPointData.For),
@@ -17,8 +17,7 @@ class TransferOrderPrintService {
17
17
  content: [
18
18
  { text: ReOrderPointData.Entity.CName, style: ['headerstyle'], alignment: 'center', fontSize: 20 },
19
19
  shared_pdf_service_1.SharedPDFService.GetPrintType('Transfer Order'),
20
- shared_pdf_service_1.SharedPDFService.HeaderAfterLine(), // { text: 'Reorder Point (' + 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()) + ')', style: ['headerstyle'], alignment: 'center', fontSize: 12 },
21
- // { text: 'Items need to be Ordered', style: ['headerstyle'], alignment: 'left', fontSize: 10, marginTop: 10, decoration: 'underline' },
20
+ shared_pdf_service_1.SharedPDFService.HeaderAfterLine(),
22
21
  { text: 'From : ' + ReOrderPointData.FromName, style: 'hed', marginTop: 5 },
23
22
  { text: 'To : ' + ReOrderPointData.ToName, style: 'hed' },
24
23
  { text: 'Date : ' + ReOrderPointData.Date, style: 'hed', marginBottom: 5 },
@@ -1,5 +1,5 @@
1
1
  export declare class VendorBalancesService {
2
- static GetVendorBalancesPrint(BillData: any, CName: any): {
2
+ static GetVendorBalancesPrint(BillData: any, EntityData: any): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -5,7 +5,7 @@ const shared_pdf_service_1 = require("../../../../shared/shared-pdf.service");
5
5
  const my_date_1 = require("../../../../utils/my-date");
6
6
  const tr_utils_1 = require("../../../../utils/tr-utils");
7
7
  class VendorBalancesService {
8
- static GetVendorBalancesPrint(BillData, CName) {
8
+ static GetVendorBalancesPrint(BillData, EntityData) {
9
9
  var dd = {
10
10
  info: {
11
11
  title: 'VendorBalances'
@@ -15,9 +15,9 @@ class VendorBalancesService {
15
15
  },
16
16
  pageMargins: [10, 15, 10, 15],
17
17
  content: [
18
- { text: '' + CName + '', style: ['header'] },
18
+ { text: '' + EntityData.Entity.DName + '', style: ['header'] },
19
19
  { text: 'Vendor Balances', alignment: 'center', fontSize: 15, bold: true },
20
- { text: 'As of ' + my_date_1.MyDate.ConvertUTCDateToReadable(my_date_1.MyDate.GetDateTimeNowInUTC()),
20
+ { text: 'As of ' + my_date_1.MyDate.ConvertUTCDateToReadable(my_date_1.MyDate.GetDateTimeNowInUTC(EntityData.Entity.User.TZ)),
21
21
  alignment: 'center', fontSize: 10 },
22
22
  // SharedPDFService.HeaderAfterLine(),
23
23
  this.GetBillDataTable(BillData),
@@ -1,24 +1,24 @@
1
1
  export declare class POTotalsService {
2
- static GetTotalsValue(ItemsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, Disc: any, Perc: any, TaxCodes: any, WithItems: boolean): any;
2
+ static GetTotalsValue(ItemsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, Disc: any, Perc: any, TaxCodes: any, WithItems: boolean, EntitySettings: any): any;
3
3
  static CalculateItemValues(ItemsList: any): any;
4
4
  static ResetItemValues(ItemsList: any): any;
5
5
  static ResetItemValueIfInvalid(Item: any): any;
6
6
  static GetItemDiscountedPrice(Price: any, Qty: any, Disc: any, DiscInPerc: boolean): any;
7
7
  static GetItemTotalAfterDiscount(Price: any, Qty: any, Disc: any, DiscInPerc: boolean): number;
8
- static GetFinalPODataForSave(ItemsList: any, IsIndependentTax: boolean, Disc: any, Perc: any, DetailedInfo: boolean): any;
8
+ static GetFinalPODataForSave(ItemsList: any, IsIndependentTax: boolean, Disc: any, Perc: any, DetailedInfo: boolean, DecimalsNumber: number): any;
9
9
  static ResetRecordDiscountsIfInvalid(Disc: any, Perc: boolean, finalTotalsData: any, DetailedInfo: boolean): any;
10
- static GetFinalTotalsData(finalTotalsData: any, ItemsList: any, IsIndependentTax: boolean, Disc: any, Perc: boolean, DetailedInfo: boolean): any;
10
+ static GetFinalTotalsData(finalTotalsData: any, ItemsList: any, IsIndependentTax: boolean, Disc: any, Perc: boolean, DetailedInfo: boolean, DecimalsNumber: number): any;
11
11
  static GetSubTotal(ItemsList: any): any;
12
- static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, ItemsList: any, TaxCodes: any): any;
12
+ static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, ItemsList: any, TaxCodes: any, DecimalsNumber: number): any;
13
13
  static GetItemGSTTaxTotal(ItemsList: Array<any>): number[];
14
14
  static GetItemDiscountedTotal(ItemsList: any): any;
15
15
  static GetItemsTotalAfterDiscount(ItemsList: any): any;
16
16
  static GetItemsTaxTotal(ItemsList: any, IsIndependentTax: boolean): any;
17
17
  static GetTotalBasedOnTaxType(ItemsTaxAmount: number, ItemsList: any, IsIndependentTax: boolean, Discount: number, DiscInPerc: boolean): number;
18
- static GetItemsTaxGrouping(ItemsList: any, TaxCodes: any): any[];
19
- static GetTaxGroupingItemsByHSN(Items: any, TaxCodes: any): any[];
18
+ static GetItemsTaxGrouping(ItemsList: any, TaxCodes: any, DecimalsNumber: number): any[];
19
+ static GetTaxGroupingItemsByHSN(Items: any, TaxCodes: any, DecimalsNumber: number): any[];
20
20
  static GetCombinedTaxPercentage(Items: any, TaxCodes: any): any;
21
21
  static CompareItemsByHSN(Items: any, TaxCodes: any): any[];
22
- static GetTaxGroupingInfoByHSN(FinalMatchedItems: any, TaxCodes: any): any[];
22
+ static GetTaxGroupingInfoByHSN(FinalMatchedItems: any, TaxCodes: any, DecimalsNumber: number): any[];
23
23
  static GetGSTValueBasedOnTaxCode(TCode: any, argTaxCodes: any): any[];
24
24
  }