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
@@ -0,0 +1,49 @@
1
+ export declare class PrintSharedService {
2
+ static GetEntityHeaderStyles(PDFData: any, Entity: any, image: any): any;
3
+ static GetFormattedEntityDataForPrint(argEntityData: any, RecordType: string, OriginalData: any): any;
4
+ static GetEntityContactDetails(EntityInfo: any): string;
5
+ static GetEntityEmailDetails(EntityInfo: any): string;
6
+ static GetVehicleFromServiceAndFormatData(originalvehicledata: any): any;
7
+ static GetVehicleDataForPrint(vehicle: any): any;
8
+ static GetCustomerFromServiceAndFormatData(originalcustomerdata: any): any;
9
+ static GetCustomerDataForROEstPrint(customer: any): any;
10
+ static GetAddress(Address: any): any[];
11
+ static AddingComaAsaLastLetter(Stmt: string): string;
12
+ static GetCustomerDataForTechnicianPrint(customer: any): {
13
+ Name: string;
14
+ GSTIN: any;
15
+ Adrs: any[];
16
+ };
17
+ static GetCGSTValueBasedOnTaxCode(TCode: any, argTaxCodes: any): number;
18
+ static GetSGSTValueBasedOnTaxCode(TCode: any, argTaxCodes: any): number;
19
+ static GetIGSTValueBasedOnTaxCode(TCode: any, argTaxCodes: any): number;
20
+ static CheckItemIndexWithDisc(RecordInfo: any): number;
21
+ static GetWithOutDiscountFieldHeader(permission: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
22
+ static GetWithOutDiscountFieldHeader1(permission: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
23
+ static GetWithOutDiscountFieldHeaderSharedInv(permission: any, Body: any, ShowDiscountColumn: any): any;
24
+ static GetWithOutDiscountFieldHeader2(permission: any, Body: any, ShowDiscountColumn: any): any;
25
+ static GetReceiptWithOutDiscountFieldHeader(permission: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
26
+ static GetReceiptWithOutDiscountFieldHeader1(permission: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
27
+ static GetReceiptWithOutDiscountFieldHeader2(permission: any, Body: any, ShowDiscountColumn: any): any;
28
+ static TaxReceiptTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any): number[];
29
+ static TaxTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any): (string | number)[];
30
+ static WidthForInsuranceOrNot(ShowDiscountColumn: any, PrintPartNo: boolean): number[];
31
+ static LayOutStyle1(): {
32
+ hLineWidth: (i: any, node: any) => number;
33
+ vLineWidth: (i: any, node: any) => number;
34
+ hLineColor: (i: any, node: any) => string;
35
+ vLineColor: (i: any, node: any) => string;
36
+ };
37
+ static LayOutStyle(): {
38
+ hLineWidth: (i: any, node: any) => number;
39
+ vLineWidth: (i: any, node: any) => number;
40
+ hLineColor: (i: any, node: any) => string;
41
+ vLineColor: (i: any, node: any) => string;
42
+ };
43
+ static LayOutStyleanother(): {
44
+ hLineWidth: (i: any, node: any) => number;
45
+ vLineWidth: (i: any, node: any) => number;
46
+ hLineColor: (i: any, node: any) => "black" | "gray";
47
+ vLineColor: (i: any, node: any) => "black" | "gray";
48
+ };
49
+ }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PrintSharedService = void 0;
4
- const my_date_1 = require("../shared/my-date");
5
- const utils_1 = require("../shared/utils");
4
+ const my_date_1 = require("../../utils/my-date");
5
+ const tr_utils_1 = require("../../utils/tr-utils");
6
6
  class PrintSharedService {
7
7
  static GetEntityHeaderStyles(PDFData, Entity, image) {
8
8
  PDFData.Image = image;
@@ -11,26 +11,26 @@ class PrintSharedService {
11
11
  return PDFData;
12
12
  }
13
13
  static GetFormattedEntityDataForPrint(argEntityData, RecordType, OriginalData) {
14
- let EntityData = utils_1.TrUtils.Stringify(argEntityData);
14
+ let EntityData = tr_utils_1.TrUtils.Stringify(argEntityData);
15
15
  let tempEntity = EntityData.Entity;
16
- if (!utils_1.TrUtils.IsNull(tempEntity.Address) && tempEntity.Address.length !== 0) {
17
- tempEntity.Address = utils_1.TrUtils.Stringify(tempEntity.Address[0]);
16
+ if (!tr_utils_1.TrUtils.IsNull(tempEntity.Address) && tempEntity.Address.length !== 0) {
17
+ tempEntity.Address = tr_utils_1.TrUtils.Stringify(tempEntity.Address[0]);
18
18
  }
19
- if (utils_1.TrUtils.IsNull(EntityData.User.TZ)) {
19
+ if (tr_utils_1.TrUtils.IsNull(EntityData.User.TZ)) {
20
20
  EntityData.User.TZ = 'Asia/Calcutta';
21
21
  }
22
22
  my_date_1.MyDate.UserTimeZone = EntityData.User.TZ;
23
23
  let Entity = {};
24
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common)) {
24
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common)) {
25
25
  tempEntity.Settings.Common = {};
26
26
  }
27
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax)) {
27
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax)) {
28
28
  tempEntity.Settings.Common.Tax = {};
29
29
  }
30
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Acc)) {
30
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Acc)) {
31
31
  tempEntity.Settings.Acc = {};
32
32
  }
