shareneus 1.4.35 → 1.4.37

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 (263) hide show
  1. package/dist/accounting/counter-sales/auto-sales-receipt-pdf.service.d.ts +290 -0
  2. package/dist/{services → accounting/counter-sales}/auto-sales-receipt-pdf.service.js +26 -26
  3. package/dist/accounting/counter-sales/pos-receipt-pdf.d.ts +156 -0
  4. package/dist/{services → accounting/counter-sales}/pos-receipt-pdf.js +20 -20
  5. package/dist/accounting/counter-sales/sales-receipt-pdf.service.d.ts +272 -0
  6. package/dist/{services → accounting/counter-sales}/sales-receipt-pdf.service.js +28 -27
  7. package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +18 -0
  8. package/dist/{services → accounting/counter-sales}/sales-receipt-print.service.js +67 -67
  9. package/dist/accounting/credit-note/cn-print.service.d.ts +14 -0
  10. package/dist/{services → accounting/credit-note}/cn-print.service.js +37 -37
  11. package/dist/accounting/credit-note/credit-note-pdf.service.d.ts +272 -0
  12. package/dist/{services → accounting/credit-note}/credit-note-pdf.service.js +18 -18
  13. package/dist/accounting/credit-note/credit-note-totals.service.d.ts +25 -0
  14. package/dist/{services → accounting/credit-note}/credit-note-totals.service.js +32 -32
  15. package/dist/accounting/debit-note/debit-note-pdf.service.d.ts +331 -0
  16. package/dist/{services → accounting/debit-note}/debit-note-pdf.service.js +16 -16
  17. package/dist/accounting/debit-note/debit-note-print.service.d.ts +14 -0
  18. package/dist/{services → accounting/debit-note}/debit-note-print.service.js +37 -37
  19. package/dist/accounting/debit-note/debit-note-totals.service.d.ts +22 -0
  20. package/dist/{services → accounting/debit-note}/debit-note-totals.service.js +29 -29
  21. package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +357 -0
  22. package/dist/{services → accounting/invoice}/hc-inv-pdf.service.js +44 -44
  23. package/dist/accounting/invoice/inv-pdf.service.d.ts +314 -0
  24. package/dist/{services → accounting/invoice}/inv-pdf.service.js +56 -56
  25. package/dist/accounting/invoice/inv-print.service.d.ts +16 -0
  26. package/dist/{services → accounting/invoice}/inv-print.service.js +63 -63
  27. package/dist/accounting/invoice/invoice-landscape-pdf.service.d.ts +416 -0
  28. package/dist/{services → accounting/invoice}/invoice-landscape-pdf.service.js +31 -31
  29. package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +323 -0
  30. package/dist/{services → accounting/invoice}/invoice-letterhead-pdf.service.js +56 -56
  31. package/dist/accounting/invoice/invoice-portrait-pdf.d.ts +275 -0
  32. package/dist/{services → accounting/invoice}/invoice-portrait-pdf.js +53 -53
  33. package/dist/accounting/invoice/invoice-total.service.d.ts +43 -0
  34. package/dist/{services → accounting/invoice}/invoice-total.service.js +79 -79
  35. package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +303 -0
  36. package/dist/accounting/invoice/shared-inv-pdf.service.js +763 -0
  37. package/dist/accounting/payment-receive/payment-pdf.service.d.ts +618 -0
  38. package/dist/{services → accounting/payment-receive}/payment-pdf.service.js +5 -5
  39. package/dist/accounting/payment-receive/receipt-print.service.d.ts +4 -0
  40. package/dist/{services → accounting/payment-receive}/receipt-print.service.js +6 -6
  41. package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +228 -0
  42. package/dist/{services → accounting/payment-receive/reports/pdf}/customer-balances-pdf.service.js +8 -8
  43. package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +228 -0
  44. package/dist/{services → accounting/payment-receive/reports/pdf}/payment-report-pdf.service.js +4 -4
  45. package/dist/aggregation/aggregation.d.ts +4 -0
  46. package/dist/aggregation/aggregation.js +13 -13
  47. package/dist/appointments/appointments/appointment-total.service.d.ts +25 -0
  48. package/dist/{services → appointments/appointments}/appointment-total.service.js +38 -38
  49. package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +318 -0
  50. package/dist/{services → appointments/consultations}/consultation-fee-receipt.service.js +17 -17
  51. package/dist/appointments/consultations/consultation-full-pdf.service.d.ts +207 -0
  52. package/dist/{services → appointments/consultations}/consultation-full-pdf.service.js +11 -11
  53. package/dist/appointments/consultations/consultation-letterhead-pdf.service.d.ts +266 -0
  54. package/dist/{services → appointments/consultations}/consultation-letterhead-pdf.service.js +16 -16
  55. package/dist/appointments/consultations/consultation-pdf.service.d.ts +306 -0
  56. package/dist/{services → appointments/consultations}/consultation-pdf.service.js +16 -16
  57. package/dist/enums/cache-enums.d.ts +33 -0
  58. package/dist/enums/code-enums.d.ts +266 -0
  59. package/dist/enums/enums.d.ts +329 -0
  60. package/dist/enums/industry-enums.d.ts +16 -0
  61. package/dist/excel-files/cust-balance-excel.service.d.ts +26 -0
  62. package/dist/excel-files/cust-balance-excel.service.js +5 -5
  63. package/dist/excel-files/expiring-drugs-excel.service.d.ts +24 -0
  64. package/dist/excel-files/expiring-drugs-excel.service.js +7 -7
  65. package/dist/excel-files/insurance-expire-excel.service.d.ts +23 -0
  66. package/dist/excel-files/insurance-expire-excel.service.js +4 -4
  67. package/dist/excel-files/invoice-wise-excel.service.d.ts +26 -0
  68. package/dist/excel-files/invoice-wise-excel.service.js +3 -3
  69. package/dist/excel-files/next-service-date-excel.service.d.ts +25 -0
  70. package/dist/excel-files/next-service-date-excel.service.js +5 -5
  71. package/dist/excel-files/payment-receive-excel.service.d.ts +25 -0
  72. package/dist/excel-files/payment-receive-excel.service.js +6 -6
  73. package/dist/excel-files/payments-made-excel.service.d.ts +25 -0
  74. package/dist/excel-files/payments-made-excel.service.js +6 -6
  75. package/dist/excel-files/repair-orders-excel.service.d.ts +24 -0
  76. package/dist/excel-files/repair-orders-excel.service.js +10 -10
  77. package/dist/excel-files/sales-by-service-details-excel.service.d.ts +0 -0
  78. package/dist/excel-files/sales-by-service-summary-excel.service.d.ts +24 -0
  79. package/dist/excel-files/sales-by-service-summary-excel.service.js +14 -14
  80. package/dist/excel-files/scheduled-drug-summary-excel.service.d.ts +24 -0
  81. package/dist/excel-files/scheduled-drug-summary-excel.service.js +8 -8
  82. package/dist/excel-files/scheduled-drugs-excel.service.d.ts +24 -0
  83. package/dist/excel-files/scheduled-drugs-excel.service.js +10 -10
  84. package/dist/excel-files/spares-issue-excel.service.d.ts +26 -0
  85. package/dist/excel-files/spares-issue-excel.service.js +14 -14
  86. package/dist/excel-files/stock-excel.service.d.ts +23 -0
  87. package/dist/excel-files/stock-excel.service.js +3 -3
  88. package/dist/excel-files/ven-balance-excel.service.d.ts +27 -0
  89. package/dist/excel-files/ven-balance-excel.service.js +3 -3
  90. package/dist/gst/excel/GSTR-RO-excel.service.d.ts +27 -0
  91. package/dist/{excel-files → gst/excel}/GSTR-RO-excel.service.js +3 -3
  92. package/dist/gst/excel/GSTR1-excel.service.d.ts +16 -0
  93. package/dist/{excel-files → gst/excel}/GSTR1-excel.service.js +7 -7
  94. package/dist/gst/excel/GSTR2-excel.service.d.ts +16 -0
  95. package/dist/{excel-files → gst/excel}/GSTR2-excel.service.js +6 -6
  96. package/dist/gst/excel/tally-sales-import.service.d.ts +27 -0
  97. package/dist/{excel-files → gst/excel}/tally-sales-import.service.js +3 -3
  98. package/dist/index.d.ts +124 -0
  99. package/dist/index.js +102 -102
  100. package/dist/inventory/items/issue-parts-pdf.service.d.ts +303 -0
  101. package/dist/{services → inventory/items}/issue-parts-pdf.service.js +45 -45
  102. package/dist/inventory/items/item-bar-code-label-pdf.d.ts +127 -0
  103. package/dist/{services → inventory/items}/item-bar-code-label-pdf.js +3 -3
  104. package/dist/inventory/items/item-detais-pdf.d.ts +121 -0
  105. package/dist/{services → inventory/items}/item-detais-pdf.js +1 -1
  106. package/dist/inventory/items/item-price-for-pricelist.d.ts +1 -0
  107. package/dist/{services → inventory/items}/item-price-for-pricelist.js +44 -50
  108. package/dist/inventory/items/reports/excel/item-wise-mout-details.d.ts +23 -0
  109. package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-details.js +4 -4
  110. package/dist/inventory/items/reports/excel/item-wise-mout-summary.d.ts +23 -0
  111. package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-summary.js +4 -4
  112. package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +49 -0
  113. package/dist/{services → inventory/items/reports/pdf}/expiring-drugs-pdf.service.js +6 -6
  114. package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.d.ts +229 -0
  115. package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-details-pdf.js +4 -4
  116. package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.d.ts +228 -0
  117. package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-summary-pdf.js +3 -3
  118. package/dist/inventory/items/reports/pdf/reorder-point-pdf.service.d.ts +48 -0
  119. package/dist/{services → inventory/items/reports/pdf}/reorder-point-pdf.service.js +3 -3
  120. package/dist/inventory/material-out/mout-pdf.service.d.ts +324 -0
  121. package/dist/{services → inventory/material-out}/mout-pdf.service.js +19 -19
  122. package/dist/inventory/transfer-order/transfer-order-pdf.service.d.ts +48 -0
  123. package/dist/{services → inventory/transfer-order}/transfer-order-pdf.service.js +2 -2
  124. package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +227 -0
  125. package/dist/{services → purchases/payment-made/reports/pdf}/vendor-balances-pdf.service.js +7 -7
  126. package/dist/purchases/purchase-order/po-totals.service.d.ts +24 -0
  127. package/dist/{services → purchases/purchase-order}/po-totals.service.js +29 -29
  128. package/dist/purchases/purchase-order/purchase-order-pdf.service.d.ts +526 -0
  129. package/dist/{services → purchases/purchase-order}/purchase-order-pdf.service.js +42 -42
  130. package/dist/purchases/purchase-order/purchase-order-print.service.d.ts +8 -0
  131. package/dist/{services → purchases/purchase-order}/purchase-order-print.service.js +46 -46
  132. package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +23 -0
  133. package/dist/{services → purchases/purchase-order}/purchase-order-totals.service.js +55 -55
  134. package/dist/purchases/vendor-credit-note/vendor-credit-note-pdf.service.d.ts +491 -0
  135. package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-pdf.service.js +29 -29
  136. package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.d.ts +6 -0
  137. package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-print.service.js +31 -31
  138. package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +24 -0
  139. package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-totals.service.js +38 -38
  140. package/dist/purchases/vendor-debit-note/vendor-debit-note-pdf.service.d.ts +271 -0
  141. package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-pdf.service.js +18 -18
  142. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +14 -0
  143. package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-print.service.js +34 -34
  144. package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +22 -0
  145. package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-totals.service.js +31 -31
  146. package/dist/sales/delivery-challan/dc-landscape-pdf.service.d.ts +416 -0
  147. package/dist/{services → sales/delivery-challan}/dc-landscape-pdf.service.js +30 -30
  148. package/dist/sales/delivery-challan/dc-landscape-without-price-pdf.service.d.ts +400 -0
  149. package/dist/{services → sales/delivery-challan}/dc-landscape-without-price-pdf.service.js +26 -26
  150. package/dist/sales/delivery-challan/dc-without-price-pdf.service.d.ts +271 -0
  151. package/dist/{services → sales/delivery-challan}/dc-without-price-pdf.service.js +17 -17
  152. package/dist/sales/delivery-challan/delivery-challan-pdf.service.d.ts +269 -0
  153. package/dist/{services → sales/delivery-challan}/delivery-challan-pdf.service.js +18 -18
  154. package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +12 -0
  155. package/dist/{services → sales/delivery-challan}/delivery-challan-print.service.js +30 -30
  156. package/dist/sales/delivery-challan/delivery-challan-totals.d.ts +27 -0
  157. package/dist/{services → sales/delivery-challan}/delivery-challan-totals.js +33 -33
  158. package/dist/sales/reports/excel/analysis-excel.service.d.ts +23 -0
  159. package/dist/{excel-files → sales/reports/excel}/analysis-excel.service.js +4 -4
  160. package/dist/sales/reports/excel/category-wise-item-excel.service.d.ts +23 -0
  161. package/dist/{excel-files → sales/reports/excel}/category-wise-item-excel.service.js +10 -10
  162. package/dist/sales/reports/excel/cust-wise-sales-details.d.ts +25 -0
  163. package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-details.js +5 -5
  164. package/dist/sales/reports/excel/cust-wise-sales-summary-excel.service.d.ts +24 -0
  165. package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-summary-excel.service.js +5 -5
  166. package/dist/sales/reports/excel/item-wise-doctor-sale-excel.service.d.ts +24 -0
  167. package/dist/{excel-files → sales/reports/excel}/item-wise-doctor-sale-excel.service.js +7 -7
  168. package/dist/sales/reports/excel/items-wise-sales-excel.service.d.ts +24 -0
  169. package/dist/{excel-files → sales/reports/excel}/items-wise-sales-excel.service.js +10 -10
  170. package/dist/sales/reports/excel/manf-wise-sales-excel.service.d.ts +24 -0
  171. package/dist/{excel-files → sales/reports/excel}/manf-wise-sales-excel.service.js +4 -4
  172. package/dist/sales/reports/excel/operator-wise-details.d.ts +23 -0
  173. package/dist/{excel-files → sales/reports/excel}/operator-wise-details.js +4 -4
  174. package/dist/sales/reports/excel/operator-wise-summary.d.ts +23 -0
  175. package/dist/{excel-files → sales/reports/excel}/operator-wise-summary.js +4 -4
  176. package/dist/sales/reports/excel/sa-wise-labor-sales-excel.service.d.ts +23 -0
  177. package/dist/{excel-files → sales/reports/excel}/sa-wise-labor-sales-excel.service.js +6 -6
  178. package/dist/sales/reports/excel/sa-wise-part-sales-excel.service.d.ts +23 -0
  179. package/dist/{excel-files → sales/reports/excel}/sa-wise-part-sales-excel.service.js +6 -6
  180. package/dist/sales/reports/excel/sale-summary-excel.service.d.ts +25 -0
  181. package/dist/{excel-files → sales/reports/excel}/sale-summary-excel.service.js +3 -3
  182. package/dist/sales/reports/pdf/analysis-pdf.service.d.ts +228 -0
  183. package/dist/{services → sales/reports/pdf}/analysis-pdf.service.js +9 -9
  184. package/dist/sales/reports/pdf/category-wise-item-pdf.service.d.ts +228 -0
  185. package/dist/{services → sales/reports/pdf}/category-wise-item-pdf.service.js +7 -7
  186. package/dist/sales/reports/pdf/cust-wise-sales-details-pdf.service.d.ts +228 -0
  187. package/dist/{services → sales/reports/pdf}/cust-wise-sales-details-pdf.service.js +9 -9
  188. package/dist/sales/reports/pdf/cust-wise-sales-summary-pdf.service.d.ts +228 -0
  189. package/dist/{services → sales/reports/pdf}/cust-wise-sales-summary-pdf.service.js +8 -9
  190. package/dist/sales/reports/pdf/item-wise-doctor-sale-pdf.service.d.ts +228 -0
  191. package/dist/{services → sales/reports/pdf}/item-wise-doctor-sale-pdf.service.js +4 -4
  192. package/dist/sales/reports/pdf/item-wise-sales-pdf.service.d.ts +228 -0
  193. package/dist/{services → sales/reports/pdf}/item-wise-sales-pdf.service.js +7 -8
  194. package/dist/sales/reports/pdf/manf-wise-sales-pdf.service.d.ts +228 -0
  195. package/dist/{services → sales/reports/pdf}/manf-wise-sales-pdf.service.js +6 -6
  196. package/dist/sales/reports/pdf/operator-wise-details-pdf.service.d.ts +228 -0
  197. package/dist/{services → sales/reports/pdf}/operator-wise-details-pdf.service.js +9 -9
  198. package/dist/sales/reports/pdf/operator-wise-summary-pdf.d.ts +228 -0
  199. package/dist/{services → sales/reports/pdf}/operator-wise-summary-pdf.js +8 -8
  200. package/dist/sales/reports/pdf/sales-by-service-pdf.service.d.ts +228 -0
  201. package/dist/{services → sales/reports/pdf}/sales-by-service-pdf.service.js +7 -7
  202. package/dist/sales/reports/pdf/scheduled-drug-pdf.service.d.ts +228 -0
  203. package/dist/{services → sales/reports/pdf}/scheduled-drug-pdf.service.js +8 -8
  204. package/dist/sales/reports/pdf/scheduled-drug-summary-pdf.service.d.ts +228 -0
  205. package/dist/{services → sales/reports/pdf}/scheduled-drug-summary-pdf.service.js +5 -5
  206. package/dist/sales/sales/equipment-design-pdf.service.d.ts +121 -0
  207. package/dist/{services → sales/sales}/equipment-design-pdf.service.js +12 -12
  208. package/dist/sales/sales/pack-ship-pdf.service.d.ts +262 -0
  209. package/dist/{services → sales/sales}/pack-ship-pdf.service.js +5 -5
  210. package/dist/sales/sales/pack-ship-print.service.d.ts +11 -0
  211. package/dist/{services → sales/sales}/pack-ship-print.service.js +27 -27
  212. package/dist/sales/sales/sales-pdf.service.d.ts +275 -0
  213. package/dist/{services → sales/sales}/sales-pdf.service.js +25 -25
  214. package/dist/sales/sales/sales-print.service.d.ts +15 -0
  215. package/dist/{services → sales/sales}/sales-print.service.js +58 -58
  216. package/dist/sales/sales/sales-totals.service.d.ts +27 -0
  217. package/dist/{services → sales/sales}/sales-totals.service.js +34 -34
  218. package/dist/services/checklist-pdf.d.ts +57 -0
  219. package/dist/services/checklist-pdf.js +5 -5
  220. package/dist/services/checklists-pdf.d.ts +12 -0
  221. package/dist/services/checklists-pdf.js +1 -1
  222. package/dist/services/est.print-service.d.ts +64 -0
  223. package/dist/services/est.print-service.js +151 -151
  224. package/dist/services/next-service-date-pdf.service.d.ts +228 -0
  225. package/dist/services/next-service-date-pdf.service.js +2 -2
  226. package/dist/services/reports/insurance-expire-pdf.service.d.ts +227 -0
  227. package/dist/services/{insurance-expire-pdf.service.js → reports/insurance-expire-pdf.service.js} +2 -2
  228. package/dist/services/reports/repair-orders-pdf.service.d.ts +229 -0
  229. package/dist/services/{repair-orders-pdf.service.js → reports/repair-orders-pdf.service.js} +4 -4
  230. package/dist/services/ro-pdf.service.d.ts +1060 -0
  231. package/dist/services/ro-pdf.service.js +82 -82
  232. package/dist/services/ro-print-service.d.ts +45 -0
  233. package/dist/services/ro-print-service.js +88 -88
  234. package/dist/services/ro-totals.service.d.ts +65 -0
  235. package/dist/services/ro-totals.service.js +123 -123
  236. package/dist/services/separate-wo-print.service.d.ts +494 -0
  237. package/dist/services/separate-wo-print.service.js +10 -10
  238. package/dist/services/shared-inv-pdf.service.d.ts +303 -0
  239. package/dist/services/shared-inv-pdf.service.js +46 -46
  240. package/dist/services/technician-pdf.service.d.ts +221 -0
  241. package/dist/services/technician-pdf.service.js +11 -11
  242. package/dist/services/technician-print.service.d.ts +5 -0
  243. package/dist/services/technician-print.service.js +10 -10
  244. package/dist/shared/math-operations.d.ts +53 -0
  245. package/dist/shared/math-operations.js +184 -0
  246. package/dist/shared/shared-services/shared-pdf.service.d.ts +926 -0
  247. package/dist/{services → shared/shared-services}/shared-pdf.service.js +120 -120
  248. package/dist/shared/shared-services/shared-print.service.d.ts +49 -0
  249. package/dist/{services → shared/shared-services}/shared-print.service.js +68 -68
  250. package/dist/shared/util.d.ts +3 -0
  251. package/dist/shared/util.js +15 -0
  252. package/dist/tasks/meetings/meeting-pdf.d.ts +107 -0
  253. package/dist/{services → tasks/meetings}/meeting-pdf.js +15 -15
  254. package/dist/tasks/tasks/task-pdf.service.d.ts +127 -0
  255. package/dist/{services → tasks/tasks}/task-pdf.service.js +12 -12
  256. package/dist/tasks/tasks/task-reports-pdf.service.d.ts +94 -0
  257. package/dist/{services → tasks/tasks}/task-reports-pdf.service.js +11 -11
  258. package/dist/utils/my-date.d.ts +104 -0
  259. package/dist/{shared → utils}/my-date.js +31 -31
  260. package/dist/utils/tr-utils.d.ts +41 -0
  261. package/dist/{shared/utils.js → utils/tr-utils.js} +0 -8
  262. package/package.json +2 -1
  263. package/tsconfig.json +1 -0
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ExpiringDrugsXlsxFileService = 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 ExpiringDrugsXlsxFileService {
31
31
  static GetExpiringDrugsExcelData(MainData, isSale, searchValue, HeaderName) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class ExpiringDrugsXlsxFileService {
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') {
45
+ if (!tr_utils_1.TrUtils.IsNull(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,
@@ -194,8 +194,8 @@ class ExpiringDrugsXlsxFileService {
194
194
  { text: InvoiceInfo.Batch.BN, ColRange: 1, IsString: true },
195
195
  { text: my_date_1.MyDate.ConvertUTCDateToReadableExDateTxt(InvoiceInfo.Batch.ExDt), ColRange: 1, IsString: true },
196
196
  { text: InvoiceInfo.Batch.Qty, ColRange: 1, IsString: true },
197
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Batch.Cost), ColRange: 1, IsString: true },
198
- { text: utils_1.TrUtils.FixPriceValue(InvoiceInfo.Batch.Qty * InvoiceInfo.Batch.Cost), ColRange: 1, IsString: true },
197
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Batch.Cost), ColRange: 1, IsString: true },
198
+ { text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Batch.Qty * InvoiceInfo.Batch.Cost), ColRange: 1, IsString: true },
199
199
  // { text: InvoiceInfo.Round, ColRange: 1, IsString: true },
