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
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeliveryChallanPdfService = void 0;
4
- const utils_1 = require("../shared/utils");
5
- const shared_pdf_service_1 = require("./shared-pdf.service");
6
- const shared_print_service_1 = require("./shared-print.service");
4
+ const shared_pdf_service_1 = require("../../shared/shared-services/shared-pdf.service");
5
+ const shared_print_service_1 = require("../../shared/shared-services/shared-print.service");
6
+ const tr_utils_1 = require("../../utils/tr-utils");
7
7
  class DeliveryChallanPdfService {
8
8
  constructor() {
9
9
  this.FontSize = 8;
10
10
  }
11
11
  static GetDeliveryChallanPrint(ROPrintData, numberofCopies, moreDiscDetails) {
12
12
  var contents = [];
13
- if (utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
13
+ if (tr_utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
14
14
  contents.push(this.CommonHeaderDetails(ROPrintData, null), this.PreparesparePartsTable(ROPrintData), this.CommonTotalDetails(ROPrintData, null, numberofCopies, moreDiscDetails));
15
15
  }
16
16
  else {
@@ -36,7 +36,7 @@ class DeliveryChallanPdfService {
36
36
  }
37
37
  static GetFileName(ROPrintData) {
38
38
  let fileName = ROPrintData.HeaderName;
39
- if (!utils_1.TrUtils.IsNull(ROPrintData.Product) && !utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
39
+ if (!tr_utils_1.TrUtils.IsNull(ROPrintData.Product) && !tr_utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
40
40
  fileName = fileName + '-' + ROPrintData.Product.RegNo;
41
41
  }
42
42
  return fileName;
@@ -62,7 +62,7 @@ class DeliveryChallanPdfService {
62
62
  let List = [];
63
63
  if (ROPrintData.Entity.Body === 1) {
64
64
  for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
65
- if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
65
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
66
66
  ROPrintData.PrintInfo[i].Text = '';
67
67
  }
68
68
  // List.push(ROPrintData.PrintInfo[i].Text,
@@ -73,10 +73,10 @@ class DeliveryChallanPdfService {
73
73
  else {
74
74
  if (ROPrintData.Entity.Body === 2) {
75
75
  for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
76
- if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
76
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
77
77
  ROPrintData.PrintInfo[i].Text = '';
78
78
  }
79
- List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
79
+ List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
80
80
  }
81
81
  }
82
82
  else {
@@ -87,10 +87,10 @@ class DeliveryChallanPdfService {
87
87
  }
88
88
  else {
89
89
  for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
90
- if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
90
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
91
91
  ROPrintData.PrintInfo[i].Text = '';
92
92
  }
93
- List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
93
+ List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
94
94
  }
95
95
  }
96
96
  }
@@ -154,14 +154,14 @@ class DeliveryChallanPdfService {
154
154
  Parts.forEach((part) => {
155
155
  var dataRow = [];
156
156
  columns.forEach((column) => {
157
- if ((!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field]))
157
+ if ((!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]))
158
158
  || (column.text === 'Line Total')) {
159
159
  if (part[column.Field] === 'Spare Parts') {
160
160
  dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
161
161
  }
162
162
  else {
163
163
  if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
164
- && utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
164
+ && tr_utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
165
165
  part[column.Field] = '';
166
166
  dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
167
167
  }
@@ -171,7 +171,7 @@ class DeliveryChallanPdfService {
171
171
  || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
172
172
  if (column.Field === 'Disc') {
173
173
  if (column.type === 'percentage') {
174
- if (!utils_1.TrUtils.IsEmpty(part[column.Field])) {
174
+ if (!tr_utils_1.TrUtils.IsEmpty(part[column.Field])) {
175
175
  dataRow.push({ text: part[column.Field].toString(), noWrap: true });
176
176
  }
177
177
  else {
@@ -179,7 +179,7 @@ class DeliveryChallanPdfService {
179
179
  }
180
180
  }
181
181
  else {
182
- if (!utils_1.TrUtils.IsZero(part[column.Field])) {
182
+ if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
183
183
  dataRow.push({ text: part[column.Field].toString(), noWrap: true });
184
184
  }
185
185
  else {
@@ -188,7 +188,7 @@ class DeliveryChallanPdfService {
188
188
  }
189
189
  }
190
190
  else {
191
- if (!utils_1.TrUtils.IsZero(part[column.Field])) {
191
+ if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
192
192
  dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
193
193
  }
194
194
  else {
@@ -201,7 +201,7 @@ class DeliveryChallanPdfService {
201
201
  if (column.Field === 'Desc') {
202
202
  let DescData = [];
203
203
  DescData.push(part[column.Field].toString());
204
- if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
204
+ if (!tr_utils_1.TrUtils.IsEmpty(part['EDesc'])) {
205
205
  DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
206
206
  }
207
207
  dataRow.push({ stack: DescData });
@@ -416,7 +416,7 @@ class DeliveryChallanPdfService {
416
416
  }
417
417
  static CommonTotalDetails(ROPrintData, index, numberofCopies, moreDiscDetails) {
418
418
  let CommonDetails = [
419
- shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, '0.00', ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn, utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), '0.00', ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, null, null, moreDiscDetails),
419
+ shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, '0.00', ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), '0.00', ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, null, null, moreDiscDetails),
420
420
  // SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts),
421
421
  shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
422
422
  shared_pdf_service_1.SharedPDFService.GetUnderLine(),
@@ -425,7 +425,7 @@ class DeliveryChallanPdfService {
425
425
  if (ROPrintData.Type !== 'Invoice') {
426
426
  CommonDetails.splice(2, 0, shared_pdf_service_1.SharedPDFService.GetUnderLine());
427
427
  }
428
- if (!utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
428
+ if (!tr_utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
429
429
  CommonDetails.push({ text: '', pageBreak: 'after' });
430
430
  }
431
431
  return CommonDetails;
@@ -0,0 +1,12 @@
1
+ export declare class DeliveryChallanPrintService {
2
+ static GetChallanDataPrintInfo(OriginalInvoiceData: any, OriginalEntityData: any, image: any, IncludeGST: boolean, ConsolidateGST: boolean, TaxCodes: any, IsProforma: boolean): any;
3
+ static GetPrintConditionsBasedOnInput(InvoicePrintData: any, IncludeGST: boolean, ConsolidateGST: boolean, SType: any, OriginalInvoiceData: any, IsProforma: boolean): any;
4
+ static GetInvoiceTypeHeading(InvoicePrintData: any, OriginalInvoiceData: any, IncludeGST: boolean, ConsolidateGST: boolean, IsProforma: boolean): any;
5
+ static GetInvoiceOtherDetailsForPrint(InvoicePrintData: any, OriginalInvoiceData: any): any;
6
+ static GetItemsPrintInfo(Items: any, Consolidate: boolean, TaxCodes: any, LineTotal: string): any;
7
+ static ReverseItemsForInvoicePrint(argInvoiceData: any): any;
8
+ static PrepareFormatForInvoicePrint(InvoicePrintData: any, ROType: any, InvoiceStatus: any): any[];
9
+ static GetBillNameForInvoicePrint(OriginalInvoiceData: any, InvoicePrintData: any): any;
10
+ static GetBillToName(Title: any, Name: string): string;
11
+ static GetPaymentsTotal(InvoicePayments: any, Total: number, InvoiceStatus: string): any;
12
+ }
@@ -1,38 +1,38 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeliveryChallanPrintService = void 0;
4
- const shared_print_service_1 = require("./shared-print.service");
5
4
  const delivery_challan_totals_1 = require("./delivery-challan-totals");
6
- const utils_1 = require("../shared/utils");
7
- const code_enums_1 = require("../enums/code-enums");
8
- const enums_1 = require("../enums/enums");
9
- const my_date_1 = require("../shared/my-date");
10
- const aggregation_1 = require("../aggregation/aggregation");
5
+ const tr_utils_1 = require("../../utils/tr-utils");
6
+ const code_enums_1 = require("../../enums/code-enums");
7
+ const enums_1 = require("../../enums/enums");
8
+ const my_date_1 = require("../../utils/my-date");
9
+ const aggregation_1 = require("../../aggregation/aggregation");
10
+ const shared_print_service_1 = require("../../shared/shared-services/shared-print.service");
11
11
  class DeliveryChallanPrintService {
12
12
  static GetChallanDataPrintInfo(OriginalInvoiceData, OriginalEntityData, image, IncludeGST, ConsolidateGST, TaxCodes, IsProforma) {
13
13
  var _a, _b;
14
14
  let InvoicePrintData = {};
15
- let argInvoiceData = utils_1.TrUtils.Stringify(OriginalInvoiceData);
15
+ let argInvoiceData = tr_utils_1.TrUtils.Stringify(OriginalInvoiceData);
16
16
  if (!IncludeGST) {
17
17
  argInvoiceData.Settings.Tax = 'NO';
18
18
  }
19
19
  InvoicePrintData.IsProforma = IsProforma;
20
- InvoicePrintData.Settings = utils_1.TrUtils.Stringify(argInvoiceData.Settings);
20
+ InvoicePrintData.Settings = tr_utils_1.TrUtils.Stringify(argInvoiceData.Settings);
21
21
  let SType;
22
- if (!utils_1.TrUtils.IsNull(argInvoiceData.SType)) {
22
+ if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.SType)) {
23
23
  SType = argInvoiceData.SType;
24
24
  }
25
25
  InvoicePrintData = this.GetPrintConditionsBasedOnInput(InvoicePrintData, IncludeGST, ConsolidateGST, SType, argInvoiceData, IsProforma);
26
26
  InvoicePrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, "Delivery Challan", OriginalInvoiceData);
27
27
  InvoicePrintData = shared_print_service_1.PrintSharedService.GetEntityHeaderStyles(InvoicePrintData, OriginalEntityData, image);
28
28
  InvoicePrintData = this.GetInvoiceOtherDetailsForPrint(InvoicePrintData, argInvoiceData);
29
- let IsTaxable = (IncludeGST && utils_1.TrUtils.isTaxable(argInvoiceData.Settings.Tax)) ? true : false;
29
+ let IsTaxable = (IncludeGST && tr_utils_1.TrUtils.isTaxable(argInvoiceData.Settings.Tax)) ? true : false;
30
30
  let finalTotalsData = delivery_challan_totals_1.DeliveryChallanTotalsService.GetTotalsValue(argInvoiceData.Items, IsTaxable, true, argInvoiceData.Disc, argInvoiceData.Perc, TaxCodes, true, argInvoiceData.Settings, InvoicePrintData.Entity.Round);
31
31
  if (ConsolidateGST) {
32
32
  finalTotalsData.CustLaborTotalBeforeDisc = finalTotalsData.CustLaborAfterTax;
33
33
  finalTotalsData.CustPartsTotalBeforeDisc = finalTotalsData.CustPartAfterTax;
34
34
  }
35
- InvoicePrintData = utils_1.TrUtils.ConcatObjects(InvoicePrintData, finalTotalsData);
35
+ InvoicePrintData = tr_utils_1.TrUtils.ConcatObjects(InvoicePrintData, finalTotalsData);
36
36
  InvoicePrintData.Items = this.GetItemsPrintInfo(InvoicePrintData.Items, ConsolidateGST, TaxCodes, (_b = (_a = OriginalEntityData.Entity.Settings) === null || _a === void 0 ? void 0 : _a.Acc) === null || _b === void 0 ? void 0 : _b.LTot);
37
37
  argInvoiceData = this.ReverseItemsForInvoicePrint(argInvoiceData);
38
38
  InvoicePrintData.PrintInfo = this.PrepareFormatForInvoicePrint(InvoicePrintData, code_enums_1.ROTypeEnum.Invoice, argInvoiceData.Sts);
@@ -52,12 +52,12 @@ class DeliveryChallanPrintService {
52
52
  InvoicePrintData.IncludeGST = IncludeGST;
53
53
  InvoicePrintData.ConsolidateGST = ConsolidateGST;
54
54
  InvoicePrintData.ShowAccParts = false;
55
- InvoicePrintData.ShowIGST = (utils_1.TrUtils.IsNull(SType) || (SType === 'Intra')) ? false : true;
55
+ InvoicePrintData.ShowIGST = (tr_utils_1.TrUtils.IsNull(SType) || (SType === 'Intra')) ? false : true;
56
56
  InvoicePrintData.ShowTaxColumn = (IncludeGST && !ConsolidateGST) ? true : false;
57
57
  // InvoicePrintData.ShowDiscountColumn = (!ForInsurance && !ConsolidateGST) ? true : false;
58
58
  InvoicePrintData = this.GetInvoiceTypeHeading(InvoicePrintData, OriginalInvoiceData, IncludeGST, ConsolidateGST, IsProforma);
59
- InvoicePrintData.PrDate = utils_1.TrUtils.IsNull(OriginalInvoiceData.PrDate) ? '' : my_date_1.MyDate.ConvertUTCDateToReadable(OriginalInvoiceData.PrDate);
60
- InvoicePrintData.BL = utils_1.TrUtils.Stringify(OriginalInvoiceData.BL);
59
+ InvoicePrintData.PrDate = tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.PrDate) ? '' : my_date_1.MyDate.ConvertUTCDateToReadable(OriginalInvoiceData.PrDate);
60
+ InvoicePrintData.BL = tr_utils_1.TrUtils.Stringify(OriginalInvoiceData.BL);
61
61
  return InvoicePrintData;
62
62
  }
63
63
  static GetInvoiceTypeHeading(InvoicePrintData, OriginalInvoiceData, IncludeGST, ConsolidateGST, IsProforma) {
@@ -83,24 +83,24 @@ class DeliveryChallanPrintService {
83
83
  let CTaxAmtPerItem = Item.CGST / Item.Qty;
84
84
  let STaxAmtPerItem = Item.SGST / Item.Qty;
85
85
  let ITaxAmtPerItem = Item.IGST / Item.Qty;
86
- Item.UnPr = utils_1.TrUtils.FixPriceValue(AfterDiscForEach + CTaxAmtPerItem + STaxAmtPerItem + ITaxAmtPerItem);
86
+ Item.UnPr = tr_utils_1.TrUtils.FixPriceValue(AfterDiscForEach + CTaxAmtPerItem + STaxAmtPerItem + ITaxAmtPerItem);
87
87
  }
88
88
  else {
89
- Item.UnPr = utils_1.TrUtils.FixPriceValue(Item.UnPr);
89
+ Item.UnPr = tr_utils_1.TrUtils.FixPriceValue(Item.UnPr);
90
90
  }
91
- Item.CGSTAmt = utils_1.TrUtils.FixPriceValue(Item.CGST);
92
- Item.SGSTAmt = utils_1.TrUtils.FixPriceValue(Item.SGST);
93
- Item.IGSTAmt = utils_1.TrUtils.FixPriceValue(Item.IGST);
91
+ Item.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.CGST);
92
+ Item.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.SGST);
93
+ Item.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.IGST);
94
94
  Item.CGSTPerc = shared_print_service_1.PrintSharedService.GetCGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
95
95
  Item.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
96
96
  Item.IGSTPerc = shared_print_service_1.PrintSharedService.GetIGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
97
97
  if (LineTotal === 'AT') {
98
- Item.LineTotal = utils_1.TrUtils.FixPriceValue(Item.AfterPartTax);
98
+ Item.LineTotal = tr_utils_1.TrUtils.FixPriceValue(Item.AfterPartTax);
99
99
  }
100
100
  else {
101
- Item.LineTotal = utils_1.TrUtils.FixPriceValue((0, aggregation_1.subtraction)(Item.UnAmt, Item.Disc));
101
+ Item.LineTotal = tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.subtraction)(Item.UnAmt, Item.Disc));
102
102
  }
103
- if (!utils_1.TrUtils.IsZero(Item.Qty) && !utils_1.TrUtils.CheckInvalidSelect(Item.UoM)) {
103
+ if (!tr_utils_1.TrUtils.IsZero(Item.Qty) && !tr_utils_1.TrUtils.CheckInvalidSelect(Item.UoM)) {
104
104
  Item.QtyAndUoM = Item.Qty + ' ' + Item.UoM;
105
105
  }
106
106
  });
@@ -124,20 +124,20 @@ class DeliveryChallanPrintService {
124
124
  Customer.Name = OriginalInvoiceData.ShipTo.Name;
125
125
  Customer.Adrs = [];
126
126
  Customer.Cons = [];
127
- if (!utils_1.TrUtils.IsNull(OriginalInvoiceData.ShipTo.Adrs)) {
127
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.ShipTo.Adrs)) {
128
128
  Customer.Adrs.push(OriginalInvoiceData.ShipTo.Adrs.A1);
129
- if (!utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.Adrs.A2)) {
129
+ if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.Adrs.A2)) {
130
130
  Customer.Adrs.push(OriginalInvoiceData.ShipTo.Adrs.A2);
131
131
  }
132
- if (!utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.Adrs.Ct)) {
132
+ if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.Adrs.Ct)) {
133
133
  Customer.Adrs.push(OriginalInvoiceData.ShipTo.Adrs.Ct);
134
134
  }
135
135
  }
136
136
  Customer.GSTIN = OriginalInvoiceData.ShipTo.GSTIN;
137
- if (!utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.DLNo)) {
137
+ if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.DLNo)) {
138
138
  Customer.DLNo = OriginalInvoiceData.ShipTo.DLNo;
139
139
  }
140
- if (!utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.Ph)) {
140
+ if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.Ph)) {
141
141
  Customer.Cons = [
142
142
  {
143
143
  Type: 'M',
@@ -149,7 +149,7 @@ class DeliveryChallanPrintService {
149
149
  return InvoicePrintData;
150
150
  }
151
151
  static GetBillToName(Title, Name) {
152
- return utils_1.TrUtils.IsEmpty(Title) ? Name : Title + ' ' + Name;
152
+ return tr_utils_1.TrUtils.IsEmpty(Title) ? Name : Title + ' ' + Name;
153
153
  }
154
154
  static GetPaymentsTotal(InvoicePayments, Total, InvoiceStatus) {
155
155
  var i = 0;
@@ -162,7 +162,7 @@ class DeliveryChallanPrintService {
162
162
  Data.Due = 0;
163
163
  }
164
164
  else {
165
- Data.Due = utils_1.TrUtils.FixedTo(Total - PaidTotal);
165
+ Data.Due = tr_utils_1.TrUtils.FixedTo(Total - PaidTotal);
166
166
  }
167
167
  if (Data.Due < 0) {
168
168
  Data.Due = 0;
@@ -170,7 +170,7 @@ class DeliveryChallanPrintService {
170
170
  if (Data.Due === 0) {
171
171
  Data.Sts = enums_1.InvoiceStatusEnum.Closed;
172
172
  }
173
- Data.Paid = utils_1.TrUtils.FixedTo(PaidTotal);
173
+ Data.Paid = tr_utils_1.TrUtils.FixedTo(PaidTotal);
174
174
  return Data;
175
175
  }
176
176
  }
@@ -0,0 +1,27 @@
1
+ export declare class DeliveryChallanTotalsService {
2
+ static GetTotalsValue(PartsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, Disc: any, Perc: string, TaxCodes: any, WithItems: boolean, Settings: any, isRoundable: boolean): any;
3
+ static CalculateLaborPartValues(PartsList: any, IsIndependentTax: boolean): any;
4
+ static ResetLaborPartValues(PartsList: any, IsIndependentTax: boolean): any;
5
+ static ResetLaborPartValueIfInvalid(Part: any): any;
6
+ static GetFinalChallanDataForSave(PartsList: any, IsIndependentTax: boolean, Disc: any, Perc: string, DetailedInfo: boolean, Settings: any, isRoundable: boolean): any;
7
+ static SetMainDiscountValues(Disc: any, Perc: string, finalTotalsData: any, DetailedInfo: boolean): any;
8
+ static GetFinalCustomerTotalsData(finalTotalsData: any, PartsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, isRoundable: boolean): any;
9
+ static GetSubTotalFor(PartsList: any): any;
10
+ static GetPartsTotalAfterDiscount(PartsList: any): any;
11
+ static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, PartsList: any, TaxCodes: any): any;
12
+ static GetLaborDiscountedTotal(LaborList: any): any;
13
+ static GetPartDiscountedTotal(PartsList: any): any;
14
+ static GetPartsTaxTotalFor(PartsList: any, IsIndependentTax: boolean): any;
15
+ static GetCustomerTotalBasedOnTaxType(PartsTaxAmount: number, PartsList: any, IsIndependentTax: boolean): any;
16
+ static LaborTotalAfterDiscount(LaborTotalAfterDisc: number, LaborTaxAmount: number, MainLDisc: number, LDiscInPerc: string): number;
17
+ static ItemsTotalAfterDiscount(PartsTotalAfterDisc: number, PartsTaxAmount: number, MainPDisc: number, PDiscInPerc: string): number;
18
+ static GetLaborCGSTTaxTotal(opCodesList: any, IsIndependentTax: boolean): any;
19
+ static GetLaborIGSTTaxTotal(opCodesList: any, IsIndependentTax: boolean): any;
20
+ static GetLaborSGSTTaxTotal(opCodesList: any, IsIndependentTax: boolean): any;
21
+ static GetPartGSTTaxTotal(PartsList: any, IsIndependentTax: boolean): number[];
22
+ static GetTaxGroupingForPartsByHSN(Parts: any, TaxCodes: any): any[];
23
+ static GetCombinedTaxPercentage(Parts: any, TaxCodes: any): any;
24
+ static ComparePartsByHSN(Parts: any, TaxCodes: any): any[];
25
+ static GetTaxGroupingInfoByHSN(FinalMatchedParts: any, TaxCodes: any): any[];
26
+ static GetGSTValueBasedOnTaxCode(TCode: any, TaxCodes: any): any[];
27
+ }
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeliveryChallanTotalsService = void 0;
4
- const aggregation_1 = require("../aggregation/aggregation");
5
- const utils_1 = require("../shared/utils");
4
+ const aggregation_1 = require("../../aggregation/aggregation");
5
+ const tr_utils_1 = require("../../utils/tr-utils");
6
6
  class DeliveryChallanTotalsService {
7
7
  static GetTotalsValue(PartsList, IsIndependentTax, DetailedInfo, Disc, Perc, TaxCodes, WithItems, Settings, isRoundable) {
8
8
  // LPerc = TrUtils.SetPercToStringIfNull(LPerc);
9
- Perc = utils_1.TrUtils.SetPercToStringIfNull(Perc);
9
+ Perc = tr_utils_1.TrUtils.SetPercToStringIfNull(Perc);
10
10
  // LDisc = TrUtils.SetValueToZeroIfNull(LDisc);
11
- Disc = utils_1.TrUtils.SetValueToZeroIfNull(Disc);
11
+ Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Disc);
12
12
  PartsList = this.CalculateLaborPartValues(PartsList, IsIndependentTax);
13
13
  let finalTotalsData = this.GetFinalChallanDataForSave(PartsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings, isRoundable);
14
14
  if (DetailedInfo) {
@@ -29,7 +29,7 @@ class DeliveryChallanTotalsService {
29
29
  static ResetLaborPartValues(PartsList, IsIndependentTax) {
30
30
  PartsList.forEach((Part) => {
31
31
  Part = this.ResetLaborPartValueIfInvalid(Part);
32
- Part.DiscountedPrice = (0, aggregation_1.addition)(Part.Disc, utils_1.TrUtils.SetValueToZeroIfNull(Part.RecDisc));
32
+ Part.DiscountedPrice = (0, aggregation_1.addition)(Part.Disc, tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.RecDisc));
33
33
  let NetAmt = (0, aggregation_1.subtraction)(Part.UnAmt, Part.Disc, Part.RecDisc);
34
34
  Part.AfterPartDisc = NetAmt;
35
35
  if (IsIndependentTax) {
@@ -42,12 +42,12 @@ class DeliveryChallanTotalsService {
42
42
  return PartsList;
43
43
  }
44
44
  static ResetLaborPartValueIfInvalid(Part) {
45
- Part.UnPr = utils_1.TrUtils.SetValueToZeroIfNull(Part.UnPr);
46
- Part.Disc = utils_1.TrUtils.SetValueToZeroIfNull(Part.Disc);
47
- Part.RecDisc = utils_1.TrUtils.SetValueToZeroIfNull(Part.RecDisc);
48
- Part.CGST = utils_1.TrUtils.SetValueToZeroIfNull(Part.CGST);
49
- Part.SGST = utils_1.TrUtils.SetValueToZeroIfNull(Part.SGST);
50
- Part.IGST = utils_1.TrUtils.SetValueToZeroIfNull(Part.IGST);
45
+ Part.UnPr = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.UnPr);
46
+ Part.Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.Disc);
47
+ Part.RecDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.RecDisc);
48
+ Part.CGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.CGST);
49
+ Part.SGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.SGST);
50
+ Part.IGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.IGST);
51
51
  return Part;
52
52
  }
53
53
  static GetFinalChallanDataForSave(PartsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings, isRoundable) {
@@ -75,15 +75,15 @@ class DeliveryChallanTotalsService {
75
75
  let CustTotal = this.GetCustomerTotalBasedOnTaxType(CustPartTaxTotal, PartsList, IsIndependentTax);
76
76
  // console.log('CustTotal', CustTotal);
77
77
  if (isRoundable) {
78
- finalTotalsData.Round = utils_1.TrUtils.FixedTo(Math.round(CustTotal) - CustTotal);
78
+ finalTotalsData.Round = tr_utils_1.TrUtils.FixedTo(Math.round(CustTotal) - CustTotal);
79
79
  finalTotalsData.Total = Math.round(CustTotal);
80
80
  }
81
81
  else {
82
- finalTotalsData.Total = utils_1.TrUtils.FixedTo(CustTotal);
82
+ finalTotalsData.Total = tr_utils_1.TrUtils.FixedTo(CustTotal);
83
83
  }
84
84
  if (DetailedInfo) {
85
- finalTotalsData.FixedSubTotal = utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
86
- finalTotalsData.FixedTotal = utils_1.TrUtils.FixedTo(CustTotal);
85
+ finalTotalsData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
86
+ finalTotalsData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal);
87
87
  }
88
88
  return finalTotalsData;
89
89
  }
@@ -116,21 +116,21 @@ class DeliveryChallanTotalsService {
116
116
  // finalTotalsData.CustPartIGST = this.GetPartIGSTTaxTotal(PartsList, IsIndependentTax);
117
117
  // finalTotalsData.CustPartSGST = this.GetPartSGSTTaxTotal(PartsList, IsIndependentTax);
118
118
  let TaxInfo = this.GetPartGSTTaxTotal(PartsList, IsIndependentTax);
119
- finalTotalsData.CustPartITax = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[3]);
120
- finalTotalsData.CustPartCGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[0]);
121
- finalTotalsData.CustPartIGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[2]);
122
- finalTotalsData.CustPartSGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
119
+ finalTotalsData.CustPartITax = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[3]);
120
+ finalTotalsData.CustPartCGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[0]);
121
+ finalTotalsData.CustPartIGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[2]);
122
+ finalTotalsData.CustPartSGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
123
123
  // finalTotalsData.CustLaborAfterTax = TrUtils.FixedTo(finalTotalsData.CustLaborITax + finalTotalsData.CustLaborTotalAfterDisc);
124
124
  finalTotalsData.CustPartAfterTax = (0, aggregation_1.addition)(finalTotalsData.CustPartITax, finalTotalsData.CustPartsTotalAfterDisc);
125
125
  finalTotalsData.CustTaxGroupData = this.GetTaxGroupingForPartsByHSN(PartsList, TaxCodes);
126
- finalTotalsData.CustTotalRoundedBy = utils_1.TrUtils.FixedTo(finalTotalsData.Round);
127
- finalTotalsData.CustRoundedTotal = utils_1.TrUtils.FixedTo(finalTotalsData.Total);
126
+ finalTotalsData.CustTotalRoundedBy = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Round);
127
+ finalTotalsData.CustRoundedTotal = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Total);
128
128
  for (var key in finalTotalsData) {
129
129
  if (key !== 'Total' && key !== 'SubTotal' &&
130
130
  key !== 'LDisc' && key !== 'LPerc' && key !== 'PDisc' &&
131
131
  key !== 'PPerc' && key !== 'Disc' && key !== 'Perc' && key !== 'Tax'
132
132
  && typeof finalTotalsData[key] === 'number') {
133
- finalTotalsData[key] = utils_1.TrUtils.FixPriceValue(finalTotalsData[key]);
133
+ finalTotalsData[key] = tr_utils_1.TrUtils.FixPriceValue(finalTotalsData[key]);
134
134
  }
135
135
  }