33
- if (!utils_1.TrUtils.IsNull(tempEntity.Settings.Acc) && !utils_1.TrUtils.IsNull(tempEntity.Settings.Acc.Banks)) {
33
+ if (!tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Acc) && !tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Acc.Banks)) {
34
34
  let Bank = tempEntity.Settings.Acc.Banks.filter((bank) => {
35
35
  return bank.Def;
36
36
  });
@@ -39,61 +39,61 @@ class PrintSharedService {
39
39
  Entity.PrUPI = tempEntity.Settings.Acc.PrUPI;
40
40
  Entity.UPI = tempEntity.Settings.Acc.UPI;
41
41
  }
42
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.GSTIN)) {
42
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.GSTIN)) {
43
43
  Entity.GSTIN = '';
44
44
  }
45
45
  else {
46
46
  Entity.GSTIN = tempEntity.Settings.Common.Tax.GSTIN;
47
47
  }
48
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.DLNo)) {
48
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.DLNo)) {
49
49
  Entity.DLNo = '';
50
50
  }
51
51
  else {
52
52
  Entity.DLNo = tempEntity.Settings.Common.DLNo;
53
53
  }
54
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.RegNo)) {
54
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.RegNo)) {
55
55
  Entity.RegNo = '';
56
56
  }
57
57
  else {
58
58
  Entity.RegNo = tempEntity.Settings.Common.RegNo;
59
59
  }
60
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.GSTType)) {
60
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.GSTType)) {
61
61
  Entity.GSTType = '';
62
62
  }
63
63
  else {
64
64
  Entity.GSTType = tempEntity.Settings.Common.Tax.GSTType;
65
65
  }
66
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.TIN)) {
66
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.TIN)) {
67
67
  Entity.TIN = '';
68
68
  }
69
69
  else {
70
70
  Entity.TIN = tempEntity.Settings.Common.Tax.TIN;
71
71
  }
72
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.CIN)) {
72
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.CIN)) {
73
73
  Entity.CIN = '';
74
74
  }
75
75
  else {
76
76
  Entity.CIN = tempEntity.Settings.Common.Tax.CIN;
77
77
  }
78
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.GST)) {
78
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.GST)) {
79
79
  Entity.GST = '';
80
80
  }
81
81
  else {
82
82
  Entity.GST = tempEntity.Settings.Common.Tax.GST;
83
83
  }
84
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.CST)) {
84
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.CST)) {
85
85
  Entity.CST = '';
86
86
  }