200
200
  // { text: InvoiceInfo.Total, ColRange: 1, IsString: false }
201
201
  ];
@@ -223,7 +223,7 @@ class ExpiringDrugsXlsxFileService {
223
223
  }
224
224
  }
225
225
  if (typeof Text === 'number') {
226
- return Number(utils_1.TrUtils.FixedTo(Text));
226
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
227
227
  }
228
228
  else {
229
229
  return Text;
@@ -252,7 +252,7 @@ class ExpiringDrugsXlsxFileService {
252
252
  return cell;
253
253
  }
254
254
  static ConvertDateToReadableFormat(DateObject) {
255
- if (!utils_1.TrUtils.IsEmpty(DateObject)) {
255
+ if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
256
256
  let date = new Date(DateObject);
257
257
  let Month;
258
258
  let Day;
@@ -0,0 +1,23 @@
1
+ export declare class InsuranceExpireXlsxFileService {
2
+ static wb: any;
3
+ static Row: any;
4
+ static MergeArray: any[];
5
+ static range: {
6
+ s: {
7
+ c: number;
8
+ r: number;
9
+ };
10
+ e: {
11
+ c: number;
12
+ r: number;
13
+ };
14
+ };
15
+ static ws: any;
16
+ static GetInsuranceExpireExcelData(MainData: any, searchValue: any, HeaderName: any): any;
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;
21
+ static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
22
+ static getcelltype(cell: any): any;
23
+ }
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.InsuranceExpireXlsxFileService = 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 InsuranceExpireXlsxFileService {
31
31
  static GetInsuranceExpireExcelData(MainData, searchValue, HeaderName) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class InsuranceExpireXlsxFileService {
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,
@@ -265,7 +265,7 @@ class InsuranceExpireXlsxFileService {
265
265
  }
266
266
  }
267
267
  if (typeof Text === 'number') {
268
- return Number(utils_1.TrUtils.FixedTo(Text));
268
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
269
269
  }
270
270
  else {
271
271
  return Text;
@@ -0,0 +1,26 @@
1
+ export declare class InvoicesWiseXlsxFileService {
2
+ static wb: any;
3
+ static Row: any;
4
+ static MergeArray: any[];
5
+ static range: {
6
+ s: {
7
+ c: number;
8
+ r: number;
9
+ };
10
+ e: {
11
+ c: number;
12
+ r: number;
13
+ };
14
+ };
15
+ static ws: any;
16
+ static GetInvoiceWiseExcelData(MainData: any, WOTypes: any): any;
17
+ static GetTotals(MainData: any, WOTypes: any): any;
18
+ static GetWOTypeName(Type: any, WOTypes: any): any;
19
+ static setHeadingInCell(): void;
20
+ static setInvoiceDetailsInCell(MainData: any): void;
21
+ static SetInvoiceDataInExcel(InvoiceInfo: any): void;
22
+ static ConvertToString(Text: any, IsString: any): any;
23
+ static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
24
+ static getcelltype(cell: any): any;
25
+ static ConvertDateToReadableFormat(DateObject: any): any;
26
+ }
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.InvoicesWiseXlsxFileService = 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 InvoicesWiseXlsxFileService {
30
30
  static GetInvoiceWiseExcelData(MainData, WOTypes) {
31
31
  this.wb = {};
@@ -789,7 +789,7 @@ class InvoicesWiseXlsxFileService {
789
789
  }
790
790
  }
791
791
  if (typeof Text === 'number') {
792
- return Number(utils_1.TrUtils.FixedTo(Text));
792
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
793
793
  }
794
794
  else {
795
795
  return Text;
@@ -817,7 +817,7 @@ class InvoicesWiseXlsxFileService {
817
817
  return cell;
818
818
  }
819
819
  static ConvertDateToReadableFormat(DateObject) {
820
- if (!utils_1.TrUtils.IsEmpty(DateObject)) {
820
+ if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
821
821
  let date = new Date(DateObject);
822
822
  let Month;
823
823
  let Day;
@@ -0,0 +1,25 @@
1
+ export declare class NextServiceDateXlsxFileService {
2
+ static wb: any;
3
+ static Row: any;
4
+ static MergeArray: any[];
5
+ static range: {
6
+ s: {
7
+ c: number;
8
+ r: number;
9
+ };
10
+ e: {
11
+ c: number;
12
+ r: number;
13
+ };
14
+ };
15
+ static ws: any;
16
+ static GetNextServiceDateExcelData(MainData: any, searchValue: any, HeaderName: any, isDetails: boolean): any;
17
+ static GetTotals(MainData: any): any;
18
+ static setHeadingInCell(HeaderName: any, showSearch: any, isDetails: boolean): void;
19
+ static setInvoiceDetailsInCell(MainData: any, isDetails: boolean): void;
20
+ static SetInvoiceDataInExcel(InvoiceInfo: any, isDetails: boolean): void;
21
+ static ConvertDateToReadableFormat(DateObject: any): any;
22
+ static ConvertToString(Text: any, IsString: any): any;
23
+ static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
24
+ static getcelltype(cell: any): any;
25
+ }
@@ -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;
@@ -0,0 +1,25 @@
1
+ export declare class PaymentReceiveXlsxFileService {
2
+ static wb: any;
3
+ static Row: any;
4
+ static MergeArray: any[];
5
+ static range: {
6
+ s: {
7
+ c: number;
8
+ r: number;
9
+ };
10
+ e: {
11
+ c: number;
12
+ r: number;
13
+ };
14
+ };
15
+ static ws: any;
16
+ static GetRepairOrdersExcelData(MainData: any): any;
17
+ static GetTotals(MainData: any): any;
18
+ static setHeadingInCell(): void;
19
+ static setWorkOrderDetailsInCell(MainData: any): void;
20
+ static SetWorkOrderDataInExcel(WorkOrder: any, index: any): void;
21
+ static GetInvoiceCodes(PaymentData: any): string;
22
+ static ConvertToString(Text: any, IsString: any): any;
23
+ static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
24
+ static getcelltype(cell: any): any;
25
+ }
@@ -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;
@@ -0,0 +1,25 @@
1
+ export declare class PaymentsMadeXlsxFileService {
2
+ static wb: any;
3
+ static Row: any;
4
+ static MergeArray: any[];
5
+ static range: {
6
+ s: {
7
+ c: number;
8
+ r: number;
9
+ };
10
+ e: {
11
+ c: number;
12
+ r: number;
13
+ };
14
+ };
15
+ static ws: any;
16
+ static GetPaymentsMadeDetailsExcelData(MainData: any, isPur: boolean, isSale: boolean, searchValue: any, HeaderName: string, ExtraFields: boolean): any;
17
+ static GetTotals(MainData: any): any;
18
+ static setHeadingInCell(isPur: boolean, showSearch: any, HeaderName: any, ExtraFields: boolean): void;
19
+ static setInvoiceDetailsInCell(MainData: any, isSale: boolean, isPur: boolean, ExtraFields: boolean): void;
20
+ static SetInvoiceDataInExcel(InvoiceInfo: any, index: any, isSale: boolean, isPur: any, ExtraFields: boolean): void;
21
+ static ConvertToString(Text: any, IsString: any): any;
22
+ static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
23
+ static getcelltype(cell: any): any;
24
+ static ConvertDateToReadableFormat(DateObject: any): any;
25
+ }
@@ -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;
@@ -0,0 +1,24 @@
1
+ export declare class RepairOrdersXlsxFileService {
2
+ static wb: any;
3
+ static Row: any;
4
+ static MergeArray: any[];
5
+ static range: {
6
+ s: {
7
+ c: number;
8
+ r: number;
9
+ };
10
+ e: {
11
+ c: number;
12
+ r: number;
13
+ };
14
+ };
15
+ static ws: any;
16
+ static GetRepairOrdersExcelData(MainData: any): any;
17
+ static GetTotals(MainData: any): any;
18
+ static setHeadingInCell(): void;
19
+ static setWorkOrderDetailsInCell(MainData: any): void;
20
+ static SetWorkOrderDataInExcel(WorkOrder: any, index: any): void;
21
+ static ConvertToString(Text: any, IsString: any): any;
22
+ static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
23
+ static getcelltype(cell: any): any;
24
+ }
@@ -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;
@@ -0,0 +1,24 @@
1
+ export declare class SalesByServiceSummaryXlsxFileService {
2
+ static wb: any;
3
+ static Row: any;
4
+ static MergeArray: any[];
5
+ static range: {
6
+ s: {
7
+ c: number;
8
+ r: number;
9
+ };
10
+ e: {
11
+ c: number;
12
+ r: number;
13
+ };
14
+ };
15
+ static ws: any;
16
+ static GetSalesByServiceSummaryExcelData(MainData: any, searchValue: any, HeaderName: any, ForService: boolean): any;
17
+ static setServiceHeadingInCell(HeaderName: any, searchValue: any): void;
18
+ static setItemHeadingInCell(HeaderName: any, searchValue: any): void;
19
+ static setInvoiceDetailsInCell(MainData: any, ForService: boolean): void;
20
+ static SetInvoiceDataInExcel(InvoiceInfo: any, ForService: boolean): void;
21
+ static ConvertToString(Text: any, IsString: any): any;
22
+ static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
23
+ static getcelltype(cell: any): any;
24
+ }
@@ -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;
@@ -0,0 +1,24 @@
1
+ export declare class ScheduledDrugSummaryXlsxFileService {
2
+ static wb: any;
3
+ static Row: any;
4
+ static MergeArray: any[];
5
+ static range: {
6
+ s: {
7
+ c: number;
8
+ r: number;
9
+ };
10
+ e: {
11
+ c: number;
12
+ r: number;
13
+ };
14
+ };
15
+ static ws: any;
16
+ static GetScheduledDrugExcelData(MainData: any, searchValue: any, HeaderName: any): any;
17
+ static setHeadingInCell(HeaderName: any, showSearch: any): void;
18
+ static setInvoiceDetailsInCell(MainData: any): void;
19
+ static SetInvoiceDataInExcel(InvoiceInfo: any): void;
20
+ static ConvertToString(Text: any, IsString: any): any;
21
+ static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
22
+ static getcelltype(cell: any): any;
23
+ static ConvertDateToReadableFormat(DateObject: any): any;
24
+ }
@@ -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;
@@ -0,0 +1,24 @@
1
+ export declare class ScheduledDrugXlsxFileService {
2
+ static wb: any;
3
+ static Row: any;
4
+ static MergeArray: any[];
5
+ static range: {
6
+ s: {
7
+ c: number;
8
+ r: number;
9
+ };
10
+ e: {
11
+ c: number;
12
+ r: number;
13
+ };
14
+ };
15
+ static ws: any;
16
+ static GetScheduledDrugExcelData(MainData: any, searchValue: any, HeaderName: any): any;
17
+ static setHeadingInCell(HeaderName: any, showSearch: any): void;
18
+ static setInvoiceDetailsInCell(MainData: any): void;
19
+ static SetInvoiceDataInExcel(InvoiceInfo: any): void;
20
+ static ConvertToString(Text: any, IsString: any): any;
21
+ static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
22
+ static getcelltype(cell: any): any;
23
+ static ConvertDateToReadableFormat(DateObject: any): any;
24
+ }