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,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AppointmentTotalsService = void 0;
4
- const enums_1 = require("../enums/enums");
5
- const utils_1 = require("../shared/utils");
4
+ const enums_1 = require("../../enums/enums");
5
+ const tr_utils_1 = require("../../utils/tr-utils");
6
6
  class AppointmentTotalsService {
7
7
  static GetTotalsValue(OriRecordData, TaxCodes, detailedInfo, withItems) {
8
- let dupRecordData = utils_1.TrUtils.Stringify(OriRecordData);
8
+ let dupRecordData = tr_utils_1.TrUtils.Stringify(OriRecordData);
9
9
  let argRecordData = {};
10
- dupRecordData.Ops = this.CalculateLaborValues(dupRecordData.Ops, utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
10
+ dupRecordData.Ops = this.CalculateLaborValues(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
11
11
  argRecordData = this.GetROTotalsData(argRecordData, dupRecordData, TaxCodes, withItems, detailedInfo);
12
12
  return argRecordData;
13
13
  }
@@ -32,14 +32,14 @@ class AppointmentTotalsService {
32
32
  return opCodesList;
33
33
  }
34
34
  static ResetLaborValueIfInvalid(Operation) {
35
- Operation.Perc = utils_1.TrUtils.SetPercToStringIfNull(Operation.Perc);
36
- Operation.Disc = utils_1.TrUtils.SetValueToZeroIfNull(Operation.Disc);
37
- Operation.Pr = utils_1.TrUtils.SetValueToZeroIfNull(Operation.Pr);
38
- Operation.CCGST = utils_1.TrUtils.SetValueToZeroIfNull(Operation.CCGST);
39
- Operation.CSGST = utils_1.TrUtils.SetValueToZeroIfNull(Operation.CSGST);
40
- Operation.CIGST = utils_1.TrUtils.SetValueToZeroIfNull(Operation.CIGST);
41
- Operation.NetAmt = utils_1.TrUtils.SetValueToZeroIfNull(Operation.NetAmt);
42
- Operation.RecDisc = utils_1.TrUtils.SetValueToZeroIfNull(Operation.RecDisc);
35
+ Operation.Perc = tr_utils_1.TrUtils.SetPercToStringIfNull(Operation.Perc);
36
+ Operation.Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Operation.Disc);
37
+ Operation.Pr = tr_utils_1.TrUtils.SetValueToZeroIfNull(Operation.Pr);
38
+ Operation.CCGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Operation.CCGST);
39
+ Operation.CSGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Operation.CSGST);
40
+ Operation.CIGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Operation.CIGST);
41
+ Operation.NetAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(Operation.NetAmt);
42
+ Operation.RecDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Operation.RecDisc);
43
43
  return Operation;
44
44
  }