136
136
  return finalTotalsData;
@@ -170,8 +170,8 @@ class DeliveryChallanTotalsService {
170
170
  }
171
171
  static LaborTotalAfterDiscount(LaborTotalAfterDisc, LaborTaxAmount, MainLDisc, LDiscInPerc) {
172
172
  let LaborTotal = (0, aggregation_1.addition)(LaborTotalAfterDisc, LaborTaxAmount);
173
- if (!utils_1.TrUtils.IsZero(MainLDisc)) {
174
- if (!utils_1.TrUtils.IsEmpty(LDiscInPerc)) {
173
+ if (!tr_utils_1.TrUtils.IsZero(MainLDisc)) {
174
+ if (!tr_utils_1.TrUtils.IsEmpty(LDiscInPerc)) {
175
175
  LaborTotal = (0, aggregation_1.subtraction)(LaborTotal, (0, aggregation_1.division)((0, aggregation_1.multiply)(LaborTotal, Number(LDiscInPerc)), 100));
176
176
  }
177
177
  else {
@@ -182,8 +182,8 @@ class DeliveryChallanTotalsService {
182
182
  }
183
183
  static ItemsTotalAfterDiscount(PartsTotalAfterDisc, PartsTaxAmount, MainPDisc, PDiscInPerc) {
184
184
  let ItemsTotal = (0, aggregation_1.addition)(PartsTotalAfterDisc, PartsTaxAmount);
185
- if (!utils_1.TrUtils.IsZero(MainPDisc)) {
186
- if (!utils_1.TrUtils.IsEmpty(PDiscInPerc)) {
185
+ if (!tr_utils_1.TrUtils.IsZero(MainPDisc)) {
186
+ if (!tr_utils_1.TrUtils.IsEmpty(PDiscInPerc)) {
187
187
  ItemsTotal = (0, aggregation_1.subtraction)(ItemsTotal, (0, aggregation_1.division)((0, aggregation_1.multiply)(ItemsTotal, Number(PDiscInPerc)), 100));
188
188
  }
189
189
  else {
@@ -242,13 +242,13 @@ class DeliveryChallanTotalsService {
242
242
  }
243
243
  static GetCombinedTaxPercentage(Parts, TaxCodes) {
244
244
  Parts.forEach((Part) => {
245
- if (utils_1.TrUtils.IsNull(Part.HSN)) {
245
+ if (tr_utils_1.TrUtils.IsNull(Part.HSN)) {
246
246
  Part.HSN = '';
247
247
  }
248
248
  let GSTValues = this.GetGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
249
- Part.CGSTAmt = utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[0]);
250
- Part.SGSTAmt = utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[1]);
251
- Part.IGSTAmt = utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[2]);
249
+ Part.CGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[0]);
250
+ Part.SGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[1]);
251
+ Part.IGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[2]);
252
252
  Part.CombinedTaxPercentage = (0, aggregation_1.addition)(Part.CGSTAmt, Part.SGSTAmt, Part.IGSTAmt);
253
253
  });
254
254
  return Parts;
@@ -299,8 +299,8 @@ class DeliveryChallanTotalsService {
299
299
  TaxAmount = (0, aggregation_1.addition)(TaxAmount, argMatchedGSTPart.SGST);
300
300
  });
301
301
  TaxInfo.HSN = HSN;
302
- TaxInfo.TotalTaxableAmount = utils_1.TrUtils.FixPriceValue(TaxOnAmount);
303
- TaxInfo.TotalTaxAmount = utils_1.TrUtils.FixPriceValue(TaxAmount);
302
+ TaxInfo.TotalTaxableAmount = tr_utils_1.TrUtils.FixPriceValue(TaxOnAmount);
303
+ TaxInfo.TotalTaxAmount = tr_utils_1.TrUtils.FixPriceValue(TaxAmount);
304
304
  TaxInfo.ItemsCount = MatchedPart.length;
305
305
  // let GSTValues: any[] = this.GetGSTValueBasedOnTaxCode(MatchedPart[0].TCode, TaxCodes);
306
306
  // TaxInfo.CGST = GSTValues[0];
@@ -319,7 +319,7 @@ class DeliveryChallanTotalsService {
319
319
  let CGST = 0;
320
320
  let SGST = 0;
321
321
  let IGST = 0;
322
- if (utils_1.TrUtils.IsNull(TCode)) {
322
+ if (tr_utils_1.TrUtils.IsNull(TCode)) {
323
323
  return [CGST, SGST, IGST];
324
324
  }
325
325
  let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
@@ -0,0 +1,23 @@
1
+ export declare class AnalysisXlsxFileService {
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 GetAnalysisExcelData(MainData: any, isSale: boolean, searchValue: any, HeaderName: any, HeaderText: any): any;
17
+ static setHeadingInCell(HeaderName: any, showSearch: any, HeadText: any): void;
18
+ static setInvoiceDetailsInCell(MainData: any, isSale: boolean, HeaderText: any): void;
19
+ static SetInvoiceDataInExcel(InvoiceInfo: any, isSale: boolean, HeaderText: 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.AnalysisXlsxFileService = 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 tr_utils_1 = require("../../../utils/tr-utils");
29
+ const my_date_1 = require("../../../utils/my-date");
30
30
  class AnalysisXlsxFileService {
31
31
  static GetAnalysisExcelData(MainData, isSale, searchValue, HeaderName, HeaderText) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class AnalysisXlsxFileService {
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 === '_id') ? isSale ? 'Report' : 'Report' : key,
48
48
  ColRange: 1,
@@ -260,7 +260,7 @@ class AnalysisXlsxFileService {
260
260
  }
261
261
  }
262
262
  if (typeof Text === 'number') {
263
- return Number(utils_1.TrUtils.FixedTo(Text));
263
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
264
264
  }
265
265
  else {
266
266
  return Text;
@@ -0,0 +1,23 @@
1
+ export declare class CategoryWiseItemXlsxFileService {
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 GetCategoryWiseItemExcelData(MainData: any, isSale: boolean, searchValue: any, HeaderName: any): any;
17
+ static setHeadingInCell(HeaderName: any, showSearch: any): void;
18
+ static setInvoiceDetailsInCell(MainData: any, isSale: boolean): void;
19
+ static SetInvoiceDataInExcel(InvoiceInfo: any, isSale: boolean): 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.CategoryWiseItemXlsxFileService = 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 CategoryWiseItemXlsxFileService {
31
31
  static GetCategoryWiseItemExcelData(MainData, isSale, searchValue, HeaderName) {
32
32
  this.wb = {};
@@ -42,7 +42,7 @@ class CategoryWiseItemXlsxFileService {
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 === '_id') ? isSale ? 'Report' : 'Report' : key,
48
48
  ColRange: 1,
@@ -206,12 +206,12 @@ class CategoryWiseItemXlsxFileService {
206
206
  let InvoiceData = [
207
207
  { text: InvoiceInfo.Name, ColRange: 1, IsString: true },
208
208
  { text: InvoiceInfo.Count, ColRange: 1, IsString: true },
209
- { text: utils_1.TrUtils.FixedTo(InvoiceInfo.Qty), ColRange: 1, IsString: true },
210
- { text: utils_1.TrUtils.FixedTo(InvoiceInfo.UnAmt), ColRange: 1, IsString: true },
211
- { text: utils_1.TrUtils.FixedTo(InvoiceInfo.TotalDisc), ColRange: 1, IsString: true },
212
- { text: utils_1.TrUtils.FixedTo(InvoiceInfo.Tax), ColRange: 1, IsString: true },
213
- { text: utils_1.TrUtils.FixedTo(InvoiceInfo.NetAmt), ColRange: 1, IsString: true },
214
- { text: utils_1.TrUtils.FixedTo(InvoiceInfo.AvgAmt), ColRange: 1, IsString: true },
209
+ { text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.Qty), ColRange: 1, IsString: true },
210
+ { text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.UnAmt), ColRange: 1, IsString: true },
211
+ { text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.TotalDisc), ColRange: 1, IsString: true },
212
+ { text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.Tax), ColRange: 1, IsString: true },
213
+ { text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.NetAmt), ColRange: 1, IsString: true },
214
+ { text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.AvgAmt), ColRange: 1, IsString: true },
215
215
  ];
216
216
  let ColStart = 0;
217
217
  InvoiceData.forEach((InvData) => {
@@ -237,7 +237,7 @@ class CategoryWiseItemXlsxFileService {
237
237
  }
238
238
  }
239
239
  if (typeof Text === 'number') {
240
- return Number(utils_1.TrUtils.FixedTo(Text));
240
+ return Number(tr_utils_1.TrUtils.FixedTo(Text));
241
241
  }
242
242
  else {
243
243
  return Text;