87
87
  else {
88
88
  Entity.CST = tempEntity.Settings.Common.Tax.CST;
89
89
  }
90
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.PAN)) {
90
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.PAN)) {
91
91
  Entity.PAN = '';
92
92
  }
93
93
  else {
94
94
  Entity.PAN = tempEntity.Settings.Common.Tax.PAN;
95
95
  }
96
- if (!utils_1.TrUtils.IsNull(tempEntity.Phone2) && !utils_1.TrUtils.IsNull(tempEntity.Phone2.No)) {
96
+ if (!tr_utils_1.TrUtils.IsNull(tempEntity.Phone2) && !tr_utils_1.TrUtils.IsNull(tempEntity.Phone2.No)) {
97
97
  Entity.Phone2 = tempEntity.Phone2.No;
98
98
  }
99
99
  else {
@@ -106,38 +106,38 @@ class PrintSharedService {
106
106
  Entity.City = tempEntity.Address.Ct;
107
107
  Entity.PIN = tempEntity.Address.Pin;
108
108
  let Email = this.GetEntityEmailDetails(tempEntity);
109
- if (!utils_1.TrUtils.IsEmpty(Email)) {
109
+ if (!tr_utils_1.TrUtils.IsEmpty(Email)) {
110
110
  Entity.Email = Email;
111
111
  }
112
112
  Entity.Phone = this.GetEntityContactDetails(tempEntity);
113
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions)) {
113
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions)) {
114
114
  tempEntity.Settings.Common.PrOptions = {};
115
115
  }
116
116
  // if (RecordType === "Work Order" || RecordType === "Estimate") {
117
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Service)) {
117
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Service)) {
118
118
  tempEntity.Settings.Service = {};
119
119
  }
120
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Service.PrMPN)) {
120
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Service.PrMPN)) {
121
121
  tempEntity.Settings.Service.PrMPN = false;
122
122
  }
123
123
  Entity.MPN = tempEntity.Settings.Service.PrMPN;
124
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Acc)) {
124
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Acc)) {
125
125
  tempEntity.Settings.Acc = {};
126
126
  }
127
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Acc.Round)) {
127
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Acc.Round)) {
128
128
  tempEntity.Settings.Service.Round = false;
129
129
  }
130
130
  Entity.Round = tempEntity.Settings.Acc.Round;
131
131
  // }else{
132
132
  // Entity.MPN = false;
133
133
  // }
134
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions.Header)) {
134
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions.Header)) {
135
135
  tempEntity.Settings.Common.PrOptions.Header = 1;
136
136
  }
137
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions.Wmark)) {
137
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions.Wmark)) {
138
138
  tempEntity.Settings.Common.PrOptions.Wmark = false;
139
139
  }
140
- if (utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions.Body)) {
140
+ if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions.Body)) {
141
141
  tempEntity.Settings.PrOptions.Body = 1;
142
142
  }
143
143
  Entity.Header = tempEntity.Settings.Common.PrOptions.Header;