45
45
  static GetOperationsDiscountPrice(OperationsList) {
@@ -90,10 +90,10 @@ class AppointmentTotalsService {
90
90
  return argRecordData;
91
91
  }
92
92
  static ResetDiscountValuesIfInvalid(dupRecordData) {
93
- dupRecordData.LPerc = utils_1.TrUtils.SetPercToStringIfNull(dupRecordData.LPerc);
94
- dupRecordData.Perc = utils_1.TrUtils.SetPercToStringIfNull(dupRecordData.Perc);
95
- dupRecordData.LDisc = utils_1.TrUtils.SetValueToZeroIfNull(dupRecordData.LDisc);
96
- dupRecordData.Disc = utils_1.TrUtils.SetValueToZeroIfNull(dupRecordData.Disc);
93
+ dupRecordData.LPerc = tr_utils_1.TrUtils.SetPercToStringIfNull(dupRecordData.LPerc);
94
+ dupRecordData.Perc = tr_utils_1.TrUtils.SetPercToStringIfNull(dupRecordData.Perc);
95
+ dupRecordData.LDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(dupRecordData.LDisc);
96
+ dupRecordData.Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(dupRecordData.Disc);
97
97
  return dupRecordData;
98
98
  }
99
99
  static SetMainDiscountValues(argRecordData, dupRecordData, detailedInfo) {
@@ -111,19 +111,19 @@ class AppointmentTotalsService {
111
111
  }
112
112
  static GetFinalCustomerTotalsData(argRecordData, dupRecordData, detailedInfo) {
113
113
  let CustomerAfterDiscTotals = this.GetCustSubTotal(dupRecordData.Ops);
114
- let CustLaborTaxTotal = this.GetCustLaborTaxTotal(dupRecordData.Ops, utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
115
- let CustLaborDiscTotal = this.GetCustLaborDiscountedTotal(dupRecordData.Ops, utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax), dupRecordData);
114
+ let CustLaborTaxTotal = this.GetCustLaborTaxTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
115
+ let CustLaborDiscTotal = this.GetCustLaborDiscountedTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax), dupRecordData);
116
116
  let CustLaborTotalAfterDisc = this.GetCustLaborTotalAfterDiscount(dupRecordData.Ops);
117
- argRecordData.STotal = utils_1.TrUtils.FixPriceValue(CustLaborDiscTotal + CustLaborTotalAfterDisc);
118
- argRecordData.CustLaborTotalBeforeDisc = utils_1.TrUtils.FixedTo(argRecordData.CustLaborTotalAfterDisc
117
+ argRecordData.STotal = tr_utils_1.TrUtils.FixPriceValue(CustLaborDiscTotal + CustLaborTotalAfterDisc);
118
+ argRecordData.CustLaborTotalBeforeDisc = tr_utils_1.TrUtils.FixedTo(argRecordData.CustLaborTotalAfterDisc
119
119
  + argRecordData.CustLaborDiscTotal);
120
- argRecordData.SubTotal = utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
121
- let CustTotal = this.GetCustomerTotalBasedOnTaxType(dupRecordData, CustLaborTaxTotal, dupRecordData.Ops, utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
120
+ argRecordData.SubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
121
+ let CustTotal = this.GetCustomerTotalBasedOnTaxType(dupRecordData, CustLaborTaxTotal, dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
122
122
  if (detailedInfo) {
123
- argRecordData.FixedSubTotal = utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
124
- argRecordData.FixedTotal = utils_1.TrUtils.FixedTo(CustTotal);
123
+ argRecordData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
124
+ argRecordData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal);
125
125
  }
126
- argRecordData.Round = utils_1.TrUtils.FixedTo(Math.round(CustTotal) - CustTotal);
126
+ argRecordData.Round = tr_utils_1.TrUtils.FixedTo(Math.round(CustTotal) - CustTotal);
127
127
  argRecordData.Total = Math.round(CustTotal);
128
128
  return argRecordData;
129
129
  }
@@ -154,22 +154,22 @@ class AppointmentTotalsService {
154
154
  SubTotalWithTax = LaborTotalAfterDisc + LaborTaxAmount;
155
155
  }
156
156
  else {
157
- SubTotalWithTax = utils_1.TrUtils.FixedTo((LaborTotalAfterDisc - dupRecordData.LDisc) - dupRecordData.Disc);
157
+ SubTotalWithTax = tr_utils_1.TrUtils.FixedTo((LaborTotalAfterDisc - dupRecordData.LDisc) - dupRecordData.Disc);
158
158
  }
159
159
  return SubTotalWithTax;
160
160
  }
161
161
  static GetDetailedTotalsData(argRecordData, dupRecordData, TaxCodes) {
162
- argRecordData.CustLaborDiscTotal = this.GetCustLaborDiscountedTotal(dupRecordData.Ops, utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax), dupRecordData);
162
+ argRecordData.CustLaborDiscTotal = this.GetCustLaborDiscountedTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax), dupRecordData);
163
163
  argRecordData.CustLaborTotalAfterDisc = this.GetCustLaborTotalAfterDiscount(dupRecordData.Ops);
