shareneus 1.4.49 → 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 (68) hide show
  1. package/dist/accounting/invoice/reports/excel/analysis-excel.service.d.ts +3 -3
  2. package/dist/accounting/invoice/reports/excel/analysis-excel.service.js +8 -7
  3. package/dist/accounting/invoice/reports/excel/category-wise-item-excel.service.d.ts +4 -4
  4. package/dist/accounting/invoice/reports/excel/category-wise-item-excel.service.js +14 -14
  5. package/dist/accounting/invoice/reports/excel/cust-wise-sales-details.d.ts +4 -4
  6. package/dist/accounting/invoice/reports/excel/cust-wise-sales-details.js +8 -8
  7. package/dist/accounting/invoice/reports/excel/cust-wise-sales-summary-excel.service.d.ts +4 -4
  8. package/dist/accounting/invoice/reports/excel/cust-wise-sales-summary-excel.service.js +8 -8
  9. package/dist/accounting/invoice/reports/excel/invoice-wise-excel.service.d.ts +4 -4
  10. package/dist/accounting/invoice/reports/excel/invoice-wise-excel.service.js +8 -8
  11. package/dist/accounting/invoice/reports/excel/item-wise-doctor-sale-excel.service.d.ts +4 -4
  12. package/dist/accounting/invoice/reports/excel/item-wise-doctor-sale-excel.service.js +10 -10
  13. package/dist/accounting/invoice/reports/excel/items-wise-sales-excel.service.d.ts +4 -4
  14. package/dist/accounting/invoice/reports/excel/items-wise-sales-excel.service.js +14 -13
  15. package/dist/accounting/invoice/reports/excel/manf-wise-sales-excel.service.d.ts +4 -4
  16. package/dist/accounting/invoice/reports/excel/manf-wise-sales-excel.service.js +8 -8
  17. package/dist/accounting/invoice/reports/excel/operator-wise-details.d.ts +4 -4
  18. package/dist/accounting/invoice/reports/excel/operator-wise-details.js +8 -8
  19. package/dist/accounting/invoice/reports/excel/operator-wise-summary.d.ts +4 -4
  20. package/dist/accounting/invoice/reports/excel/operator-wise-summary.js +8 -8
  21. package/dist/gst/excel/GSTR-RO-excel.service.d.ts +4 -4
  22. package/dist/gst/excel/GSTR-RO-excel.service.js +8 -8
  23. package/dist/gst/excel/GSTR1-excel.service.d.ts +4 -4
  24. package/dist/gst/excel/GSTR1-excel.service.js +10 -10
  25. package/dist/gst/excel/GSTR2-excel.service.d.ts +4 -4
  26. package/dist/gst/excel/GSTR2-excel.service.js +9 -9
  27. package/dist/gst/excel/tally-sales-import.service.d.ts +4 -4
  28. package/dist/gst/excel/tally-sales-import.service.js +8 -8
  29. package/dist/inventory/items/issue-parts-pdf.service.d.ts +6 -6
  30. package/dist/inventory/items/issue-parts-pdf.service.js +32 -32
  31. package/dist/inventory/items/reports/excel/expiring-drugs-excel.service.d.ts +4 -4
  32. package/dist/inventory/items/reports/excel/expiring-drugs-excel.service.js +11 -10
  33. package/dist/inventory/items/reports/excel/item-wise-mout-details.d.ts +4 -4
  34. package/dist/inventory/items/reports/excel/item-wise-mout-details.js +8 -8
  35. package/dist/inventory/items/reports/excel/item-wise-mout-summary.d.ts +4 -4
  36. package/dist/inventory/items/reports/excel/item-wise-mout-summary.js +8 -8
  37. package/dist/inventory/items/reports/excel/spares-issue-excel.service.d.ts +4 -4
  38. package/dist/inventory/items/reports/excel/spares-issue-excel.service.js +12 -12
  39. package/dist/inventory/items/reports/excel/stock-excel.service.d.ts +4 -4
  40. package/dist/inventory/items/reports/excel/stock-excel.service.js +8 -8
  41. package/dist/purchases/payment-made/reports/excel/payments-made-excel.service.d.ts +4 -4
  42. package/dist/purchases/payment-made/reports/excel/payments-made-excel.service.js +9 -9
  43. package/dist/purchases/payment-made/reports/excel/ven-balance-excel.service.d.ts +6 -6
  44. package/dist/purchases/payment-made/reports/excel/ven-balance-excel.service.js +14 -14
  45. package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.d.ts +1 -1
  46. package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.js +20 -20
  47. package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +8 -8
  48. package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.js +31 -32
  49. package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +6 -6
  50. package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.js +19 -19
  51. package/dist/sales/delivery-challan/delivery-challan-print.service.js +2 -2
  52. package/dist/sales/delivery-challan/delivery-challan-totals.d.ts +6 -6
  53. package/dist/sales/delivery-challan/delivery-challan-totals.js +20 -20
  54. package/dist/sales/sales/sales-print.service.js +1 -1
  55. package/dist/sales/sales/sales-totals.service.d.ts +6 -6
  56. package/dist/sales/sales/sales-totals.service.js +19 -19
  57. package/dist/services/est.print-service.js +1 -1
  58. package/dist/services/reports/excel/insurance-expire-excel.service.d.ts +4 -4
  59. package/dist/services/reports/excel/insurance-expire-excel.service.js +8 -8
  60. package/dist/services/reports/excel/next-service-date-excel.service.d.ts +4 -4
  61. package/dist/services/reports/excel/next-service-date-excel.service.js +8 -8
  62. package/dist/services/reports/excel/repair-orders-excel.service.d.ts +5 -5
  63. package/dist/services/reports/excel/repair-orders-excel.service.js +11 -11
  64. package/dist/services/ro-print-service.js +1 -1
  65. package/dist/services/ro-totals.service.d.ts +11 -11
  66. package/dist/services/ro-totals.service.js +50 -50
  67. package/dist/utils/tr-utils.js +2 -1
  68. package/package.json +1 -1
