shareneus 1.4.35 → 1.4.36

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 (125) hide show
  1. package/dist/aggregation/aggregation.js +13 -13
  2. package/dist/excel-files/GSTR-RO-excel.service.js +3 -3
  3. package/dist/excel-files/GSTR1-excel.service.js +7 -7
  4. package/dist/excel-files/GSTR2-excel.service.js +6 -6
  5. package/dist/excel-files/analysis-excel.service.js +4 -4
  6. package/dist/excel-files/category-wise-item-excel.service.js +10 -10
  7. package/dist/excel-files/cust-balance-excel.service.js +5 -5
  8. package/dist/excel-files/cust-wise-sales-details.js +5 -5
  9. package/dist/excel-files/cust-wise-sales-summary-excel.service.js +5 -5
  10. package/dist/excel-files/expiring-drugs-excel.service.js +7 -7
  11. package/dist/excel-files/insurance-expire-excel.service.js +4 -4
  12. package/dist/excel-files/invoice-wise-excel.service.js +3 -3
  13. package/dist/excel-files/item-wise-doctor-sale-excel.service.js +7 -7
  14. package/dist/excel-files/item-wise-mout-details.js +4 -4
  15. package/dist/excel-files/item-wise-mout-summary.js +4 -4
  16. package/dist/excel-files/items-wise-sales-excel.service.js +10 -10
  17. package/dist/excel-files/manf-wise-sales-excel.service.js +4 -4
  18. package/dist/excel-files/next-service-date-excel.service.js +5 -5
  19. package/dist/excel-files/operator-wise-details.js +4 -4
  20. package/dist/excel-files/operator-wise-summary.js +4 -4
  21. package/dist/excel-files/payment-receive-excel.service.js +6 -6
  22. package/dist/excel-files/payments-made-excel.service.js +6 -6
  23. package/dist/excel-files/repair-orders-excel.service.js +10 -10
  24. package/dist/excel-files/sa-wise-labor-sales-excel.service.js +6 -6
  25. package/dist/excel-files/sa-wise-part-sales-excel.service.js +6 -6
  26. package/dist/excel-files/sale-summary-excel.service.js +3 -3
  27. package/dist/excel-files/sales-by-service-summary-excel.service.js +14 -14
  28. package/dist/excel-files/scheduled-drug-summary-excel.service.js +8 -8
  29. package/dist/excel-files/scheduled-drugs-excel.service.js +10 -10
  30. package/dist/excel-files/spares-issue-excel.service.js +14 -14
  31. package/dist/excel-files/stock-excel.service.js +3 -3
  32. package/dist/excel-files/tally-sales-import.service.js +3 -3
  33. package/dist/excel-files/ven-balance-excel.service.js +3 -3
  34. package/dist/index.js +6 -6
  35. package/dist/services/analysis-pdf.service.js +8 -8
  36. package/dist/services/appointment-total.service.js +37 -37
  37. package/dist/services/auto-sales-receipt-pdf.service.js +24 -24
  38. package/dist/services/category-wise-item-pdf.service.js +6 -6
  39. package/dist/services/checklist-pdf.js +3 -3
  40. package/dist/services/cn-print.service.js +33 -33
  41. package/dist/services/consultation-fee-receipt.service.js +16 -16
  42. package/dist/services/consultation-full-pdf.service.js +10 -10
  43. package/dist/services/consultation-letterhead-pdf.service.js +15 -15
  44. package/dist/services/consultation-pdf.service.js +15 -15
  45. package/dist/services/credit-note-pdf.service.js +16 -16
  46. package/dist/services/credit-note-totals.service.js +31 -31
  47. package/dist/services/cust-wise-sales-details-pdf.service.js +8 -8
  48. package/dist/services/cust-wise-sales-summary-pdf.service.js +7 -7
  49. package/dist/services/customer-balances-pdf.service.js +7 -7
  50. package/dist/services/dc-landscape-pdf.service.js +28 -28
  51. package/dist/services/dc-landscape-without-price-pdf.service.js +24 -24
  52. package/dist/services/dc-without-price-pdf.service.js +15 -15
  53. package/dist/services/debit-note-pdf.service.js +14 -14
  54. package/dist/services/debit-note-print.service.js +33 -33
  55. package/dist/services/debit-note-totals.service.js +28 -28
  56. package/dist/services/delivery-challan-pdf.service.js +16 -16
  57. package/dist/services/delivery-challan-print.service.js +26 -26
  58. package/dist/services/delivery-challan-totals.js +32 -32
  59. package/dist/services/equipment-design-pdf.service.js +10 -10
  60. package/dist/services/est.print-service.js +150 -150
  61. package/dist/services/expiring-drugs-pdf.service.js +6 -6
  62. package/dist/services/hc-inv-pdf.service.js +42 -42
  63. package/dist/services/insurance-expire-pdf.service.js +1 -1
  64. package/dist/services/inv-pdf.service.js +54 -54
  65. package/dist/services/inv-print.service.js +59 -59
  66. package/dist/services/invoice-landscape-pdf.service.js +29 -29
  67. package/dist/services/invoice-letterhead-pdf.service.js +54 -54
  68. package/dist/services/invoice-portrait-pdf.js +51 -51
  69. package/dist/services/invoice-total.service.js +78 -78
  70. package/dist/services/issue-parts-pdf.service.js +43 -43
  71. package/dist/services/item-bar-code-label-pdf.js +2 -2
  72. package/dist/services/item-price-for-pricelist.js +29 -46
  73. package/dist/services/item-wise-doctor-sale-pdf.service.js +3 -3
  74. package/dist/services/item-wise-mout-details-pdf.js +3 -3
  75. package/dist/services/item-wise-mout-summary-pdf.js +2 -2
  76. package/dist/services/item-wise-sales-pdf.service.js +6 -6
  77. package/dist/services/manf-wise-sales-pdf.service.js +5 -5
  78. package/dist/services/meeting-pdf.js +14 -14
  79. package/dist/services/mout-pdf.service.js +17 -17
  80. package/dist/services/next-service-date-pdf.service.js +1 -1
  81. package/dist/services/operator-wise-details-pdf.service.js +8 -8
  82. package/dist/services/operator-wise-summary-pdf.js +7 -7
  83. package/dist/services/pack-ship-pdf.service.js +3 -3
  84. package/dist/services/pack-ship-print.service.js +26 -26
  85. package/dist/services/payment-pdf.service.js +4 -4
  86. package/dist/services/payment-report-pdf.service.js +3 -3
  87. package/dist/services/po-totals.service.js +28 -28
  88. package/dist/services/pos-receipt-pdf.js +19 -19
  89. package/dist/services/purchase-order-pdf.service.js +40 -40
  90. package/dist/services/purchase-order-print.service.js +43 -43
  91. package/dist/services/purchase-order-totals.service.js +53 -53
  92. package/dist/services/receipt-print.service.js +5 -5
  93. package/dist/services/reorder-point-pdf.service.js +3 -3
  94. package/dist/services/repair-orders-pdf.service.js +3 -3
  95. package/dist/services/ro-pdf.service.js +80 -80
  96. package/dist/services/ro-print-service.js +87 -87
  97. package/dist/services/ro-totals.service.js +123 -123
  98. package/dist/services/sales-by-service-pdf.service.js +6 -6
  99. package/dist/services/sales-pdf.service.js +23 -23
  100. package/dist/services/sales-print.service.js +54 -54
  101. package/dist/services/sales-receipt-pdf.service.js +25 -25
  102. package/dist/services/sales-receipt-print.service.js +62 -62
  103. package/dist/services/sales-totals.service.js +33 -33
  104. package/dist/services/scheduled-drug-pdf.service.js +7 -7
  105. package/dist/services/scheduled-drug-summary-pdf.service.js +4 -4
  106. package/dist/services/separate-wo-print.service.js +9 -9
  107. package/dist/services/shared-inv-pdf.service.js +44 -44
  108. package/dist/services/shared-pdf.service.js +119 -119
  109. package/dist/services/shared-print.service.js +68 -68
  110. package/dist/services/task-pdf.service.js +10 -10
  111. package/dist/services/task-reports-pdf.service.js +9 -9
  112. package/dist/services/technician-pdf.service.js +10 -10
  113. package/dist/services/technician-print.service.js +9 -9
  114. package/dist/services/vendor-balances-pdf.service.js +6 -6
  115. package/dist/services/vendor-credit-note-pdf.service.js +27 -27
  116. package/dist/services/vendor-credit-note-print.service.js +29 -29
  117. package/dist/services/vendor-credit-note-totals.service.js +37 -37
  118. package/dist/services/vendor-debit-note-pdf.service.js +16 -16
  119. package/dist/services/vendor-debit-note-print.service.js +29 -29
  120. package/dist/services/vendor-debit-note-totals.service.js +30 -30
  121. package/dist/shared/math-operations.js +184 -0
  122. package/dist/shared/util.js +15 -0
  123. package/dist/{shared → utils}/my-date.js +31 -31
  124. package/dist/{shared/utils.js → utils/tr-utils.js} +0 -8
  125. package/package.json +2 -1
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ItemsWiseSalesXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class ItemsWiseSalesXlsxFileService {
31
31
  static GetItemsWiseSalesExcelData(MainData, isSale, searchValue, HeaderName) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class ItemsWiseSalesXlsxFileService {
42
42
  // MainData = this.GetTotals(MainData, WOTypes);
43
43
  let showSearch = [];
44
44
  for (const key in searchValue) {
45
- if (!utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'DescCntrlId') {
45
+ if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'DescCntrlId') {
46
46
  showSearch.push([{
47
47
  text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'DescCntrl') ? 'Item' : key,
48
48
  ColRange: 1,
@@ -209,11 +209,11 @@ class ItemsWiseSalesXlsxFileService {
209
209
  { text: InvoiceInfo.Qty, ColRange: 1, IsString: true },
210
210
  // { text: InvoiceInfo.CustName, ColRange: 1, IsString: true },
211
211
  // { text: Product, ColRange: 1, IsString: false },
212
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.UnAmt), ColRange: 1, IsString: false },
213
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Disc), ColRange: 1, IsString: false },
214
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false },
215
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt + InvoiceInfo.Tax), ColRange: 1, IsString: false },
216
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.AvgPr), ColRange: 1, IsString: false },
212
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.UnAmt), ColRange: 1, IsString: false },
213
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Disc), ColRange: 1, IsString: false },
214
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false },
215
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt + InvoiceInfo.Tax), ColRange: 1, IsString: false },
216
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.AvgPr), ColRange: 1, IsString: false },
217
217
  // { text: InvoiceInfo.Items.UnPr, ColRange: 1, IsString: false },