164
- argRecordData.CustLaborTotalBeforeDisc = utils_1.TrUtils.FixedTo(argRecordData.CustLaborTotalAfterDisc
164
+ argRecordData.CustLaborTotalBeforeDisc = tr_utils_1.TrUtils.FixedTo(argRecordData.CustLaborTotalAfterDisc
165
165
  + argRecordData.CustLaborDiscTotal);
166
- argRecordData.CustLaborITax = this.GetCustLaborTaxTotal(dupRecordData.Ops, utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
167
- argRecordData.CustLaborSGST = this.GetCustLaborSGSTTaxTotal(dupRecordData.Ops, utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
168
- argRecordData.CustLaborCGST = this.GetCustLaborCGSTTaxTotal(dupRecordData.Ops, utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
169
- argRecordData.CustLaborIGST = this.GetCustLaborIGSTTaxTotal(dupRecordData.Ops, utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
166
+ argRecordData.CustLaborITax = this.GetCustLaborTaxTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
167
+ argRecordData.CustLaborSGST = this.GetCustLaborSGSTTaxTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
168
+ argRecordData.CustLaborCGST = this.GetCustLaborCGSTTaxTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
169
+ argRecordData.CustLaborIGST = this.GetCustLaborIGSTTaxTotal(dupRecordData.Ops, tr_utils_1.TrUtils.isTaxable(dupRecordData.Settings.Tax));
170
170
  argRecordData.CustLaborLDiscAmount = this.GetLaborLDiscAmount(argRecordData.CustLaborTotalAfterDisc, argRecordData.LDisc);
171
171
  argRecordData.CustLaborAfterLDisc = argRecordData.CustLaborTotalAfterDisc;
172
- argRecordData.CustLaborAfterTax = utils_1.TrUtils.FixedTo(argRecordData.CustLaborITax + argRecordData.CustLaborAfterLDisc);
172
+ argRecordData.CustLaborAfterTax = tr_utils_1.TrUtils.FixedTo(argRecordData.CustLaborITax + argRecordData.CustLaborAfterLDisc);
173
173
  argRecordData.CustTotalRoundedBy = argRecordData.Round;
174
174
  argRecordData.CustRoundedTotal = argRecordData.Total;
175
175
  for (var key in argRecordData) {
@@ -177,7 +177,7 @@ class AppointmentTotalsService {
177
177
  key !== 'LDisc' && key !== 'LPerc' && key !== 'PDisc' &&
178
178
  key !== 'PPerc' && key !== 'Disc' && key !== 'Perc' && key !== 'Tax'
179
179
  && typeof argRecordData[key] === 'number') {
180
- argRecordData[key] = utils_1.TrUtils.FixPriceValue(argRecordData[key]);
180
+ argRecordData[key] = tr_utils_1.TrUtils.FixPriceValue(argRecordData[key]);
181
181
  }
182
182
  }
183
183
  return argRecordData;
@@ -186,12 +186,12 @@ class AppointmentTotalsService {
186
186
  let LaborDiscountedTotal = 0;
187
187
  let overallLaborDisc = 0;
188
188
  if (!isTaxable) {
189
- overallLaborDisc = utils_1.TrUtils.SetValueToZeroIfNull(finalTotalsData.LDisc);
189
+ overallLaborDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(finalTotalsData.LDisc);
190
190
  }
191
191
  LaborList.forEach((Labor) => {
192
192
  LaborDiscountedTotal += Labor.CustDiscountedPrice;
193
193
  });
194
- return utils_1.TrUtils.FixedTo(LaborDiscountedTotal + overallLaborDisc);
194
+ return tr_utils_1.TrUtils.FixedTo(LaborDiscountedTotal + overallLaborDisc);
195
195
  }
196
196
  static GetCustLaborCGSTTaxTotal(opCodesList, IsTaxable) {
197
197
  let TotalTaxAmt = 0;
@@ -222,7 +222,7 @@ class AppointmentTotalsService {
222
222
  }
223
223
  static GetLaborLDiscAmount(LaborTotalAfterDisc, LDisc) {
224
224
  let LaborLDiscAmt = 0;
225
- if (!utils_1.TrUtils.IsZero(LaborTotalAfterDisc)) {
225
+ if (!tr_utils_1.TrUtils.IsZero(LaborTotalAfterDisc)) {
226
226
  LaborLDiscAmt = LDisc;
227
227
  }
228
228
  return LaborLDiscAmt;
@@ -231,7 +231,7 @@ class AppointmentTotalsService {
231
231
  let CGST = 0;
232
232
  let SGST = 0;
233
233
  let IGST = 0;
234
- if (utils_1.TrUtils.IsNull(TCode)) {
234
+ if (tr_utils_1.TrUtils.IsNull(TCode)) {
235
235
  return [CGST, SGST, IGST];
236
236
  }
237
237
  let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
@@ -0,0 +1,318 @@
1
+ export declare class ConsultationFeeReceiptPrintService {
2
+ static GetPrint(consultationData: any): any;
3
+ static FooterContent(consultationData: any): {
4
+ table: {
5
+ widths: string[];
6
+ body: {
7
+ text: any;
8
+ alignment: string;
9
+ fontSize: number;
10
+ }[][];
11
+ };
12
+ margin: number[];
13
+ stack?: undefined;
14
+ } | {
15
+ stack: ({
16
+ canvas: {
17
+ type: string;
18
+ lineColor: string;
19
+ x1: number;
20
+ y1: number;
21
+ x2: number;
22
+ y2: number;
23
+ lineWidth: number;
24
+ }[];
25
+ } | {
26
+ text: any;
27
+ bold: boolean;
28
+ alignment: string;
29
+ marginBottom: number;
30
+ columns?: undefined;
31
+ } | {
32
+ columns: {
33
+ style: string;
34
+ table: {
35
+ widths: (string | number)[];
36
+ body: (({
37
+ text: string;
38
+ bold: boolean;
39
+ marginLeft?: undefined;
40
+ } | {
41
+ text: string;
42
+ marginLeft: number;
43
+ bold?: undefined;
44
+ })[] | ({
45
+ text: string;
46
+ marginLeft?: undefined;
47
+ } | {
48
+ text: string;
49
+ marginLeft: number;
50
+ })[])[];
51
+ };
52
+ layout: string;
53
+ }[];
54
+ text?: undefined;
55
+ bold?: undefined;
56
+ alignment?: undefined;
57
+ marginBottom?: undefined;
58
+ })[];
59
+ margin: number[];
60
+ table?: undefined;
61
+ };
62
+ static GetMainHeaderDetails(CnstData: any, Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): ({
63
+ canvas: {
64
+ type: string;
65
+ lineColor: string;
66
+ x1: number;
67
+ y1: number;
68
+ x2: number;
69
+ y2: number;
70
+ lineWidth: number;
71
+ }[];
72
+ } | {
73
+ columns: ({
74
+ columns: any;
75
+ width: string;
76
+ } | {
77
+ stack: ({
78
+ text: any;
79
+ fontSize: number;
80
+ bold: boolean;
81
+ alignment: string;
82
+ marginBottom?: undefined;
83
+ } | {
84
+ text: any;
85
+ fontSize: number;
86
+ alignment: string;
87
+ bold?: undefined;
88
+ marginBottom?: undefined;
89
+ } | {
90
+ text: string;
91
+ fontSize: number;
92
+ alignment: string;
93
+ marginBottom: number;
94
+ bold?: undefined;
95
+ })[];
96
+ width: string;
97
+ })[];
98
+ } | {
99
+ columns: ({
100
+ image: any;
101
+ width: number;
102
+ height: number;
103
+ text?: undefined;
104
+ } | {
105
+ text: string;
106
+ width: number;
107
+ height: number;
108
+ image?: undefined;
109
+ } | {
110
+ stack: ({
111
+ text: any;
112
+ fontSize: number;
113
+ bold: boolean;
114
+ alignment: string;
115
+ marginBottom?: undefined;
116
+ } | {
117
+ text: any;
118
+ fontSize: number;
119
+ alignment: string;
120
+ bold?: undefined;
121
+ marginBottom?: undefined;
122
+ } | {
123
+ text: string;
124
+ fontSize: number;
125
+ alignment: string;
126
+ marginBottom: number;
127
+ bold?: undefined;
128
+ })[];
129
+ width: string;
130
+ })[];
131
+ } | {
132
+ columns: ({
133
+ stack: ({
134
+ text: any;
135
+ fontSize: number;
136
+ marginTop: number;
137
+ marginBottom?: undefined;
138
+ } | {
139
+ text: string;
140
+ fontSize: number;
141
+ marginBottom: number;
142
+ marginTop?: undefined;
143
+ })[];
144
+ marginTop?: undefined;
145
+ width?: undefined;
146
+ } | {
147
+ stack: {
148
+ text: string;
149
+ style: string[];
150
+ }[];
151
+ marginTop: number;
152
+ width: number;
153
+ })[];
154
+ })[];
155
+ static GetHeaderBasedOnCondition(CnstData: any, Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): {
156
+ columns: ({
157
+ columns: any;
158
+ width: string;
159
+ } | {
160
+ stack: ({
161
+ text: any;
162
+ fontSize: number;
163
+ bold: boolean;
164
+ alignment: string;
165
+ marginBottom?: undefined;
166
+ } | {
167
+ text: any;
168
+ fontSize: number;
169
+ alignment: string;
170
+ bold?: undefined;
171
+ marginBottom?: undefined;
172
+ } | {
173
+ text: string;
174
+ fontSize: number;
175
+ alignment: string;
176
+ marginBottom: number;
177
+ bold?: undefined;
178
+ })[];
179
+ width: string;
180
+ })[];
181
+ } | {
182
+ columns: ({
183
+ image: any;
184
+ width: number;
185
+ height: number;
186
+ text?: undefined;
187
+ } | {
188
+ text: string;
189
+ width: number;
190
+ height: number;
191
+ image?: undefined;
192
+ } | {
193
+ stack: ({
194
+ text: any;
195
+ fontSize: number;
196
+ bold: boolean;
197
+ alignment: string;
198
+ marginBottom?: undefined;
199
+ } | {
200
+ text: any;
201
+ fontSize: number;
202
+ alignment: string;
203
+ bold?: undefined;
204
+ marginBottom?: undefined;
205
+ } | {
206
+ text: string;
207
+ fontSize: number;
208
+ alignment: string;
209
+ marginBottom: number;
210
+ bold?: undefined;
211
+ })[];
212
+ width: string;
213
+ })[];
214
+ };
215
+ static GetPhoneNumber(phone: any): string;
216
+ static getDoctorName(DocName: any): any;
217
+ static GetPhone(Phone: any): any;
218
+ static DifferenceInYears(DOB: any): string;
219
+ static HeaderLayOut(): {
220
+ hLineWidth: (i: any, node: any) => 0 | 1;
221
+ vLineWidth: (i: any, node: any) => 0 | 1;
222
+ hLineColor: (i: any, node: any) => string;
223
+ vLineColor: (i: any, node: any) => string;
224
+ };
225
+ static GetHeaderInfo(consultationData: any): any;
226
+ static finalReturnTotal(consultationData: any): string;
227
+ static GetTotalDeetails(consultationData: any): {
228
+ style: string[];
229
+ lineHeight: number;
230
+ marginBottom: number;
231
+ width: string;
232
+ table: {
233
+ body: any;
234
+ };
235
+ layout: string;
236
+ };
237
+ static GrandTotalTable(data: any): any;
238
+ static GetBillofSupplyName(Settings: any): {
239
+ text: string | null;
240
+ alignment: string;
241
+ marginRight: number;
242
+ marginTop: number;
243
+ marginBottom: number;
244
+ fontSize: number;
245
+ width: string;
246
+ };
247
+ static GetDiscountOverall(consultationData: any): string;
248
+ static CustomerAndVehicleDetailsAfterLine(size: any): {
249
+ canvas: {
250
+ type: string;
251
+ lineColor: string;
252
+ x1: number;
253
+ y1: number;
254
+ x2: number;
255
+ y2: number;
256
+ lineWidth: number;
257
+ }[];
258
+ };
259
+ static GetSignatures(CName: any, For: any, Type: any): {
260
+ columns: {
261
+ stack: {
262
+ style: string;
263
+ text: (string | {
264
+ text: any;
265
+ })[];
266
+ }[];
267
+ }[];
268
+ };
269
+ static CompanyName(CName: any): {
270
+ style: string;
271
+ text: (string | {
272
+ text: any;
273
+ })[];
274
+ };
275
+ static Authorizedsignature(): {
276
+ style: string;
277
+ text: string[];
278
+ };
279
+ static CustomerSignature(): {
280
+ style: string;
281
+ text: string[];
282
+ marginLeft: number;
283
+ };
284
+ static GetItemsTable(Items: any, ShowTaxColumn: boolean): {
285
+ style: string;
286
+ marginTop: number;
287
+ marginBottom: number;
288
+ table: {
289
+ widths: (string | number)[];
290
+ headerRows: number;
291
+ body: any;
292
+ };
293
+ layout: {
294
+ hLineWidth: (i: any, node: any) => 0 | 1;
295
+ vLineWidth: (i: any, node: any) => 1 | 0.5;
296
+ hLineColor: (i: any, node: any) => string;
297
+ vLineColor: (i: any, node: any) => string;
298
+ };
299
+ };
300
+ static GetWidths(ShowTaxColumn: any): (string | number)[];
301
+ static GetAddress(Entity: any): {
302
+ style: string;
303
+ table: {
304
+ widths: string[];
305
+ body: ({
306
+ text: string;
307
+ bold: boolean;
308
+ } | {
309
+ text: string;
310
+ bold?: undefined;
311
+ })[][];
312
+ };
313
+ layout: string;
314
+ };
315
+ static GetPINCode(PIN: any): string;
316
+ static BuildTableBodyForLaborAndParts(Items: any, ShowTaxColumn: any): any;
317
+ static GetHeaderNames(ShowTaxColumn: any): any;
318
+ }
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConsultationFeeReceiptPrintService = void 0;
4
4
  const date_fns_1 = require("date-fns");
5
- const my_date_1 = require("../shared/my-date");
6
- const utils_1 = require("../shared/utils");
7
- const shared_pdf_service_1 = require("./shared-pdf.service");
5
+ const tr_utils_1 = require("../../utils/tr-utils");
6
+ const shared_pdf_service_1 = require("../../shared/shared-services/shared-pdf.service");
7
+ const my_date_1 = require("../../utils/my-date");
8
8
  class ConsultationFeeReceiptPrintService {
9
9
  static GetPrint(consultationData) {
10
- if (utils_1.TrUtils.IsNull(consultationData.Name)) {
10
+ if (tr_utils_1.TrUtils.IsNull(consultationData.Name)) {
11
11
  consultationData.Name = '';
12
12
  }
13
13
  let dd = {
@@ -126,7 +126,7 @@ class ConsultationFeeReceiptPrintService {
126
126
  }
127
127
  }
128
128
  static GetPhoneNumber(phone) {
129
- if (!utils_1.TrUtils.IsNull(phone)) {
129
+ if (!tr_utils_1.TrUtils.IsNull(phone)) {
130
130
  return ' | ' + phone;
131
131
  }
132
132
  else {
@@ -134,7 +134,7 @@ class ConsultationFeeReceiptPrintService {
134
134
  }
135
135
  }
136
136
  static getDoctorName(DocName) {
137
- if (!utils_1.TrUtils.IsNull(DocName)) {
137
+ if (!tr_utils_1.TrUtils.IsNull(DocName)) {
138
138
  return DocName;
139
139
  }
140
140
  else {
@@ -142,7 +142,7 @@ class ConsultationFeeReceiptPrintService {
142
142
  }
143
143
  }
144
144
  static GetPhone(Phone) {
145
- if (utils_1.TrUtils.IsNull(Phone)) {
145
+ if (tr_utils_1.TrUtils.IsNull(Phone)) {
146
146
  return '';
147
147
  }
148
148
  else {
@@ -150,7 +150,7 @@ class ConsultationFeeReceiptPrintService {
150
150
  }
151
151
  }
152
152
  static DifferenceInYears(DOB) {
153
- if (utils_1.TrUtils.IsNull(DOB)) {
153
+ if (tr_utils_1.TrUtils.IsNull(DOB)) {
154
154
  return 'DOB Not Specified';
155
155
  }
156
156
  const result = (0, date_fns_1.differenceInYears)(my_date_1.MyDate.GetDateTimeNowInUTC(), new Date(DOB));
@@ -174,10 +174,10 @@ class ConsultationFeeReceiptPrintService {
174
174
  }
175
175
  static GetHeaderInfo(consultationData) {
176
176
  let TaxInfo = [];
177
- if (!utils_1.TrUtils.IsEmpty(consultationData.Entity.GSTIN)) {
177
+ if (!tr_utils_1.TrUtils.IsEmpty(consultationData.Entity.GSTIN)) {
178
178
  TaxInfo.push({ text: 'GSTIN : ' + consultationData.Entity.GSTIN, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: 'auto' });
179
179
  }
180
- if (!utils_1.TrUtils.IsEmpty(consultationData.Entity.DLNo)) {
180
+ if (!tr_utils_1.TrUtils.IsEmpty(consultationData.Entity.DLNo)) {
181
181
  TaxInfo.push({ text: 'D.L.NO : ' + consultationData.Entity.DLNo, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: '*' });
182
182
  }
183
183
  TaxInfo.push(this.GetBillofSupplyName(consultationData.Settings));
@@ -207,11 +207,11 @@ class ConsultationFeeReceiptPrintService {
207
207
  static GrandTotalTable(data) {
208
208
  var body = [];
209
209
  data.forEach((row) => {
210
- if (!utils_1.TrUtils.IsFixedZero(row.value) || row.name === 'Total') {
210
+ if (!tr_utils_1.TrUtils.IsFixedZero(row.value) || row.name === 'Total') {
211
211
  var dataRow = [];
212
212
  dataRow.push({ text: (row.name).toString(), noWrap: true, bold: true, style: ['headerstyle'], fontSize: 10 });
213
213
  dataRow.push({ text: ':', style: ['headerstyle'], bold: true, fontSize: 10 });
214
- if (!utils_1.TrUtils.IsNull(row.value)) {
214
+ if (!tr_utils_1.TrUtils.IsNull(row.value)) {
215
215
  dataRow.push({ text: (row.value).toString(), noWrap: true, alignment: 'right', bold: true, style: ['headerstyle'], fontSize: 10, marginRight: 5 });
216
216
  }
217
217
  else {
@@ -226,9 +226,9 @@ class ConsultationFeeReceiptPrintService {
226
226
  return { text: (Settings === null || Settings === void 0 ? void 0 : Settings.Tax) === 'BS' ? 'Bill of Supply' : null, alignment: 'right', marginRight: 5, marginTop: 2, marginBottom: 3, fontSize: 9, width: 'auto' };
227
227
  }
228
228
  static GetDiscountOverall(consultationData) {
229
- let OveralDisc = utils_1.TrUtils.SetValueToZeroIfNull(Number(consultationData.Disc)) +
230
- utils_1.TrUtils.SetValueToZeroIfNull(Number(consultationData.CustPartsDiscTotal));
231
- return utils_1.TrUtils.FixPriceValue(OveralDisc);
229
+ let OveralDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Number(consultationData.Disc)) +
230
+ tr_utils_1.TrUtils.SetValueToZeroIfNull(Number(consultationData.CustPartsDiscTotal));
231
+ return tr_utils_1.TrUtils.FixPriceValue(OveralDisc);
232
232
  }
233
233
  static CustomerAndVehicleDetailsAfterLine(size) {
234
234
  let length = 575;
@@ -318,7 +318,7 @@ class ConsultationFeeReceiptPrintService {
318
318
  }
319
319
  static GetAddress(Entity) {
320
320
  let Addres = Entity.Adrs1;
321
- if (!utils_1.TrUtils.IsEmpty(Entity.Adrs2)) {
321
+ if (!tr_utils_1.TrUtils.IsEmpty(Entity.Adrs2)) {
322
322
  Addres = Addres + ',' + Entity.Adrs2;
323
323
  }
324
324
  Addres = Addres + ',' + Entity.City + shared_pdf_service_1.SharedPDFService.getPinCode(Entity.PIN);
@@ -334,7 +334,7 @@ class ConsultationFeeReceiptPrintService {
334
334
  };
335
335
  }
336
336
  static GetPINCode(PIN) {
337
- if (utils_1.TrUtils.IsNull(PIN)) {
337
+ if (tr_utils_1.TrUtils.IsNull(PIN)) {
338
338
  return '';
339
339
  }
340
340
  else {