@@ -146,20 +146,20 @@ class PrintSharedService {
146
146
  Entity.FootText = tempEntity.Settings.Common.PrOptions.FootText;
147
147
  Entity.Body = 3;
148
148
  if (RecordType === "Invoice") {
149
- Entity.Terms = utils_1.TrUtils.IsEmpty(OriginalData.TC) ? EntityData.Entity.Settings.Acc.ITerms : OriginalData.TC;
149
+ Entity.Terms = tr_utils_1.TrUtils.IsEmpty(OriginalData.TC) ? EntityData.Entity.Settings.Acc.ITerms : OriginalData.TC;
150
150
  }
151
151
  else if (RecordType === "Work Order") {
152
- Entity.Terms = utils_1.TrUtils.IsEmpty(OriginalData.TC) ? EntityData.Entity.Settings.Service.WTerms : OriginalData.TC;
152
+ Entity.Terms = tr_utils_1.TrUtils.IsEmpty(OriginalData.TC) ? EntityData.Entity.Settings.Service.WTerms : OriginalData.TC;
153
153
  }
154
154
  else if (RecordType === "Estimate") {
155
- Entity.Terms = utils_1.TrUtils.IsEmpty(OriginalData.TC) ? EntityData.Entity.Settings.Service.ETerms : OriginalData.TC;
155
+ Entity.Terms = tr_utils_1.TrUtils.IsEmpty(OriginalData.TC) ? EntityData.Entity.Settings.Service.ETerms : OriginalData.TC;
156
156
  // Entity.Terms = "Estimate Terms";
157
157
  }
158
158
  else if (RecordType === "SalesOrder") {
159
- Entity.Terms = utils_1.TrUtils.IsEmpty(OriginalData.TC) ? "Sales Order Terms" : OriginalData.TC;
159
+ Entity.Terms = tr_utils_1.TrUtils.IsEmpty(OriginalData.TC) ? "Sales Order Terms" : OriginalData.TC;
160
160
  }
161
161
  else if (RecordType === "Sales Estimate") {
162
- Entity.Terms = utils_1.TrUtils.IsEmpty(OriginalData.TC) ? "Estimate Terms" : OriginalData.TC;
162
+ Entity.Terms = tr_utils_1.TrUtils.IsEmpty(OriginalData.TC) ? "Estimate Terms" : OriginalData.TC;
163
163
  }
164
164
  else {
165
165
  Entity.Terms = "";
@@ -169,17 +169,17 @@ class PrintSharedService {
169
169
  static GetEntityContactDetails(EntityInfo) {
170
170
  let Phone = '';
171
171
  // console.log('EntityInfo', TrUtils.Stringify(EntityInfo));
172
- if (!utils_1.TrUtils.IsNull(EntityInfo.Phone1) && !utils_1.TrUtils.IsNull(EntityInfo.Phone1.No)) {
172
+ if (!tr_utils_1.TrUtils.IsNull(EntityInfo.Phone1) && !tr_utils_1.TrUtils.IsNull(EntityInfo.Phone1.No)) {
173
173
  if (EntityInfo.Phone1.PrHead) {
174
174
  Phone += EntityInfo.Phone1.No;
175
175
  }
176
176
  }
177
- if (!utils_1.TrUtils.IsNull(EntityInfo.Phone2) && !utils_1.TrUtils.IsNull(EntityInfo.Phone2.No)) {
177
+ if (!tr_utils_1.TrUtils.IsNull(EntityInfo.Phone2) && !tr_utils_1.TrUtils.IsNull(EntityInfo.Phone2.No)) {
178
178
  if (EntityInfo.Phone2.PrHead) {
179
179
  Phone += ' , ' + EntityInfo.Phone2.No;
180
180
  }
181
181
  }
182
- if (!utils_1.TrUtils.IsNull(EntityInfo.Phone3) && !utils_1.TrUtils.IsNull(EntityInfo.Phone3.No)) {
182
+ if (!tr_utils_1.TrUtils.IsNull(EntityInfo.Phone3) && !tr_utils_1.TrUtils.IsNull(EntityInfo.Phone3.No)) {
183
183
  if (EntityInfo.Phone3.PrHead) {
184
184
  Phone += ' , ' + EntityInfo.Phone3.No;
185
185
  }
@@ -188,12 +188,12 @@ class PrintSharedService {
188
188
  }
189
189
  static GetEntityEmailDetails(EntityInfo) {
190
190
  let Email = '';
191
- if (!utils_1.TrUtils.IsEmpty(EntityInfo.EMail1) && !utils_1.TrUtils.IsEmpty(EntityInfo.EMail1.Email)) {
191
+ if (!tr_utils_1.TrUtils.IsEmpty(EntityInfo.EMail1) && !tr_utils_1.TrUtils.IsEmpty(EntityInfo.EMail1.Email)) {
192
192
  if (EntityInfo.EMail1.PrHead) {
193
193
  Email += EntityInfo.EMail1.Email;
194
194
  }
195
195
  }
196
- if (!utils_1.TrUtils.IsEmpty(EntityInfo.EMail2) && !utils_1.TrUtils.IsEmpty(EntityInfo.EMail2.Email)) {
196
+ if (!tr_utils_1.TrUtils.IsEmpty(EntityInfo.EMail2) && !tr_utils_1.TrUtils.IsEmpty(EntityInfo.EMail2.Email)) {
197
197
  if (EntityInfo.EMail2.PrHead) {
198
198
  Email += ' , ' + EntityInfo.EMail2.Email;
199
199
  }
@@ -201,7 +201,7 @@ class PrintSharedService {
201
201
  return Email;
202
202
  }
203
203
  static GetVehicleFromServiceAndFormatData(originalvehicledata) {
204
- let Vehicle = utils_1.TrUtils.Stringify(originalvehicledata);
204
+ let Vehicle = tr_utils_1.TrUtils.Stringify(originalvehicledata);
205
205
  let FormattedVehicleData = this.GetVehicleDataForPrint(Vehicle);
206
206
  return FormattedVehicleData;
207
207
  }
@@ -212,19 +212,19 @@ class PrintSharedService {
212
212
  Vehicle.Make = vehicle.Make;
213
213
  Vehicle.Model = vehicle.Model;
214
214
  Vehicle.Var = vehicle.Var;
215
- if (!utils_1.TrUtils.IsNull(vehicle.VIN)) {
215
+ if (!tr_utils_1.TrUtils.IsNull(vehicle.VIN)) {
216
216
  Vehicle.VIN = vehicle.VIN;
217
217
  }
218
218
  else {
219
219
  Vehicle.VIN = '';
220
220
  }
221
- if (!utils_1.TrUtils.IsEmpty(vehicle.EngNo)) {
221
+ if (!tr_utils_1.TrUtils.IsEmpty(vehicle.EngNo)) {
222
222
  Vehicle.EngNo = vehicle.EngNo;
223
223
  }
224
224
  else {
225
225
  Vehicle.EngNo = '';
226
226
  }
227
- if (!utils_1.TrUtils.IsEmpty(vehicle.DDate)) {
227
+ if (!tr_utils_1.TrUtils.IsEmpty(vehicle.DDate)) {
228
228
  Vehicle.DDate = my_date_1.MyDate.ConvertUTCDateToReadable(vehicle.DDate);
229
229
  }
230
230
  else {
@@ -233,7 +233,7 @@ class PrintSharedService {
233
233
  return Vehicle;
234
234
  }
235
235
  static GetCustomerFromServiceAndFormatData(originalcustomerdata) {
236
- let Customer = utils_1.TrUtils.Stringify(originalcustomerdata);
236
+ let Customer = tr_utils_1.TrUtils.Stringify(originalcustomerdata);
237
237
  let FormattedCustData = this.GetCustomerDataForROEstPrint(Customer);
238
238
  return FormattedCustData;
239
239
  }
@@ -250,21 +250,21 @@ class PrintSharedService {
250
250
  ],
251
251
  Adrs: this.GetAddress(customer.Adrs)
252
252
  };
253
- if (!utils_1.TrUtils.IsNull(customer.Adrs)) {
253
+ if (!tr_utils_1.TrUtils.IsNull(customer.Adrs)) {
254
254
  Customer.Pin = customer.Adrs.Pin;
255
255
  }
256
256
  return Customer;
257
257
  }
258
258
  static GetAddress(Address) {
259
259
  let Adrs = [];
260
- if (!utils_1.TrUtils.IsNull(Address)) {
261
- if (!utils_1.TrUtils.IsEmpty(Address.A1)) {
260
+ if (!tr_utils_1.TrUtils.IsNull(Address)) {
261
+ if (!tr_utils_1.TrUtils.IsEmpty(Address.A1)) {
262
262
  Adrs.push(this.AddingComaAsaLastLetter(Address.A1));
263
263
  }
264
- if (!utils_1.TrUtils.IsEmpty(Address.A2)) {
264
+ if (!tr_utils_1.TrUtils.IsEmpty(Address.A2)) {
265
265
  Adrs.push(this.AddingComaAsaLastLetter(Address.A2));
266
266
  }
267
- if (!utils_1.TrUtils.IsEmpty(Address.Ct)) {
267
+ if (!tr_utils_1.TrUtils.IsEmpty(Address.Ct)) {
268
268
  Adrs.push(this.AddingComaAsaLastLetter(Address.Ct));
269
269
  }
270
270
  // if (!TrUtils.IsEmpty(Address.Pin)) {
@@ -276,7 +276,7 @@ class PrintSharedService {
276
276
  static AddingComaAsaLastLetter(Stmt) {
277
277
  // console.log(Stmt, Stmt.slice(-1));
278
278
  // console.log(Stmt.slice(-1) !== ',');
279
- if (!utils_1.TrUtils.IsNull(Stmt) && Stmt.slice(-1) !== ',') {
279
+ if (!tr_utils_1.TrUtils.IsNull(Stmt) && Stmt.slice(-1) !== ',') {
280
280
  Stmt = Stmt + ', ';
281
281
  }
282
282
  else {
@@ -293,19 +293,19 @@ class PrintSharedService {
293
293
  return Customer;
294
294
  }
295
295
  static GetCGSTValueBasedOnTaxCode(TCode, argTaxCodes) {
296
- if (utils_1.TrUtils.IsNull(TCode)) {
296
+ if (tr_utils_1.TrUtils.IsNull(TCode)) {
297
297
  return 0;
298
298
  }
299
- let TaxCodes = utils_1.TrUtils.Stringify(argTaxCodes);
299
+ let TaxCodes = tr_utils_1.TrUtils.Stringify(argTaxCodes);
300
300
  let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
301
301
  return TaxCode._id === Number(TCode);
302
302
  });
303
303
  if (TCodeIndex !== -1) {
304
- if (utils_1.TrUtils.IsNull(TaxCodes[TCodeIndex].CGST)) {
304
+ if (tr_utils_1.TrUtils.IsNull(TaxCodes[TCodeIndex].CGST)) {
305
305
  return 0;
306
306
  }
307
307
  else {
308
- return utils_1.TrUtils.FixedTo(TaxCodes[TCodeIndex].CGST);
308
+ return tr_utils_1.TrUtils.FixedTo(TaxCodes[TCodeIndex].CGST);
309
309
  }
310
310
  }
311
311
  else {
@@ -313,19 +313,19 @@ class PrintSharedService {
313
313
  }
314
314
  }
315
315
  static GetSGSTValueBasedOnTaxCode(TCode, argTaxCodes) {
316
- if (utils_1.TrUtils.IsNull(TCode)) {
316
+ if (tr_utils_1.TrUtils.IsNull(TCode)) {
317
317
  return 0;
318
318
  }
319
- let TaxCodes = utils_1.TrUtils.Stringify(argTaxCodes);
319
+ let TaxCodes = tr_utils_1.TrUtils.Stringify(argTaxCodes);
320
320
  let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
321
321
  return TaxCode._id === Number(TCode);
322
322
  });
323
323
  if (TCodeIndex !== -1) {
324
- if (utils_1.TrUtils.IsNull(TaxCodes[TCodeIndex].SGST)) {
324
+ if (tr_utils_1.TrUtils.IsNull(TaxCodes[TCodeIndex].SGST)) {
325
325
  return 0;
326
326
  }
327
327
  else {
328
- return utils_1.TrUtils.FixedTo(TaxCodes[TCodeIndex].SGST);
328
+ return tr_utils_1.TrUtils.FixedTo(TaxCodes[TCodeIndex].SGST);
329
329
  }
330
330
  }
331
331
  else {
@@ -333,19 +333,19 @@ class PrintSharedService {
333
333
  }
334
334
  }
335
335
  static GetIGSTValueBasedOnTaxCode(TCode, argTaxCodes) {
336
- if (utils_1.TrUtils.IsNull(TCode)) {
336
+ if (tr_utils_1.TrUtils.IsNull(TCode)) {
337
337
  return 0;
338
338
  }
339
- let TaxCodes = utils_1.TrUtils.Stringify(argTaxCodes);
339
+ let TaxCodes = tr_utils_1.TrUtils.Stringify(argTaxCodes);
340
340
  let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
341
341
  return TaxCode._id === Number(TCode);
342
342
  });
343
343
  if (TCodeIndex !== -1) {
344
- if (utils_1.TrUtils.IsNull(TaxCodes[TCodeIndex].IGST)) {
344
+ if (tr_utils_1.TrUtils.IsNull(TaxCodes[TCodeIndex].IGST)) {
345
345
  return 0;
346
346
  }
347
347
  else {
348
- return utils_1.TrUtils.FixedTo(TaxCodes[TCodeIndex].IGST);
348
+ return tr_utils_1.TrUtils.FixedTo(TaxCodes[TCodeIndex].IGST);
349
349
  }
350
350
  }
351
351
  else {
@@ -355,24 +355,24 @@ class PrintSharedService {
355
355
  static CheckItemIndexWithDisc(RecordInfo) {
356
356
  let DiscItem = RecordInfo.PrintInfo.findIndex((PrintInfo) => {
357
357
  let LaborDiscItem = -1;
358
- if (!utils_1.TrUtils.IsNull(PrintInfo.Ops)) {
358
+ if (!tr_utils_1.TrUtils.IsNull(PrintInfo.Ops)) {
359
359
  LaborDiscItem = PrintInfo.Ops.findIndex((Labor) => {
360
- if (!utils_1.TrUtils.IsZero(Labor.Disc)) {
360
+ if (!tr_utils_1.TrUtils.IsZero(Labor.Disc)) {
361
361
  return Labor;
362
362
  }
363
363
  });
364
364
  }
365
365
  let PartDiscItem = -1;
366
- if (!utils_1.TrUtils.IsNull(PrintInfo.Parts)) {
366
+ if (!tr_utils_1.TrUtils.IsNull(PrintInfo.Parts)) {
367
367
  PartDiscItem = PrintInfo.Parts.findIndex((Part) => {
368
- if (!utils_1.TrUtils.IsZero(Part.Disc)) {
368
+ if (!tr_utils_1.TrUtils.IsZero(Part.Disc)) {
369
369
  return Part;
370
370
  }
371
371
  });
372
372
  }
373
- else if (!utils_1.TrUtils.IsNull(PrintInfo.Items)) {
373
+ else if (!tr_utils_1.TrUtils.IsNull(PrintInfo.Items)) {
374
374
  PartDiscItem = PrintInfo.Items.findIndex((Item) => {
375
- return !utils_1.TrUtils.IsZero(Item.Disc);
375
+ return !tr_utils_1.TrUtils.IsZero(Item.Disc);
376
376
  });
377
377
  }
378
378
  if (LaborDiscItem !== -1 || PartDiscItem !== -1) {
@@ -0,0 +1,3 @@
1
+ export declare function GetNumber(value: any, defaultValue?: number): number;
2
+ export declare function IsNull(value: unknown): boolean;
3
+ export declare function IsNotNull(value: unknown): boolean;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetNumber = GetNumber;
4
+ exports.IsNull = IsNull;
5
+ exports.IsNotNull = IsNotNull;
6
+ function GetNumber(value, defaultValue = 0) {
7
+ return (value == undefined || value == null || isNaN(value)) ? defaultValue : Number(value);
8
+ }
9
+ function IsNull(value) {
10
+ // return value === null || typeof value === 'undefined';
11
+ return value === null || value === undefined;
12
+ }
13
+ function IsNotNull(value) {
14
+ return !IsNull(value);
15
+ }
@@ -0,0 +1,107 @@
1
+ export declare class MeetingPdfService {
2
+ static BodySize: number;
3
+ static MeetingPrintData(meetingData: any, isAgendata: boolean): void;
4
+ static HeadingforMeeting(isAgendata: any): {
5
+ text: string;
6
+ alignment: string;
7
+ bold: boolean;
8
+ fontSize: number;
9
+ };
10
+ static HeaderContent(meetingData: any, isAgendata: boolean, Images: any): {
11
+ columns: {
12
+ stack: ({
13
+ text: string;
14
+ alignment: string;
15
+ bold: boolean;
16
+ fontSize: number;
17
+ } | {
18
+ text: string;
19
+ style: string[];
20
+ width: string;
21
+ marginTop: number;
22
+ alignment: string;
23
+ })[];
24
+ }[];
25
+ width: string;
26
+ marginBottom: number;
27
+ } | {
28
+ columns: ({
29
+ stack: ({
30
+ text: string;
31
+ alignment: string;
32
+ bold: boolean;
33
+ fontSize: number;
34
+ } | {
35
+ text: string;
36
+ style: string[];
37
+ width: string;
38
+ marginTop: number;
39
+ alignment: string;
40
+ })[];
41
+ } | {
42
+ image: any;
43
+ width: number;
44
+ })[];
45
+ marginBottom: number;
46
+ width?: undefined;
47
+ };
48
+ static imageExists(image_url: any): boolean;
49
+ static Header(meetingData: any, isAgendata: boolean): {
50
+ stack: ({
51
+ text: string;
52
+ alignment: string;
53
+ bold: boolean;
54
+ fontSize: number;
55
+ } | {
56
+ text: string;
57
+ style: string[];
58
+ width: string;
59
+ marginTop: number;
60
+ alignment: string;
61
+ })[];
62
+ };
63
+ static GetMeetingDetails(meetingData: any, isAgendata: boolean): {
64
+ stack: {
65
+ fontSize: number;
66
+ lineHeight: number;
67
+ margin: number;
68
+ table: {
69
+ body: any;
70
+ };
71
+ layout: string;
72
+ }[];
73
+ };
74
+ static GetMeetingTimeDetails(MeetingData: any, isAgendata: boolean): {
75
+ fontSize: number;
76
+ lineHeight: number;
77
+ margin: number;
78
+ table: {
79
+ body: any;
80
+ };
81
+ layout: string;
82
+ };
83
+ static getPresentMembers(Members: any): string;
84
+ static getAbsentMembers(Members: any): string;
85
+ static getDateAndTime(MeetingData: any): string;
86
+ static getParticipantsMembers(Members: any): string;
87
+ static GetOptionalMembers(Members: any): string;
88
+ static getCCMembers(Members: any): string;
89
+ static getCCMembersAndOptionalAbsent(Members: any): string;
90
+ static GetDetails(data: any): {
91
+ fontSize: number;
92
+ lineHeight: number;
93
+ margin: number;
94
+ table: {
95
+ body: any;
96
+ };
97
+ layout: string;
98
+ };
99
+ static GetDetailsTable(data: any): any;
100
+ static GetTopicsAndSubTopicsAndItemsList(meetingData: any, items: any, isAgendata: boolean): any;
101
+ static TopicsItemView(item: any, meetingData: any, tpcs: any): void;
102
+ static GetDescrption(Item: any, MeetingData: any): any;
103
+ static GetDueDate(Item: any, MeetingData: any): string | null;
104
+ static getAssignee(Item: any, MeetingData: any): string;
105
+ static GetTypeOfItem(type: any): "Task" | "Desc" | "Note";
106
+ static GetColorsBasedOnType(type: any): "#b30000" | "blue" | "green";
107
+ }