218
218
  // { text: InvoiceInfo.Items.UnAmt, ColRange: 1, IsString: false },
219
219
  // { text: InvoiceInfo.Items.CGST, ColRange: 1, IsString: false },
@@ -246,7 +246,7 @@ class ItemsWiseSalesXlsxFileService {
246
246
  }
247
247
  }
248
248
  if (typeof Text === 'number') {
249
- return Number(utils_1.TrUtils.FixedTo(Text));
249
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
250
250
  }
251
251
  else {
252
252
  return Text;
@@ -274,7 +274,7 @@ class ItemsWiseSalesXlsxFileService {
274
274
  return cell;
275
275
  }
276
276
  static ConvertDateToReadableFormat(DateObject) {
277
- if (!utils_1.TrUtils.IsEmpty(DateObject)) {
277
+ if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
278
278
  let date = new Date(DateObject);
279
279
  let Month;
280
280
  let Day;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ManfWiseSalesXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class ManfWiseSalesXlsxFileService {
31
31
  static GetManfWiseSalesExcelData(MainData, searchValue, HeaderName, isDetails) {
32
32
  this.wb = {};
@@ -41,7 +41,7 @@ class ManfWiseSalesXlsxFileService {
41
41
  this.wb.SheetNames = [];
42
42
  let showSearch = [];
43
43
  for (const key in searchValue) {
44
- if (!utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'ManfCntrlId' && key !== 'VenCntrlId') {
44
+ if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'ManfCntrlId' && key !== 'VenCntrlId') {
45
45
  showSearch.push([{
46
46
  text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'ManfCntrl') ? 'Manufacturer' : (key === 'VenCntrl') ? 'Vendor' : key,
47
47
  ColRange: 1,
@@ -240,7 +240,7 @@ class ManfWiseSalesXlsxFileService {
240
240
  }
241
241
  }
242
242
  if (typeof Text === 'number') {
243
- return Number(utils_1.TrUtils.FixedTo(Text));
243
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
244
244
  }
245
245
  else {
246
246
  return Text;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.NextServiceDateXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class NextServiceDateXlsxFileService {
31
31
  static GetNextServiceDateExcelData(MainData, searchValue, HeaderName, isDetails) {
32
32
  this.wb = {};
@@ -41,7 +41,7 @@ class NextServiceDateXlsxFileService {
41
41
  this.wb.SheetNames = [];
42
42
  let showSearch = [];
43
43
  for (const key in searchValue) {
44
- if (!utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'ManfCntrlId' && key !== 'VenCntrlId') {
44
+ if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'ManfCntrlId' && key !== 'VenCntrlId') {
45
45
  showSearch.push([{
46
46
  text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'ManfCntrl') ? 'Manufacturer' : (key === 'VenCntrl') ? 'Vendor' : key,
47
47
  ColRange: 1,
@@ -221,7 +221,7 @@ class NextServiceDateXlsxFileService {
221
221
  this.Row += 1;
222
222
  }
223
223
  static ConvertDateToReadableFormat(DateObject) {
224
- if (!utils_1.TrUtils.IsEmpty(DateObject)) {
224
+ if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
225
225
  let date = new Date(DateObject);
226
226
  let Month;
227
227
  let Day;
@@ -264,7 +264,7 @@ class NextServiceDateXlsxFileService {
264
264
  }
265
265
  }
266
266
  if (typeof Text === 'number') {
267
- return Number(utils_1.TrUtils.FixedTo(Text));
267
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
268
268
  }
269
269
  else {
270
270
  return Text;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.OperatorWiseDetailsXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class OperatorWiseDetailsXlsxFileService {
31
31
  static GetOperatorWiseDetailsExcelData(MainData, searchValue, isSale) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class OperatorWiseDetailsXlsxFileService {
42
42
  // MainData = this.GetTotals(MainData);
43
43
  let showSearch = [];
44
44
  for (const key in searchValue) {
45
- if (!utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'DescCntrlId') {
45
+ if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'DescCntrlId') {
46
46
  showSearch.push([{
47
47
  text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'DescCntrl') ? 'Item' : key,
48
48
  ColRange: 1,
@@ -229,7 +229,7 @@ class OperatorWiseDetailsXlsxFileService {
229
229
  }
230
230
  }
231
231
  if (typeof Text === 'number') {
232
- return Number(utils_1.TrUtils.FixedTo(Text));
232
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
233
233
  }
234
234
  else {
235
235
  return Text;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.OperatorWiseSummaryXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class OperatorWiseSummaryXlsxFileService {
31
31
  static GetOperatorWiseSummaryExcelData(MainData, searchValue, HeaderName) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class OperatorWiseSummaryXlsxFileService {
42
42
  // MainData = this.GetTotals(MainData);
43
43
  let showSearch = [];
44
44
  for (const key in searchValue) {
45
- if (!utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'DescCntrlId') {
45
+ if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'DescCntrlId') {
46
46
  showSearch.push([{
47
47
  text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'DescCntrl') ? 'Item' : key,
48
48
  ColRange: 1,
@@ -230,7 +230,7 @@ class OperatorWiseSummaryXlsxFileService {
230
230
  }
231
231
  }
232
232
  if (typeof Text === 'number') {
233
- return Number(utils_1.TrUtils.FixedTo(Text));
233
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
234
234
  }
235
235
  else {
236
236
  return Text;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.PaymentReceiveXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class PaymentReceiveXlsxFileService {
31
31
  static GetRepairOrdersExcelData(MainData) {
32
32
  this.wb = {};
@@ -64,8 +64,8 @@ class PaymentReceiveXlsxFileService {
64
64
  // } else {
65
65
  // WorkOrder.TypeName = WorkOrder.WOType.Name;
66
66
  // }
67
- if (!utils_1.TrUtils.IsNull(WorkOrder.Amt)) {
68
- WorkOrder.Total = utils_1.TrUtils.FixPriceValue(WorkOrder.Amt);
67
+ if (!tr_utils_1.TrUtils.IsNull(WorkOrder.Amt)) {
68
+ WorkOrder.Total = tr_utils_1.TrUtils.FixPriceValue(WorkOrder.Amt);
69
69
  }
70
70
  else {
71
71
  WorkOrder.Total = '0.00';
@@ -167,7 +167,7 @@ class PaymentReceiveXlsxFileService {
167
167
  }
168
168
  static GetInvoiceCodes(PaymentData) {
169
169
  let InvoiceCodes = '';
170
- if (!utils_1.TrUtils.IsNull(PaymentData.Invs)) {
170
+ if (!tr_utils_1.TrUtils.IsNull(PaymentData.Invs)) {
171
171
  PaymentData.Invs.forEach((inv, index) => {
172
172
  InvoiceCodes = InvoiceCodes + inv.Code;
173
173
  if (PaymentData.Invs.length !== (index + 1)) {
@@ -189,7 +189,7 @@ class PaymentReceiveXlsxFileService {
189
189
  }
190
190
  }
191
191
  if (typeof Text === 'number') {
192
- return Number(utils_1.TrUtils.FixedTo(Text));
192
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
193
193
  }
194
194
  else {
195
195
  return Text;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.PaymentsMadeXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class PaymentsMadeXlsxFileService {
31
31
  static GetPaymentsMadeDetailsExcelData(MainData, isPur, isSale, searchValue, HeaderName, ExtraFields) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class PaymentsMadeXlsxFileService {
42
42
  // MainData = this.GetTotals(MainData);
43
43
  let showSearch = [];
44
44
  for (const key in searchValue) {
45
- if (!utils_1.TrUtils.IsNull(searchValue[key]) && !utils_1.TrUtils.CheckInvalidSelect(searchValue[key]) && key !== 'Date' && key !== 'CustCntrlId') {
45
+ if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && !tr_utils_1.TrUtils.CheckInvalidSelect(searchValue[key]) && key !== 'Date' && key !== 'CustCntrlId') {
46
46
  showSearch.push([{
47
47
  text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'CustCntrl') ? isSale ? 'Customer' : 'Vendor' : key,
48
48
  ColRange: 1,
@@ -205,7 +205,7 @@ class PaymentsMadeXlsxFileService {
205
205
  { text: isSale ? InvoiceInfo.CustName : InvoiceInfo.Name, ColRange: 1, IsString: true },
206
206
  { text: InvoiceInfo.Date, ColRange: 1, IsString: true },
207
207
  { text: isSale ? InvoiceInfo.Pay.Type : InvoiceInfo.PType, ColRange: 1, IsString: true },
208
- { text: isSale ? utils_1.TrUtils.FixPriceValue((_a = InvoiceInfo.Pay) === null || _a === void 0 ? void 0 : _a.Amt) : utils_1.TrUtils.FixPriceValue(InvoiceInfo.Amt), ColRange: 1, IsString: false }
208
+ { text: isSale ? tr_utils_1.TrUtils.FixPriceValue((_a = InvoiceInfo.Pay) === null || _a === void 0 ? void 0 : _a.Amt) : tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Amt), ColRange: 1, IsString: false }
209
209
  ];
210
210
  if (ExtraFields) {
211
211
  InvoiceData.splice(2, 0, { text: isPur ? InvoiceInfo.BNo : InvoiceInfo.InvCode, ColRange: 1, IsString: false }, { text: isPur ? InvoiceInfo.POCode : InvoiceInfo.OrdCode, ColRange: 1, IsString: false }, { text: InvoiceInfo.RegNo, ColRange: 1, IsString: true });
@@ -234,7 +234,7 @@ class PaymentsMadeXlsxFileService {
234
234
  }
235
235
  }
236
236
  if (typeof Text === 'number') {
237
- return Number(utils_1.TrUtils.FixedTo(Text));
237
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
238
238
  }
239
239
  else {
240
240
  return Text;
@@ -262,7 +262,7 @@ class PaymentsMadeXlsxFileService {
262
262
  return cell;
263
263
  }
264
264
  static ConvertDateToReadableFormat(DateObject) {
265
- if (!utils_1.TrUtils.IsEmpty(DateObject)) {
265
+ if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
266
266
  let date = new Date(DateObject);
267
267
  let Month;
268
268
  let Day;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.RepairOrdersXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class RepairOrdersXlsxFileService {
31
31
  static GetRepairOrdersExcelData(MainData) {
32
32
  this.wb = {};
@@ -51,23 +51,23 @@ class RepairOrdersXlsxFileService {
51
51
  static GetTotals(MainData) {
52
52
  MainData.forEach((WorkOrder) => {
53
53
  var _a;
54
- if (utils_1.TrUtils.IsNull((_a = WorkOrder.Prod) === null || _a === void 0 ? void 0 : _a.VIN)) {
54
+ if (tr_utils_1.TrUtils.IsNull((_a = WorkOrder.Prod) === null || _a === void 0 ? void 0 : _a.VIN)) {
55
55
  WorkOrder.Prod.VIN = '';
56
56
  }
57
- if (utils_1.TrUtils.IsNull(WorkOrder.Name)) {
57
+ if (tr_utils_1.TrUtils.IsNull(WorkOrder.Name)) {
58
58
  WorkOrder.Name = '';
59
59
  }
60
- if (utils_1.TrUtils.IsNull(WorkOrder.TeNa)) {
60
+ if (tr_utils_1.TrUtils.IsNull(WorkOrder.TeNa)) {
61
61
  WorkOrder.TeNa = '';
62
62
  }
63
- if (utils_1.TrUtils.IsNull(WorkOrder.Type)) {
63
+ if (tr_utils_1.TrUtils.IsNull(WorkOrder.Type)) {
64
64
  WorkOrder.TypeName = '';
65
65
  }
66
66
  else {
67
67
  WorkOrder.TypeName = WorkOrder.WOType.Name;
68
68
  }
69
- if (!utils_1.TrUtils.IsNull(WorkOrder.Total)) {
70
- WorkOrder.Total = utils_1.TrUtils.FixPriceValue(WorkOrder.Total);
69
+ if (!tr_utils_1.TrUtils.IsNull(WorkOrder.Total)) {
70
+ WorkOrder.Total = tr_utils_1.TrUtils.FixPriceValue(WorkOrder.Total);
71
71
  }
72
72
  else {
73
73
  WorkOrder.Total = '0.00';
@@ -172,7 +172,7 @@ class RepairOrdersXlsxFileService {
172
172
  static SetWorkOrderDataInExcel(WorkOrder, index) {
173
173
  var _a, _b, _c, _d, _e, _f, _g;
174
174
  WorkOrder.CrDate = my_date_1.MyDate.ConvertUTCDateToReadable(WorkOrder.CrDate);
175
- if (!utils_1.TrUtils.IsNull(WorkOrder.Prod) && !utils_1.TrUtils.IsNull(WorkOrder.Prod.DDate)) {
175
+ if (!tr_utils_1.TrUtils.IsNull(WorkOrder.Prod) && !tr_utils_1.TrUtils.IsNull(WorkOrder.Prod.DDate)) {
176
176
  WorkOrder.Prod.DDate = my_date_1.MyDate.ConvertUTCDateToReadable(WorkOrder.Prod.DDate);
177
177
  }
178
178
  else {
@@ -219,7 +219,7 @@ class RepairOrdersXlsxFileService {
219
219
  }
220
220
  }
221
221
  if (typeof Text === 'number') {
222
- return Number(utils_1.TrUtils.FixedTo(Text));
222
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
223
223
  }
224
224
  else {
225
225
  return Text;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ServiceAdvisorWiseLaborXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class ServiceAdvisorWiseLaborXlsxFileService {
31
31
  static GetServiceAdvisorLaborsExcelData(MainData) {
32
32
  this.wb = {};
@@ -147,9 +147,9 @@ class ServiceAdvisorWiseLaborXlsxFileService {
147
147
  static SetWorkOrderDataInExcel(WorkOrder, index) {
148
148
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
149
149
  WorkOrder.CrDate = my_date_1.MyDate.ConvertUTCDateToReadable(WorkOrder.CrDate);
150
- WorkOrder.Discount = utils_1.TrUtils.FixPriceValue(utils_1.TrUtils.SetValueToZeroIfNull((_a = WorkOrder.Ops) === null || _a === void 0 ? void 0 : _a.Disc) + utils_1.TrUtils.SetValueToZeroIfNull((_b = WorkOrder.Ops) === null || _b === void 0 ? void 0 : _b.RecDisc));
151
- WorkOrder.Tax = utils_1.TrUtils.FixPriceValue(((_c = WorkOrder.Ops) === null || _c === void 0 ? void 0 : _c.CGST) + ((_d = WorkOrder.Ops) === null || _d === void 0 ? void 0 : _d.SGST) + ((_e = WorkOrder.Ops) === null || _e === void 0 ? void 0 : _e.IGST));
152
- WorkOrder.Total = utils_1.TrUtils.FixPriceValue(((_f = WorkOrder.Ops) === null || _f === void 0 ? void 0 : _f.NetAmt) + Number(WorkOrder.Tax));
150
+ WorkOrder.Discount = tr_utils_1.TrUtils.FixPriceValue(tr_utils_1.TrUtils.SetValueToZeroIfNull((_a = WorkOrder.Ops) === null || _a === void 0 ? void 0 : _a.Disc) + tr_utils_1.TrUtils.SetValueToZeroIfNull((_b = WorkOrder.Ops) === null || _b === void 0 ? void 0 : _b.RecDisc));
151
+ WorkOrder.Tax = tr_utils_1.TrUtils.FixPriceValue(((_c = WorkOrder.Ops) === null || _c === void 0 ? void 0 : _c.CGST) + ((_d = WorkOrder.Ops) === null || _d === void 0 ? void 0 : _d.SGST) + ((_e = WorkOrder.Ops) === null || _e === void 0 ? void 0 : _e.IGST));
152
+ WorkOrder.Total = tr_utils_1.TrUtils.FixPriceValue(((_f = WorkOrder.Ops) === null || _f === void 0 ? void 0 : _f.NetAmt) + Number(WorkOrder.Tax));
153
153
  // if(!TrUtils.IsNull(WorkOrder.Prod) && !TrUtils.IsNull(WorkOrder.Prod.DDate)){
154
154
  // WorkOrder.Prod.DDate= TrUtils.ConvertDateToReadableFormat(WorkOrder.Prod.DDate);
155
155
  // }else{
@@ -196,7 +196,7 @@ class ServiceAdvisorWiseLaborXlsxFileService {
196
196
  }
197
197
  }
198
198
  if (typeof Text === 'number') {
199
- return Number(utils_1.TrUtils.FixedTo(Text));
199
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
200
200
  }
201
201
  else {
202
202
  return Text;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ServiceAdvisorWisePartXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class ServiceAdvisorWisePartXlsxFileService {
31
31
  static GetServiceAdvisorPartsExcelData(MainData) {
32
32
  this.wb = {};
@@ -147,9 +147,9 @@ class ServiceAdvisorWisePartXlsxFileService {
147
147
  static SetWorkOrderDataInExcel(WorkOrder, index) {
148
148
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
149
149
  WorkOrder.CrDate = my_date_1.MyDate.ConvertUTCDateToReadable(WorkOrder.CrDate);
150
- WorkOrder.Discount = utils_1.TrUtils.FixPriceValue(utils_1.TrUtils.SetValueToZeroIfNull((_a = WorkOrder.Items) === null || _a === void 0 ? void 0 : _a.Disc) + utils_1.TrUtils.SetValueToZeroIfNull((_b = WorkOrder.Items) === null || _b === void 0 ? void 0 : _b.RecDisc));
151
- WorkOrder.Tax = utils_1.TrUtils.FixPriceValue(((_c = WorkOrder.Items) === null || _c === void 0 ? void 0 : _c.CGST) + ((_d = WorkOrder.Items) === null || _d === void 0 ? void 0 : _d.SGST) + ((_e = WorkOrder.Items) === null || _e === void 0 ? void 0 : _e.IGST));
152
- WorkOrder.Total = utils_1.TrUtils.FixPriceValue(((_f = WorkOrder.Items) === null || _f === void 0 ? void 0 : _f.NetAmt) + Number(WorkOrder.Tax));
150
+ WorkOrder.Discount = tr_utils_1.TrUtils.FixPriceValue(tr_utils_1.TrUtils.SetValueToZeroIfNull((_a = WorkOrder.Items) === null || _a === void 0 ? void 0 : _a.Disc) + tr_utils_1.TrUtils.SetValueToZeroIfNull((_b = WorkOrder.Items) === null || _b === void 0 ? void 0 : _b.RecDisc));
151
+ WorkOrder.Tax = tr_utils_1.TrUtils.FixPriceValue(((_c = WorkOrder.Items) === null || _c === void 0 ? void 0 : _c.CGST) + ((_d = WorkOrder.Items) === null || _d === void 0 ? void 0 : _d.SGST) + ((_e = WorkOrder.Items) === null || _e === void 0 ? void 0 : _e.IGST));
152
+ WorkOrder.Total = tr_utils_1.TrUtils.FixPriceValue(((_f = WorkOrder.Items) === null || _f === void 0 ? void 0 : _f.NetAmt) + Number(WorkOrder.Tax));
153
153
  // if(!TrUtils.IsNull(WorkOrder.Prod) && !TrUtils.IsNull(WorkOrder.Prod.DDate)){
154
154
  // WorkOrder.Prod.DDate= TrUtils.ConvertDateToReadableFormat(WorkOrder.Prod.DDate);
155
155
  // }else{
@@ -196,7 +196,7 @@ class ServiceAdvisorWisePartXlsxFileService {
196
196
  }
197
197
  }
198
198
  if (typeof Text === 'number') {
199
- return Number(utils_1.TrUtils.FixedTo(Text));
199
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
200
200
  }
201
201
  else {
202
202
  return Text;
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.SummaryXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const utils_1 = require("../shared/utils");
28
+ const tr_utils_1 = require("../utils/tr-utils");
29
29
  class SummaryXlsxFileService {
30
30
  static GetInvoiceWiseExcelData(MainData, WOTypes) {
31
31
  this.wb = {};
@@ -258,7 +258,7 @@ class SummaryXlsxFileService {
258
258
  }
259
259
  }
260
260
  if (typeof Text === 'number') {
261
- return Number(utils_1.TrUtils.FixedTo(Text));
261
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
262
262
  }
263
263
  else {
264
264
  return Text;
@@ -286,7 +286,7 @@ class SummaryXlsxFileService {
286
286
  return cell;
287
287
  }
288
288
  static ConvertDateToReadableFormat(DateObject) {
289
- if (!utils_1.TrUtils.IsEmpty(DateObject)) {
289
+ if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
290
290
  let date = new Date(DateObject);
291
291
  let Month;
292
292
  let Day;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.SalesByServiceSummaryXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class SalesByServiceSummaryXlsxFileService {
31
31
  static GetSalesByServiceSummaryExcelData(MainData, searchValue, HeaderName, ForService) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class SalesByServiceSummaryXlsxFileService {
42
42
  // MainData = this.GetTotals(MainData);
43
43
  let showSearch = [];
44
44
  for (const key in searchValue) {
45
- if (!utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'DescCntrlId') {
45
+ if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'DescCntrlId') {
46
46
  showSearch.push([{
47
47
  text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'DescCntrl') ? 'Item' : key,
48
48
  ColRange: 1,
@@ -334,11 +334,11 @@ class SalesByServiceSummaryXlsxFileService {
334
334
  { text: InvoiceInfo.Name, ColRange: 1, IsString: true },
335
335
  // { text: InvoiceInfo.Count, ColRange: 1, IsString: true },
336
336
  { text: InvoiceInfo.Qty, ColRange: 1, IsString: false },
337
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Amt), ColRange: 1, IsString: false },
338
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Disc), ColRange: 1, IsString: false },
339
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false },
340
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt + InvoiceInfo.Tax), ColRange: 1, IsString: false },
341
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.AvgPr), ColRange: 1, IsString: false },
337
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Amt), ColRange: 1, IsString: false },
338
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Disc), ColRange: 1, IsString: false },
339
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false },
340
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt + InvoiceInfo.Tax), ColRange: 1, IsString: false },
341
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.AvgPr), ColRange: 1, IsString: false },
342
342
  // { text: InvoiceInfo.Adjust, ColRange: 1, IsString: false },
343
343
  // { text: InvoiceInfo.Round, ColRange: 1, IsString: false },
344
344
  // { text: InvoiceInfo.Total, ColRange: 1, IsString: false }
@@ -352,11 +352,11 @@ class SalesByServiceSummaryXlsxFileService {
352
352
  // { text: InvoiceInfo.Count, ColRange: 1, IsString: true },
353
353
  { text: InvoiceInfo.OfQty, ColRange: 1, IsString: false },
354
354
  { text: InvoiceInfo.Qty, ColRange: 1, IsString: false },
355
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.UnAmt), ColRange: 1, IsString: false },
356
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Disc), ColRange: 1, IsString: false },
357
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false },
358
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt + InvoiceInfo.Tax), ColRange: 1, IsString: false },
359
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.AvgPr), ColRange: 1, IsString: false },
355
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.UnAmt), ColRange: 1, IsString: false },
356
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Disc), ColRange: 1, IsString: false },
357
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false },
358
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt + InvoiceInfo.Tax), ColRange: 1, IsString: false },
359
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.AvgPr), ColRange: 1, IsString: false },
360
360
  // { text: InvoiceInfo.Adjust, ColRange: 1, IsString: false },
361
361
  // { text: InvoiceInfo.Round, ColRange: 1, IsString: false },
362
362
  // { text: InvoiceInfo.Total, ColRange: 1, IsString: false }
@@ -386,7 +386,7 @@ class SalesByServiceSummaryXlsxFileService {
386
386
  }
387
387
  }
388
388
  if (typeof Text === 'number') {
389
- return Number(utils_1.TrUtils.FixedTo(Text));
389
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
390
390
  }
391
391
  else {
392
392
  return Text;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ScheduledDrugSummaryXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class ScheduledDrugSummaryXlsxFileService {
31
31
  static GetScheduledDrugExcelData(MainData, searchValue, HeaderName) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class ScheduledDrugSummaryXlsxFileService {
42
42
  // MainData = this.GetTotals(MainData);
43
43
  let showSearch = [];
44
44
  for (const key in searchValue) {
45
- if (!utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'CustCntrlId' && key !== 'DescCntrlId') {
45
+ if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'CustCntrlId' && key !== 'DescCntrlId') {
46
46
  showSearch.push([{
47
47
  text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'CustCntrl') ? 'Customer' : (key === 'DescCntrl') ? 'Item' : key,
48
48
  ColRange: 1,
@@ -270,9 +270,9 @@ class ScheduledDrugSummaryXlsxFileService {
270
270
  // { text: InvoiceInfo.Items.Desc, ColRange: 1, IsString: true },
271
271
  // { text: batchdata, ColRange: 1, IsString: true },
272
272
  // { text: batchExdate, ColRange: 1, IsString: true },
273
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Qty), ColRange: 1, IsString: false },
274
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt), ColRange: 1, IsString: false },
275
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false }
273
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Qty), ColRange: 1, IsString: false },
274
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt), ColRange: 1, IsString: false },
275
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false }
276
276
  ];
277
277
  let ColStart = 0;
278
278
  InvoiceData.forEach((InvData) => {
@@ -298,7 +298,7 @@ class ScheduledDrugSummaryXlsxFileService {
298
298
  }
299
299
  }
300
300
  if (typeof Text === 'number') {
301
- return Number(utils_1.TrUtils.FixedTo(Text));
301
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
302
302
  }
303
303
  else {
304
304
  return Text;
@@ -327,7 +327,7 @@ class ScheduledDrugSummaryXlsxFileService {
327
327
  return cell;
328
328
  }
329
329
  static ConvertDateToReadableFormat(DateObject) {
330
- if (!utils_1.TrUtils.IsEmpty(DateObject)) {
330
+ if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
331
331
  let date = new Date(DateObject);
332
332
  let Month;
333
333
  let Day;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ScheduledDrugXlsxFileService = void 0;
27
27
  const XLSX = __importStar(require("xlsx"));
28
- const my_date_1 = require("../shared/my-date");
29
- const utils_1 = require("../shared/utils");
28
+ const my_date_1 = require("../utils/my-date");
29
+ const tr_utils_1 = require("../utils/tr-utils");
30
30
  class ScheduledDrugXlsxFileService {
31
31
  static GetScheduledDrugExcelData(MainData, searchValue, HeaderName) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class ScheduledDrugXlsxFileService {
42
42
  // MainData = this.GetTotals(MainData);
43
43
  let showSearch = [];
44
44
  for (const key in searchValue) {
45
- if (!utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'CustCntrlId' && key !== 'DescCntrlId') {
45
+ if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'CustCntrlId' && key !== 'DescCntrlId') {
46
46
  showSearch.push([{
47
47
  text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'CustCntrl') ? 'Customer' : (key === 'DescCntrl') ? 'Item' : key,
48
48
  ColRange: 1,
@@ -247,14 +247,14 @@ class ScheduledDrugXlsxFileService {
247
247
  // batchdata = BN;
248
248
  // }
249
249
  // } else {
250
- if (!utils_1.TrUtils.IsNull(InvoiceInfo.Batch)) {
250
+ if (!tr_utils_1.TrUtils.IsNull(InvoiceInfo.Batch)) {
251
251
  batchdata = InvoiceInfo.Batch.BN;
252
252
  }
253
253
  // }
254
254
  // });
255
255
  let batchExdate;
256
256
  // InvoiceInfo.Items?.Batches?.forEach((batch: any) => {
257
- if (!utils_1.TrUtils.IsNull(InvoiceInfo.Batch)) {
257
+ if (!tr_utils_1.TrUtils.IsNull(InvoiceInfo.Batch)) {
258
258
  batchExdate = my_date_1.MyDate.ConvertUTCDateToReadableExDate(InvoiceInfo.Batch.ExDt);
259
259
  }
260
260
  // else {
@@ -269,9 +269,9 @@ class ScheduledDrugXlsxFileService {
269
269
  { text: InvoiceInfo.ItemName, ColRange: 1, IsString: true },
270
270
  { text: batchdata, ColRange: 1, IsString: true },
271
271
  { text: batchExdate, ColRange: 1, IsString: true },
272
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Qty), ColRange: 1, IsString: false },
273
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt), ColRange: 1, IsString: false },
274
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false }
272
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Qty), ColRange: 1, IsString: false },
273
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt), ColRange: 1, IsString: false },
274
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false }
275
275
  ];
276
276
  let ColStart = 0;
277
277
  InvoiceData.forEach((InvData) => {
@@ -297,7 +297,7 @@ class ScheduledDrugXlsxFileService {
297
297
  }
298
298
  }
299
299
  if (typeof Text === 'number') {
300
- return Number(utils_1.TrUtils.FixedTo(Text));
300
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
301
301
  }
302
302
  else {
303
303
  return Text;
@@ -326,7 +326,7 @@ class ScheduledDrugXlsxFileService {
326
326
  return cell;
327
327
  }
328
328
  static ConvertDateToReadableFormat(DateObject) {
329
- if (!utils_1.TrUtils.IsEmpty(DateObject)) {
329
+ if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
330
330
  let date = new Date(DateObject);
331
331
  let Month;
332
332
  let Day;