@@ -28,7 +28,7 @@ const XLSX = __importStar(require("xlsx"));
28
28
  const my_date_1 = require("../../../../utils/my-date");
29
29
  const tr_utils_1 = require("../../../../utils/tr-utils");
30
30
  class ManfWiseSalesXlsxFileService {
31
- static GetManfWiseSalesExcelData(MainData, searchValue, HeaderName, isDetails) {
31
+ static GetManfWiseSalesExcelData(MainData, searchValue, HeaderName, isDetails, EntitySettings) {
32
32
  this.wb = {};
33
33
  this.ws = {};
34
34
  this.Row = 0;
@@ -66,7 +66,7 @@ class ManfWiseSalesXlsxFileService {
66
66
  }
67
67
  MainData = this.GetTotals(MainData);
68
68
  this.setHeadingInCell(HeaderName, showSearch, isDetails);
69
- this.setInvoiceDetailsInCell(MainData, isDetails);
69
+ this.setInvoiceDetailsInCell(MainData, isDetails, EntitySettings.DecimalsNumber);
70
70
  this.ws['!ref'] = XLSX.utils.encode_range(this.range);
71
71
  this.ws['!merges'] = this.MergeArray;
72
72
  this.ws["!cols"] = [{ wch: 50 }, { wch: 10 }, { wch: 10 }, { wch: 10 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 20 }];
@@ -199,12 +199,12 @@ class ManfWiseSalesXlsxFileService {
199
199
  });
200
200
  this.Row += 2;
201
201
  }
202
- static setInvoiceDetailsInCell(MainData, isDetails) {
202
+ static setInvoiceDetailsInCell(MainData, isDetails, DecimalsNumber) {
203
203
  MainData.forEach((InvoiceList) => {
204
- this.SetInvoiceDataInExcel(InvoiceList, isDetails);
204
+ this.SetInvoiceDataInExcel(InvoiceList, isDetails, DecimalsNumber);
205
205
  });
206
206
  }
207
- static SetInvoiceDataInExcel(InvoiceInfo, isDetails) {
207
+ static SetInvoiceDataInExcel(InvoiceInfo, isDetails, DecimalsNumber) {
208
208
  // InvoiceInfo.CrDate = this.ConvertDateToReadableFormat(InvoiceInfo.CrDate);
209
209
  let InvoiceData = [
210
210
  { text: InvoiceInfo.ShortName, ColRange: 1, IsString: true },
@@ -218,7 +218,7 @@ class ManfWiseSalesXlsxFileService {
218
218
  ];
219
219
  let ColStart = 0;
220
220
  InvoiceData.forEach((InvData) => {
221
- InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
221
+ InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
222
222
  this.SetDataInCell(InvData.text, ColStart, this.Row);
223
223
  this.MergeArray.push({
224
224
  s: { r: this.Row, c: ColStart },
@@ -228,7 +228,7 @@ class ManfWiseSalesXlsxFileService {
228
228
  });
229
229
  this.Row += 1;
230
230
  }
231
- static ConvertToString(Text, IsString) {
231
+ static ConvertToString(Text, IsString, DecimalsNumber) {
232
232
  if (IsString) {
233
233
  if (Text == null) {
234
234
  Text = '';
@@ -240,7 +240,7 @@ class ManfWiseSalesXlsxFileService {
240
240
  }
241
241
  }
242
242
  if (typeof Text === 'number') {
243
- return Number(tr_utils_1.TrUtils.FixedTo(Text));
243
+ return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
244
244
  }
245
245
  else {
246
246
  return Text;
@@ -13,11 +13,11 @@ export declare class OperatorWiseDetailsXlsxFileService {
13
13
  };
14
14
  };
15
15
  static ws: any;
16
- static GetOperatorWiseDetailsExcelData(MainData: any, searchValue: any, isSale: boolean): any;
16
+ static GetOperatorWiseDetailsExcelData(MainData: any, searchValue: any, isSale: boolean, EntitySettings: any): any;
17
17
  static setHeadingInCell(isSale: boolean, searchValue: any): void;
18
- static setInvoiceDetailsInCell(MainData: any): void;
19
- static SetInvoiceDataInExcel(InvoiceInfo: any): void;
20
- static ConvertToString(Text: any, IsString: any): any;
18
+ static setInvoiceDetailsInCell(MainData: any, DecimalsNumber: number): void;
19
+ static SetInvoiceDataInExcel(InvoiceInfo: any, DecimalsNumber: number): void;
20
+ static ConvertToString(Text: any, IsString: any, DecimalsNumber: number): any;
21
21
  static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
22
22
  static getcelltype(cell: any): any;
23
23
  }
@@ -28,7 +28,7 @@ const XLSX = __importStar(require("xlsx"));
28
28
  const my_date_1 = require("../../../../utils/my-date");
29
29
  const tr_utils_1 = require("../../../../utils/tr-utils");
30
30
  class OperatorWiseDetailsXlsxFileService {
31
- static GetOperatorWiseDetailsExcelData(MainData, searchValue, isSale) {
31
+ static GetOperatorWiseDetailsExcelData(MainData, searchValue, isSale, EntitySettings) {
32
32
  this.wb = {};
33
33
  this.ws = {};
34
34
  this.Row = 0;
@@ -66,7 +66,7 @@ class OperatorWiseDetailsXlsxFileService {
66
66
  // console.log(`${key}: ${searchValue[key]}`);
67
67
  }
68
68
  this.setHeadingInCell(isSale, showSearch);
69
- this.setInvoiceDetailsInCell(MainData);
69
+ this.setInvoiceDetailsInCell(MainData, EntitySettings.DecimalsNumber);
70
70
  this.ws['!ref'] = XLSX.utils.encode_range(this.range);
71
71
  this.ws['!merges'] = this.MergeArray;
72
72
  this.ws["!cols"] = [{ wch: 15 }, { wch: 10 }, { wch: 50 }, { wch: 10 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 20 }];
@@ -187,12 +187,12 @@ class OperatorWiseDetailsXlsxFileService {
187
187
  });
188
188
  this.Row += 2;
189
189
  }
190
- static setInvoiceDetailsInCell(MainData) {
190
+ static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
191
191
  MainData.forEach((InvoiceList) => {
192
- this.SetInvoiceDataInExcel(InvoiceList);
192
+ this.SetInvoiceDataInExcel(InvoiceList, DecimalsNumber);
193
193
  });
194
194
  }
195
- static SetInvoiceDataInExcel(InvoiceInfo) {
195
+ static SetInvoiceDataInExcel(InvoiceInfo, DecimalsNumber) {
196
196
  InvoiceInfo.Date = my_date_1.MyDate.ConvertUTCDateToReadable(InvoiceInfo.CrDate);
197
197
  let InvoiceData = [
198
198
  { text: InvoiceInfo.Code, ColRange: 1, IsString: true },
@@ -207,7 +207,7 @@ class OperatorWiseDetailsXlsxFileService {
207
207
  ];
208
208
  let ColStart = 0;
209
209
  InvoiceData.forEach((InvData) => {
210
- InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
210
+ InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
211
211
  this.SetDataInCell(InvData.text, ColStart, this.Row);
212
212
  this.MergeArray.push({
213
213
  s: { r: this.Row, c: ColStart },
@@ -217,7 +217,7 @@ class OperatorWiseDetailsXlsxFileService {
217
217
  });
218
218
  this.Row += 1;
219
219
  }
220
- static ConvertToString(Text, IsString) {
220
+ static ConvertToString(Text, IsString, DecimalsNumber) {
221
221
  if (IsString) {
222
222
  if (Text == null) {
223
223
  Text = '';
@@ -229,7 +229,7 @@ class OperatorWiseDetailsXlsxFileService {
229
229
  }
230
230
  }
231
231
  if (typeof Text === 'number') {
232
- return Number(tr_utils_1.TrUtils.FixedTo(Text));
232
+ return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
233
233
  }
234
234
  else {
235
235
  return Text;
@@ -13,11 +13,11 @@ export declare class OperatorWiseSummaryXlsxFileService {
13
13
  };
14
14
  };
15
15
  static ws: any;
16
- static GetOperatorWiseSummaryExcelData(MainData: any, searchValue: any, HeaderName: any): any;
16
+ static GetOperatorWiseSummaryExcelData(MainData: any, searchValue: any, HeaderName: any, EntitySettings: any): any;
17
17
  static setHeadingInCell(HeaderName: any, searchValue: any): void;
18
- static setInvoiceDetailsInCell(MainData: any): void;
19
- static SetInvoiceDataInExcel(InvoiceInfo: any): void;
20
- static ConvertToString(Text: any, IsString: any): any;
18
+ static setInvoiceDetailsInCell(MainData: any, DecimalsNumber: number): void;
19
+ static SetInvoiceDataInExcel(InvoiceInfo: any, DecimalsNumber: number): void;
20
+ static ConvertToString(Text: any, IsString: any, DecimalsNumber: number): any;
21
21
  static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
22
22
  static getcelltype(cell: any): any;
23
23
  }
@@ -28,7 +28,7 @@ const XLSX = __importStar(require("xlsx"));
28
28
  const my_date_1 = require("../../../../utils/my-date");
29
29
  const tr_utils_1 = require("../../../../utils/tr-utils");
30
30
  class OperatorWiseSummaryXlsxFileService {
31
- static GetOperatorWiseSummaryExcelData(MainData, searchValue, HeaderName) {
31
+ static GetOperatorWiseSummaryExcelData(MainData, searchValue, HeaderName, EntitySettings) {
32
32
  this.wb = {};
33
33
  this.ws = {};
34
34
  this.Row = 0;
@@ -66,7 +66,7 @@ class OperatorWiseSummaryXlsxFileService {
66
66
  // console.log(`${key}: ${searchValue[key]}`);
67
67
  }
68
68
  this.setHeadingInCell(HeaderName, showSearch);
69
- this.setInvoiceDetailsInCell(MainData);
69
+ this.setInvoiceDetailsInCell(MainData, EntitySettings.DecimalsNumber);
70
70
  this.ws['!ref'] = XLSX.utils.encode_range(this.range);
71
71
  this.ws['!merges'] = this.MergeArray;
72
72
  this.ws["!cols"] = [{ wch: 50 }, { wch: 10 }, { wch: 10 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 20 }];
@@ -187,12 +187,12 @@ class OperatorWiseSummaryXlsxFileService {
187
187
  });
188
188
  this.Row += 2;
189
189
  }
190
- static setInvoiceDetailsInCell(MainData) {
190
+ static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
191
191
  MainData.forEach((InvoiceList) => {
192
- this.SetInvoiceDataInExcel(InvoiceList);
192
+ this.SetInvoiceDataInExcel(InvoiceList, DecimalsNumber);
193
193
  });
194
194
  }
195
- static SetInvoiceDataInExcel(InvoiceInfo) {
195
+ static SetInvoiceDataInExcel(InvoiceInfo, DecimalsNumber) {
196
196
  // InvoiceInfo.Date = TrUtils.ConvertDateToReadableFormat(InvoiceInfo.CrDate);
197
197
  let InvoiceData = [
198
198
  // { text: InvoiceInfo.Code, ColRange: 1, IsString: true },
@@ -208,7 +208,7 @@ class OperatorWiseSummaryXlsxFileService {
208
208
  ];
209
209
  let ColStart = 0;
210
210
  InvoiceData.forEach((InvData) => {
211
- InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
211
+ InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
212
212
  this.SetDataInCell(InvData.text, ColStart, this.Row);
213
213
  this.MergeArray.push({
214
214
  s: { r: this.Row, c: ColStart },
@@ -218,7 +218,7 @@ class OperatorWiseSummaryXlsxFileService {
218
218
  });
219
219
  this.Row += 1;
220
220
  }
221
- static ConvertToString(Text, IsString) {
221
+ static ConvertToString(Text, IsString, DecimalsNumber) {
222
222
  if (IsString) {
223
223
  if (Text == null) {
224
224
  Text = '';
@@ -230,7 +230,7 @@ class OperatorWiseSummaryXlsxFileService {
230
230
  }
231
231
  }
232
232
  if (typeof Text === 'number') {
233
- return Number(tr_utils_1.TrUtils.FixedTo(Text));
233
+ return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
234
234
  }
235
235
  else {
236
236
  return Text;
@@ -14,13 +14,13 @@ export declare class GSTROXlsxFileService {
14
14
  };
15
15
  static ws: any;
16
16
  static MainHeadings: any[];
17
- static GetGSTROExcelData(MainData: any, WOTypes: any): any;
17
+ static GetGSTROExcelData(MainData: any, WOTypes: any, EntitySettings: any): any;
18
18
  static GetTotals(MainData: any, WOTypes: any): any;
19
19
  static GetWOTypeName(Type: any, WOTypes: any): any;
20
20
  static setHeadingInCell(MainData: any): void;
21
- static setInvoiceDetailsInCell(MainData: any): void;
22
- static SetInvoiceDataInExcel(InvoiceInfo: any, Index: any): void;
23
- static ConvertToString(Text: any, IsString: any): any;
21
+ static setInvoiceDetailsInCell(MainData: any, DecimalsNumber: number): void;
22
+ static SetInvoiceDataInExcel(InvoiceInfo: any, Index: any, DecimalsNumber: number): void;
23
+ static ConvertToString(Text: any, IsString: any, DecimalsNumber: number): any;
24
24
  static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
25
25
  static getcelltype(cell: any): any;
26
26
  static ConvertDateToReadableFormat(DateObject: any): any;
@@ -27,7 +27,7 @@ exports.GSTROXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
28
  const tr_utils_1 = require("../../utils/tr-utils");
29
29
  class GSTROXlsxFileService {
30
- static GetGSTROExcelData(MainData, WOTypes) {
30
+ static GetGSTROExcelData(MainData, WOTypes, EntitySettings) {
31
31
  this.wb = {};
32
32
  this.ws = {};
33
33
  this.Row = 0;
@@ -40,7 +40,7 @@ class GSTROXlsxFileService {
40
40
  this.wb.SheetNames = [];
41
41
  MainData = this.GetTotals(MainData, WOTypes);
42
42
  this.setHeadingInCell(MainData);
43
- this.setInvoiceDetailsInCell(MainData);
43
+ this.setInvoiceDetailsInCell(MainData, EntitySettings);
44
44
  this.ws['!ref'] = XLSX.utils.encode_range(this.range);
45
45
  this.ws['!merges'] = this.MergeArray;
46
46
  this.ws["!cols"] = [{ wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 50 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 },
@@ -767,16 +767,16 @@ class GSTROXlsxFileService {
767
767
  });
768
768
  this.Row += 2;
769
769
  }
770
- static setInvoiceDetailsInCell(MainData) {
770
+ static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
771
771
  let SNO = 0;
772
772
  MainData.forEach((InvoiceList) => {
773
773
  InvoiceList.Invoices.forEach((invoice, Index) => {
774
774
  SNO = SNO + 1;
775
- this.SetInvoiceDataInExcel(invoice, SNO);
775
+ this.SetInvoiceDataInExcel(invoice, SNO, DecimalsNumber);
776
776
  });
777
777
  });
778
778
  }
779
- static SetInvoiceDataInExcel(InvoiceInfo, Index) {
779
+ static SetInvoiceDataInExcel(InvoiceInfo, Index, DecimalsNumber) {
780
780
  // console.log(InvoiceInfo);
781
781
  InvoiceInfo.CrDate = this.ConvertDateToReadableFormat(InvoiceInfo.CrDate);
782
782
  let InvoiceData = [];
@@ -844,7 +844,7 @@ class GSTROXlsxFileService {
844
844
  });
845
845
  let ColStart = 0;
846
846
  InvoiceData.forEach((InvData) => {
847
- InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
847
+ InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
848
848
  this.SetDataInCell(InvData.text, ColStart, this.Row);
849
849
  this.MergeArray.push({
850
850
  s: { r: this.Row, c: ColStart },
@@ -854,7 +854,7 @@ class GSTROXlsxFileService {
854
854
  });
855
855
  this.Row += 1;
856
856
  }
857
- static ConvertToString(Text, IsString) {
857
+ static ConvertToString(Text, IsString, DecimalsNumber) {
858
858
  if (IsString) {
859
859
  if (Text == null) {
860
860
  Text = '';
@@ -866,7 +866,7 @@ class GSTROXlsxFileService {
866
866
  }
867
867
  }
868
868
  if (typeof Text === 'number') {
869
- return Number(tr_utils_1.TrUtils.FixedTo(Text));
869
+ return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
870
870
  }
871
871
  else {
872
872
  return Text;
@@ -4,12 +4,12 @@ export declare class GSTR1ExcelService {
4
4
  static MergeArray: any[];
5
5
  static range: any;
6
6
  static ws: any;
7
- static GetGSTR1ExcelData(MainData: any): any;
7
+ static GetGSTR1ExcelData(MainData: any, EntitySettings: any): any;
8
8
  static GetTotals(MainData: any): any;
9
9
  static setHeadingInCell(): void;
10
- static setInvoiceDetailsInCell(MainData: any): void;
11
- static SetInvoiceDataInExcel(InvoiceList: any): void;
12
- static ConvertToString(Text: any, IsString: any): any;
10
+ static setInvoiceDetailsInCell(MainData: any, DecimalsNumber: number): void;
11
+ static SetInvoiceDataInExcel(InvoiceList: any, DecimalsNumber: number): void;
12
+ static ConvertToString(Text: any, IsString: any, DecimalsNumber: number): any;
13
13
  static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
14
14
  static getcelltype(cell: any): any;
15
15
  static ConvertDateToReadableFormat(DateObject: any): any;
@@ -27,7 +27,7 @@ exports.GSTR1ExcelService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
28
  const tr_utils_1 = require("../../utils/tr-utils");
29
29
  class GSTR1ExcelService {
30
- static GetGSTR1ExcelData(MainData) {
30
+ static GetGSTR1ExcelData(MainData, EntitySettings) {
31
31
  this.wb = {};
32
32
  this.ws = {};
33
33
  this.Row = 0;
@@ -40,7 +40,7 @@ class GSTR1ExcelService {
40
40
  this.wb.SheetNames = [];
41
41
  MainData = this.GetTotals(MainData);
42
42
  this.setHeadingInCell();
43
- this.setInvoiceDetailsInCell(MainData);
43
+ this.setInvoiceDetailsInCell(MainData, EntitySettings.DecimalsNumber);
44
44
  this.ws['!ref'] = XLSX.utils.encode_range(this.range);
45
45
  this.ws['!merges'] = this.MergeArray;
46
46
  this.wb.SheetNames.push(ws_name);
@@ -124,12 +124,12 @@ class GSTR1ExcelService {
124
124
  });
125
125
  this.Row += 2;
126
126
  }
127
- static setInvoiceDetailsInCell(MainData) {
127
+ static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
128
128
  MainData.forEach((InvoiceList) => {
129
- this.SetInvoiceDataInExcel(InvoiceList);
129
+ this.SetInvoiceDataInExcel(InvoiceList, DecimalsNumber);
130
130
  });
131
131
  }
132
- static SetInvoiceDataInExcel(InvoiceList) {
132
+ static SetInvoiceDataInExcel(InvoiceList, DecimalsNumber) {
133
133
  InvoiceList.Invoices.forEach((InvoiceInfo, index) => {
134
134
  // let InvoiceInfo = InvoiceInfoData.Inv;
135
135
  InvoiceInfo.CrDate = this.ConvertDateToReadableFormat(InvoiceInfo.CrDate);
@@ -160,7 +160,7 @@ class GSTR1ExcelService {
160
160
  ];
161
161
  let ColStart = 0;
162
162
  InvoiceData.forEach((InvData) => {
163
- InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
163
+ InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
164
164
  this.SetDataInCell(InvData.text, ColStart, this.Row);
165
165
  this.MergeArray.push({ s: { r: this.Row, c: ColStart }, e: { r: this.Row, c: ColStart + InvData.ColRange - 1 } });
166
166
  ColStart += InvData.ColRange;
@@ -180,7 +180,7 @@ class GSTR1ExcelService {
180
180
  ];
181
181
  let PartColStart = TotalsColStart + 1;
182
182
  PartData.forEach((PartInfo) => {
183
- PartInfo.text = this.ConvertToString(PartInfo.text, PartInfo.IsString);
183
+ PartInfo.text = this.ConvertToString(PartInfo.text, PartInfo.IsString, DecimalsNumber);
184
184
  this.SetDataInCell(PartInfo.text, PartColStart, this.Row);
185
185
  this.MergeArray.push({ s: { r: this.Row, c: PartColStart }, e: { r: this.Row, c: PartColStart + PartInfo.ColRange - 1 } });
186
186
  PartColStart += PartInfo.ColRange;
@@ -203,7 +203,7 @@ class GSTR1ExcelService {
203
203
  ];
204
204
  let LaborColStart = TotalsColStart + 1;
205
205
  ServiceData.forEach((ServiceInfo) => {
206
- ServiceInfo.text = this.ConvertToString(ServiceInfo.text, ServiceInfo.IsString);
206
+ ServiceInfo.text = this.ConvertToString(ServiceInfo.text, ServiceInfo.IsString, DecimalsNumber);
207
207
  this.SetDataInCell(ServiceInfo.text, LaborColStart, this.Row);
208
208
  this.MergeArray.push({ s: { r: this.Row, c: LaborColStart }, e: { r: this.Row, c: LaborColStart + ServiceInfo.ColRange - 1 } });
209
209
  LaborColStart += ServiceInfo.ColRange;
@@ -215,7 +215,7 @@ class GSTR1ExcelService {
215
215
  this.Row += 1;
216
216
  });
217
217
  }
218
- static ConvertToString(Text, IsString) {
218
+ static ConvertToString(Text, IsString, DecimalsNumber) {
219
219
  if (IsString) {
220
220
  if (tr_utils_1.TrUtils.IsNull(Text)) {
221
221
  Text = '';
@@ -227,7 +227,7 @@ class GSTR1ExcelService {
227
227
  }
228
228
  }
229
229
  if (typeof (Text) === 'number') {
230
- return Number(tr_utils_1.TrUtils.FixedTo(Text));
230
+ return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
231
231
  }
232
232
  else {
233
233
  return Text;
@@ -4,12 +4,12 @@ export declare class GSTR2ExcelService {
4
4
  static MergeArray: any[];
5
5
  static range: any;
6
6
  static ws: any;
7
- static GetGSTR1ExcelData(MainData: any): any;
7
+ static GetGSTR1ExcelData(MainData: any, EntitySettings: any): any;
8
8
  static GetTotals(MainData: any): any;
9
9
  static setHeadingInCell(): void;
10
- static setInvoiceDetailsInCell(MainData: any): void;
11
- static SetInvoiceDataInExcel(InvoiceList: any): void;
12
- static ConvertToString(Text: any, IsString: any): any;
10
+ static setInvoiceDetailsInCell(MainData: any, DecimalsNumber: number): void;
11
+ static SetInvoiceDataInExcel(InvoiceList: any, DecimalsNumber: number): void;
12
+ static ConvertToString(Text: any, IsString: any, DecimalsNumber: number): any;
13
13
  static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
14
14
  static getcelltype(cell: any): any;
15
15
  static ConvertDateToReadableFormat(DateObject: any): any;
@@ -27,7 +27,7 @@ exports.GSTR2ExcelService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
28
  const tr_utils_1 = require("../../utils/tr-utils");
29
29
  class GSTR2ExcelService {
30
- static GetGSTR1ExcelData(MainData) {
30
+ static GetGSTR1ExcelData(MainData, EntitySettings) {
31
31
  this.wb = {};
32
32
  this.ws = {};
33
33
  this.Row = 0;
@@ -40,7 +40,7 @@ class GSTR2ExcelService {
40
40
  this.wb.SheetNames = [];
41
41
  MainData = this.GetTotals(MainData);
42
42
  this.setHeadingInCell();
43
- this.setInvoiceDetailsInCell(MainData);
43
+ this.setInvoiceDetailsInCell(MainData, EntitySettings.DecimalsNumber);
44
44
  this.ws['!ref'] = XLSX.utils.encode_range(this.range);
45
45
  this.ws['!merges'] = this.MergeArray;
46
46
  this.wb.SheetNames.push(ws_name);
@@ -124,12 +124,12 @@ class GSTR2ExcelService {
124
124
  });
125
125
  this.Row += 2;
126
126
  }
127
- static setInvoiceDetailsInCell(MainData) {
127
+ static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
128
128
  MainData.forEach((InvoiceList) => {
129
- this.SetInvoiceDataInExcel(InvoiceList);
129
+ this.SetInvoiceDataInExcel(InvoiceList, DecimalsNumber);
130
130
  });
131
131
  }
132
- static SetInvoiceDataInExcel(InvoiceList) {
132
+ static SetInvoiceDataInExcel(InvoiceList, DecimalsNumber) {
133
133
  InvoiceList.Bills.forEach((InvoiceInfo, index) => {
134
134
  // let InvoiceInfo = InvoiceInfoData.Inv;
135
135
  InvoiceInfo.CrDate = this.ConvertDateToReadableFormat(InvoiceInfo.CrDate);
@@ -160,7 +160,7 @@ class GSTR2ExcelService {
160
160
  ];
161
161
  let ColStart = 0;
162
162
  InvoiceData.forEach((InvData) => {
163
- InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
163
+ InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
164
164
  this.SetDataInCell(InvData.text, ColStart, this.Row);
165
165
  this.MergeArray.push({ s: { r: this.Row, c: ColStart }, e: { r: this.Row, c: ColStart + InvData.ColRange - 1 } });
166
166
  ColStart += InvData.ColRange;
@@ -180,7 +180,7 @@ class GSTR2ExcelService {
180
180
  ];
181
181
  let PartColStart = TotalsColStart + 1;
182
182
  PartData.forEach((PartInfo) => {
183
- PartInfo.text = this.ConvertToString(PartInfo.text, PartInfo.IsString);
183
+ PartInfo.text = this.ConvertToString(PartInfo.text, PartInfo.IsString, DecimalsNumber);
184
184
  this.SetDataInCell(PartInfo.text, PartColStart, this.Row);
185
185
  this.MergeArray.push({ s: { r: this.Row, c: PartColStart }, e: { r: this.Row, c: PartColStart + PartInfo.ColRange - 1 } });
186
186
  PartColStart += PartInfo.ColRange;
@@ -215,7 +215,7 @@ class GSTR2ExcelService {
215
215
  this.Row += 1;
216
216
  });
217
217
  }
218
- static ConvertToString(Text, IsString) {
218
+ static ConvertToString(Text, IsString, DecimalsNumber) {
219
219
  if (IsString) {
220
220
  if (tr_utils_1.TrUtils.IsNull(Text)) {
221
221
  Text = '';
@@ -227,7 +227,7 @@ class GSTR2ExcelService {
227
227
  }
228
228
  }
229
229
  if (typeof (Text) === 'number') {
230
- return Number(tr_utils_1.TrUtils.FixedTo(Text));
230
+ return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
231
231
  }
232
232
  else {
233
233
  return Text;
@@ -14,13 +14,13 @@ export declare class TallySalesImportXlsxFileService {
14
14
  };
15
15
  static ws: any;
16
16
  static MainHeadings: any[];
17
- static GetGSTROExcelData(MainData: any, WOTypes: any): any;
17
+ static GetGSTROExcelData(MainData: any, WOTypes: any, EntitySettings: any): any;
18
18
  static GetTotals(MainData: any, WOTypes: any): any;
19
19
  static GetWOTypeName(Type: any, WOTypes: any): any;
20
20
  static setHeadingInCell(MainData: any): void;
21
- static setInvoiceDetailsInCell(MainData: any): void;
22
- static SetInvoiceDataInExcel(InvoiceInfo: any, Index: any): void;
23
- static ConvertToString(Text: any, IsString: any): any;
21
+ static setInvoiceDetailsInCell(MainData: any, DecimalsNumber: number): void;
22
+ static SetInvoiceDataInExcel(InvoiceInfo: any, Index: any, DecimalsNumber: number): void;
23
+ static ConvertToString(Text: any, IsString: any, DecimalsNumber: number): any;
24
24
  static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
25
25
  static getcelltype(cell: any): any;
26
26
  static ConvertDateToReadableFormat(DateObject: any): any;
@@ -27,7 +27,7 @@ exports.TallySalesImportXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
28
  const tr_utils_1 = require("../../utils/tr-utils");
29
29
  class TallySalesImportXlsxFileService {
30
- static GetGSTROExcelData(MainData, WOTypes) {
30
+ static GetGSTROExcelData(MainData, WOTypes, EntitySettings) {
31
31
  this.wb = {};
32
32
  this.ws = {};
33
33
  this.Row = 0;
@@ -40,7 +40,7 @@ class TallySalesImportXlsxFileService {
40
40
  this.wb.SheetNames = [];
41
41
  MainData = this.GetTotals(MainData, WOTypes);
42
42
  this.setHeadingInCell(MainData);
43
- this.setInvoiceDetailsInCell(MainData);
43
+ this.setInvoiceDetailsInCell(MainData, EntitySettings.DecimalsNumber);
44
44
  this.ws['!ref'] = XLSX.utils.encode_range(this.range);
45
45
  this.ws['!merges'] = this.MergeArray;
46
46
  this.ws["!cols"] = [{ wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 50 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 },
@@ -596,16 +596,16 @@ class TallySalesImportXlsxFileService {
596
596
  });
597
597
  this.Row += 2;
598
598
  }
599
- static setInvoiceDetailsInCell(MainData) {
599
+ static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
600
600
  let SNO = 0;
601
601
  MainData.forEach((InvoiceList) => {
602
602
  InvoiceList.Invoices.forEach((invoice, Index) => {
603
603
  SNO = SNO + 1;
604
- this.SetInvoiceDataInExcel(invoice, SNO);
604
+ this.SetInvoiceDataInExcel(invoice, SNO, DecimalsNumber);
605
605
  });
606
606
  });
607
607
  }
608
- static SetInvoiceDataInExcel(InvoiceInfo, Index) {
608
+ static SetInvoiceDataInExcel(InvoiceInfo, Index, DecimalsNumber) {
609
609
  // console.log(InvoiceInfo);
610
610
  InvoiceInfo.CrDate = this.ConvertDateToReadableFormat(InvoiceInfo.CrDate);
611
611
  let InvoiceData = [];
@@ -673,7 +673,7 @@ class TallySalesImportXlsxFileService {
673
673
  });
674
674
  let ColStart = 0;
675
675
  InvoiceData.forEach((InvData) => {
676
- InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
676
+ InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
677
677
  this.SetDataInCell(InvData.text, ColStart, this.Row);
678
678
  this.MergeArray.push({
679
679
  s: { r: this.Row, c: ColStart },
@@ -683,7 +683,7 @@ class TallySalesImportXlsxFileService {
683
683
  });
684
684
  this.Row += 1;
685
685
  }
686
- static ConvertToString(Text, IsString) {
686
+ static ConvertToString(Text, IsString, DecimalsNumber) {
687
687
  if (IsString) {
688
688
  if (Text == null) {
689
689
  Text = '';
@@ -695,7 +695,7 @@ class TallySalesImportXlsxFileService {
695
695
  }
696
696
  }
697
697
  if (typeof Text === 'number') {
698
- return Number(tr_utils_1.TrUtils.FixedTo(Text));
698
+ return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
699
699
  }
700
700
  else {
701
701
  return Text;
@@ -225,10 +225,10 @@ export declare class IssuePartsprintService {
225
225
  })[];
226
226
  static PreparesparePartsTable(ROPrintData: any, isAuto: boolean): any;
227
227
  static GetLaborPartsTableForView(Parts: any, Ops: any, PrintPartNo: any): any;
228
- static WithOutDiscountFieldTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
229
- static BuildTableBodyForLaborAndParts(Parts: any, Labor: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
230
- static GetWithOutDiscAndTaxFieldHeader(Parts: any, Ops: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
231
- static TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
228
+ static WithOutDiscountFieldTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): any;
229
+ static BuildTableBodyForLaborAndParts(Parts: any, Labor: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): any;
230
+ static GetWithOutDiscAndTaxFieldHeader(Parts: any, Ops: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): any;
231
+ static TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): {
232
232
  style: string;
233
233
  table: {
234
234
  widths: (string | number)[];
@@ -241,7 +241,7 @@ export declare class IssuePartsprintService {
241
241
  vLineColor: (i: any, node: any) => string;
242
242
  };
243
243
  };
244
- static ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
244
+ static ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): {
245
245
  style: string;
246
246
  table: {
247
247
  widths: number[];
@@ -254,7 +254,7 @@ export declare class IssuePartsprintService {
254
254
  vLineColor: (i: any, node: any) => string;
255
255
  };
256
256
  };
257
- static NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
257
+ static NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): {
258
258
  style: string;
259
259
  table: {
260
260
  widths: number[];