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,303 @@
1
+ export declare class IssuePartsprintService {
2
+ FontSize: number;
3
+ static GetIssuePartsPrint(ROPrintData: any, numberofCopies: any, isotherIndustry: boolean, withPass: boolean, isAuto: boolean, moreDiscDetails: boolean): {
4
+ info: {
5
+ title: string;
6
+ };
7
+ background: (currentPage: any, pageSize: any) => any;
8
+ header: (currentPage: any, pageCount: any) => {
9
+ text: string;
10
+ alignment: string;
11
+ marginRight: number;
12
+ fontSize: number;
13
+ marginTop: number;
14
+ };
15
+ pageBreakBefore: (currentNode: any, followingNodesOnPage: any, nodesOnNextPage: any, previousNodesOnPage: any) => boolean;
16
+ pageMargins: number[];
17
+ content: any[];
18
+ styles: {
19
+ temp2header: {
20
+ fontSize: number;
21
+ bold: boolean;
22
+ alignment: string;
23
+ };
24
+ tableheader1: {
25
+ bold: boolean;
26
+ fontFamily: string;
27
+ margin: number[];
28
+ alignment: string;
29
+ };
30
+ header: {
31
+ fontSize: number;
32
+ bold: boolean;
33
+ alignment: string;
34
+ };
35
+ meetingHeader: {
36
+ fontSize: number;
37
+ bold: boolean;
38
+ };
39
+ Receiptheader: {
40
+ fontSize: number;
41
+ bold: boolean;
42
+ alignment: string;
43
+ margin: number[];
44
+ };
45
+ InlineHeader: {
46
+ fontSize: number;
47
+ bold: boolean;
48
+ alignment: string;
49
+ margin: number[];
50
+ };
51
+ TaskHeading: {
52
+ fontSize: number;
53
+ bold: boolean;
54
+ margin: number[];
55
+ };
56
+ lettersSize: {
57
+ fontSize: number;
58
+ margin: number[];
59
+ };
60
+ tablexample: {
61
+ margin: number[];
62
+ };
63
+ hedstyl: {
64
+ margin: number[];
65
+ };
66
+ header2: {
67
+ fontSize: number;
68
+ bold: boolean;
69
+ alignment: string;
70
+ margin: number[];
71
+ };
72
+ header1: {
73
+ fontSize: number;
74
+ bold: boolean;
75
+ alignment: string;
76
+ decoration: string;
77
+ margin: number[];
78
+ };
79
+ ws_adrs_center: {
80
+ fontSize: number;
81
+ alignment: string;
82
+ };
83
+ ws_adrs_center1: {
84
+ fontSize: number;
85
+ alignment: string;
86
+ };
87
+ ws_adrs_left: {
88
+ fontSize: number;
89
+ alignment: string;
90
+ };
91
+ ws_adrs_left1: {
92
+ fontSize: number;
93
+ alignment: string;
94
+ };
95
+ columnheader: {
96
+ margin: number[];
97
+ };
98
+ tableExample: {
99
+ margin: number[];
100
+ fontSize: number;
101
+ };
102
+ tableExamplemargin: {
103
+ margin: number[];
104
+ fontSize: number;
105
+ };
106
+ textcust: {
107
+ fontSize: number;
108
+ margin: number[];
109
+ };
110
+ column: {
111
+ margin: number[];
112
+ };
113
+ tableheader: {
114
+ bold: boolean;
115
+ fontSize: number;
116
+ margin: number[];
117
+ alignment: string;
118
+ };
119
+ tableheader2: {
120
+ fontSize: number;
121
+ margin: number[];
122
+ alignment: string;
123
+ opacity: number;
124
+ };
125
+ hed: {
126
+ fontSize: number;
127
+ bold: boolean;
128
+ };
129
+ hed2: {
130
+ fontSize: number;
131
+ };
132
+ TotalsStyles: {
133
+ marginTop: number;
134
+ lineHeight: number;
135
+ fontSize: number;
136
+ margin: number[];
137
+ };
138
+ colum1: {
139
+ fontSize: number;
140
+ lineHeight: number;
141
+ };
142
+ colum2: {
143
+ fontSize: number;
144
+ lineHeight: number;
145
+ margin: number[];
146
+ };
147
+ colum3: {
148
+ lineHeight: number;
149
+ };
150
+ Receiptheader1: {
151
+ fontSize: number;
152
+ bold: boolean;
153
+ alignment: string;
154
+ margin: number[];
155
+ };
156
+ Row1: {
157
+ fontSize: number;
158
+ margin: number[];
159
+ };
160
+ rowdata: {
161
+ margin: number[];
162
+ fontSize: number;
163
+ };
164
+ forCompany: {
165
+ margin: number[];
166
+ fontSize: string;
167
+ };
168
+ forCompany1: {
169
+ margin: number[];
170
+ fontSize: string;
171
+ };
172
+ Rupees: {
173
+ margin: number[];
174
+ fontSize: string;
175
+ };
176
+ Signature: {
177
+ margin: number[];
178
+ alignment: string;
179
+ fontSize: string;
180
+ };
181
+ withApp: {
182
+ alignment: string;
183
+ lineHeight: number;
184
+ };
185
+ withOutApp: {
186
+ alignment: string;
187
+ lineHeight: number;
188
+ };
189
+ Sign: {
190
+ fontSize: number;
191
+ margin: number[];
192
+ };
193
+ Sign1: {
194
+ fontSize: number;
195
+ margin: number[];
196
+ };
197
+ 'margin-all': {
198
+ margin: number[];
199
+ };
200
+ 'margin-top': {
201
+ margin: number[];
202
+ };
203
+ 'margin-bottom': {
204
+ margin: number[];
205
+ };
206
+ fontSize: {
207
+ fontSize: number;
208
+ };
209
+ };
210
+ };
211
+ static GetFileName(ROPrintData: any): string;
212
+ static CommonHeaderDetails(ROPrintData: any, text: any, isotherIndustry: boolean): any[];
213
+ static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): ({
214
+ columns: any;
215
+ } | {
216
+ canvas: {
217
+ type: string;
218
+ lineColor: string;
219
+ x1: number;
220
+ y1: number;
221
+ x2: number;
222
+ y2: number;
223
+ lineWidth: number;
224
+ }[];
225
+ })[];
226
+ static PreparesparePartsTable(ROPrintData: any, isAuto: boolean): any;
227
+ static GetLaborPartsTableForView(Parts: any, Ops: any, PrintPartNo: any): any;
228
+ static WithOutDiscountFieldTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
229
+ static BuildTableBodyForLaborAndParts(Parts: any, Labor: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
230
+ static GetWithOutDiscAndTaxFieldHeader(Parts: any, Ops: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
231
+ static TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
232
+ style: string;
233
+ table: {
234
+ widths: (string | number)[];
235
+ body: any;
236
+ };
237
+ layout: {
238
+ hLineWidth: (i: any, node: any) => number;
239
+ vLineWidth: (i: any, node: any) => number;
240
+ hLineColor: (i: any, node: any) => string;
241
+ vLineColor: (i: any, node: any) => string;
242
+ };
243
+ };
244
+ static ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
245
+ style: string;
246
+ table: {
247
+ widths: number[];
248
+ body: any;
249
+ };
250
+ layout: {
251
+ hLineWidth: (i: any, node: any) => number;
252
+ vLineWidth: (i: any, node: any) => number;
253
+ hLineColor: (i: any, node: any) => string;
254
+ vLineColor: (i: any, node: any) => string;
255
+ };
256
+ };
257
+ static NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
258
+ style: string;
259
+ table: {
260
+ widths: number[];
261
+ body: any;
262
+ };
263
+ layout: {
264
+ hLineWidth: (i: any, node: any) => number;
265
+ vLineWidth: (i: any, node: any) => number;
266
+ hLineColor: (i: any, node: any) => string;
267
+ vLineColor: (i: any, node: any) => string;
268
+ };
269
+ };
270
+ static buildTableForCustomerLabor(Parts: any, Ops: any, PrintPartNo: any, customerorInsurance: any): any;
271
+ static getSummaryHeaders(permission: boolean): any;
272
+ static CommonTotalDetails(ROPrintData: any, index: any, numberofCopies: any, withPass: boolean, moreDiscDetails: boolean): any[];
273
+ static GetNumberInWords(TotalAmount: any): {
274
+ columns: ({
275
+ text: string;
276
+ fontSize: number;
277
+ width: number;
278
+ bold?: undefined;
279
+ } | {
280
+ text: string;
281
+ bold: boolean;
282
+ fontSize: number;
283
+ width: string;
284
+ })[];
285
+ };
286
+ static GetGatePass(isGatepass: boolean, ROPrintData: any): any;
287
+ static GetCustomerDetails(ROPrintData: any, isOtherIndustry: boolean): {
288
+ lineHeight: number;
289
+ fontSize: number;
290
+ table: {
291
+ body: any;
292
+ };
293
+ layout: string;
294
+ };
295
+ static GetVehicleDetails(Vehicle: any, isOtherIndustry: boolean): {
296
+ lineHeight: number;
297
+ fontSize: number;
298
+ table: {
299
+ body: any;
300
+ };
301
+ layout: string;
302
+ };
303
+ }
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IssuePartsprintService = void 0;
4
- const my_date_1 = require("../shared/my-date");
5
- const utils_1 = require("../shared/utils");
6
- const shared_pdf_service_1 = require("./shared-pdf.service");
7
- 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 my_date_1 = require("../../utils/my-date");
7
+ const tr_utils_1 = require("../../utils/tr-utils");
8
8
  class IssuePartsprintService {
9
9
  constructor() {
10
10
  this.FontSize = 8;
11
11
  }
12
12
  static GetIssuePartsPrint(ROPrintData, numberofCopies, isotherIndustry, withPass, isAuto, moreDiscDetails) {
13
13
  var contents = [];
14
- if (utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
14
+ if (tr_utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
15
15
  contents.push(this.CommonHeaderDetails(ROPrintData, null, isotherIndustry), this.PreparesparePartsTable(ROPrintData, isAuto), this.CommonTotalDetails(ROPrintData, null, numberofCopies, withPass, moreDiscDetails));
16
16
  }
17
17
  else {
@@ -30,7 +30,7 @@ class IssuePartsprintService {
30
30
  return { text: currentPage.toString() + ' of ' + pageCount, alignment: 'right', marginRight: 7, fontSize: 8, marginTop: 2 };
31
31
  },
32
32
  pageBreakBefore: function (currentNode, followingNodesOnPage, nodesOnNextPage, previousNodesOnPage) {
33
- return currentNode.startPosition.top >= 700 && !utils_1.TrUtils.IsNull(currentNode === null || currentNode === void 0 ? void 0 : currentNode.id) && (currentNode === null || currentNode === void 0 ? void 0 : currentNode.id) === '567';
33
+ return currentNode.startPosition.top >= 700 && !tr_utils_1.TrUtils.IsNull(currentNode === null || currentNode === void 0 ? void 0 : currentNode.id) && (currentNode === null || currentNode === void 0 ? void 0 : currentNode.id) === '567';
34
34
  },
35
35
  pageMargins: [10, 15, 10, 15],
36
36
  content: contents,
@@ -40,7 +40,7 @@ class IssuePartsprintService {
40
40
  }
41
41
  static GetFileName(ROPrintData) {
42
42
  let fileName = ROPrintData.HeaderName;
43
- if (!utils_1.TrUtils.IsNull(ROPrintData.Product) && !utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
43
+ if (!tr_utils_1.TrUtils.IsNull(ROPrintData.Product) && !tr_utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
44
44
  fileName = fileName + '-' + ROPrintData.Product.RegNo;
45
45
  }
46
46
  return fileName;
@@ -66,19 +66,19 @@ class IssuePartsprintService {
66
66
  let List = [];
67
67
  if (ROPrintData.Entity.Body === 1) {
68
68
  for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
69
- if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
69
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
70
70
  ROPrintData.PrintInfo[i].Text = '';
71
71
  }
72
- List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.Entity.MPN));
72
+ List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.Entity.MPN));
73
73
  }
74
74
  }
75
75
  else {
76
76
  if (ROPrintData.Entity.Body === 2) {
77
77
  for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
78
- if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
78
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
79
79
  ROPrintData.PrintInfo[i].Text = '';
80
80
  }
81
- List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto));
81
+ List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto));
82
82
  }
83
83
  }
84
84
  else {
@@ -87,10 +87,10 @@ class IssuePartsprintService {
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), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto));
93
+ List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto));
94
94
  }
95
95
  }
96
96
  }
@@ -194,14 +194,14 @@ class IssuePartsprintService {
194
194
  let dpartadding1 = {};
195
195
  dpartadding1.SNo = '';
196
196
  dpartadding1.Desc = 'Spare Total';
197
- dpartadding1.QtyAndUoM = utils_1.TrUtils.FixedTo(Qty);
197
+ dpartadding1.QtyAndUoM = tr_utils_1.TrUtils.FixedTo(Qty);
198
198
  dpartadding1.bold = true;
199
- dpartadding1.UnPr = utils_1.TrUtils.FixedTo(Taxable);
200
- dpartadding1.SGSTAmt = utils_1.TrUtils.FixedTo(SGSTAMT);
201
- dpartadding1.IGSTAmt = utils_1.TrUtils.FixedTo(IGSTAMT);
202
- dpartadding1.CGSTAmt = utils_1.TrUtils.FixedTo(CGSTAMT);
199
+ dpartadding1.UnPr = tr_utils_1.TrUtils.FixedTo(Taxable);
200
+ dpartadding1.SGSTAmt = tr_utils_1.TrUtils.FixedTo(SGSTAMT);
201
+ dpartadding1.IGSTAmt = tr_utils_1.TrUtils.FixedTo(IGSTAMT);
202
+ dpartadding1.CGSTAmt = tr_utils_1.TrUtils.FixedTo(CGSTAMT);
203
203
  dpartadding1.TCode = ShowTaxColumn ? 114 : undefined;
204
- dpartadding1.LineTotal = utils_1.TrUtils.FixPriceValue(FinalTotal);
204
+ dpartadding1.LineTotal = tr_utils_1.TrUtils.FixPriceValue(FinalTotal);
205
205
  Parts.push({ SNo: '' });
206
206
  Parts.push(dpartadding1);
207
207
  }
@@ -217,14 +217,14 @@ class IssuePartsprintService {
217
217
  Parts.forEach((part) => {
218
218
  var dataRow = [];
219
219
  columns.forEach((column) => {
220
- if ((!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field]))
220
+ if ((!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]))
221
221
  || (column.text === 'Line Total')) {
222
222
  if (part[column.Field] === 'Spare Parts') {
223
223
  dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
224
224
  }
225
225
  else {
226
226
  if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
227
- && utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
227
+ && tr_utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
228
228
  part[column.Field] = '';
229
229
  dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
230
230
  }
@@ -234,7 +234,7 @@ class IssuePartsprintService {
234
234
  || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
235
235
  if (column.Field === 'Disc') {
236
236
  if (column.type === 'percentage') {
237
- if (!utils_1.TrUtils.IsEmpty(part[column.Field])) {
237
+ if (!tr_utils_1.TrUtils.IsEmpty(part[column.Field])) {
238
238
  dataRow.push({ text: part[column.Field].toString(), noWrap: true });
239
239
  }
240
240
  else {
@@ -242,7 +242,7 @@ class IssuePartsprintService {
242
242
  }
243
243
  }
244
244
  else {
245
- if (!utils_1.TrUtils.IsNull(part[column.Field])) {
245
+ if (!tr_utils_1.TrUtils.IsNull(part[column.Field])) {
246
246
  dataRow.push({ text: part[column.Field].toString(), noWrap: true });
247
247
  }
248
248
  else {
@@ -251,7 +251,7 @@ class IssuePartsprintService {
251
251
  }
252
252
  }
253
253
  else {
254
- if (!utils_1.TrUtils.IsNull(part[column.Field])) {
254
+ if (!tr_utils_1.TrUtils.IsNull(part[column.Field])) {
255
255
  dataRow.push({ text: part[column.Field].toString(), bold: part.bold, alignment: 'right', nowrap: true });
256
256
  }
257
257
  else {
@@ -264,7 +264,7 @@ class IssuePartsprintService {
264
264
  if (column.Field === 'Desc') {
265
265
  let DescData = [];
266
266
  DescData.push({ text: part[column.Field].toString(), bold: part.bold });
267
- if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
267
+ if (!tr_utils_1.TrUtils.IsEmpty(part['EDesc'])) {
268
268
  DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
269
269
  }
270
270
  dataRow.push({ stack: DescData });
@@ -282,7 +282,7 @@ class IssuePartsprintService {
282
282
  SNo = SNo + 1;
283
283
  }
284
284
  else {
285
- if (utils_1.TrUtils.IsNull(part[column.Field])) {
285
+ if (tr_utils_1.TrUtils.IsNull(part[column.Field])) {
286
286
  part[column.Field] = '';
287
287
  }
288
288
  }
@@ -313,13 +313,13 @@ class IssuePartsprintService {
313
313
  dpartadding1.SNo = '';
314
314
  dpartadding1.Desc = 'Labor Total';
315
315
  // dpartadding1.QtyAndUoM = Qty;
316
- dpartadding1.UnPr = utils_1.TrUtils.FixedTo(Taxable);
317
- dpartadding1.SGSTAmt = utils_1.TrUtils.FixedTo(SGSTAMT);
318
- dpartadding1.IGSTAmt = utils_1.TrUtils.FixedTo(IGSTAMT);
319
- dpartadding1.CGSTAmt = utils_1.TrUtils.FixedTo(CGSTAMT);
316
+ dpartadding1.UnPr = tr_utils_1.TrUtils.FixedTo(Taxable);
317
+ dpartadding1.SGSTAmt = tr_utils_1.TrUtils.FixedTo(SGSTAMT);
318
+ dpartadding1.IGSTAmt = tr_utils_1.TrUtils.FixedTo(IGSTAMT);
319
+ dpartadding1.CGSTAmt = tr_utils_1.TrUtils.FixedTo(CGSTAMT);
320
320
  dpartadding1.TCode = ShowTaxColumn ? 114 : undefined;
321
321
  dpartadding1.bold = true;
322
- dpartadding1.LineTotal = utils_1.TrUtils.FixPriceValue(FinalTotal);
322
+ dpartadding1.LineTotal = tr_utils_1.TrUtils.FixPriceValue(FinalTotal);
323
323
  Labor.push({ SNo: '' });
324
324
  Labor.push(dpartadding1);
325
325
  }
@@ -340,14 +340,14 @@ class IssuePartsprintService {
340
340
  Labor.forEach((Ops) => {
341
341
  var dataRow = [];
342
342
  columns.forEach((column) => {
343
- if ((!utils_1.TrUtils.IsFixedZero(Ops[column.Field]) && !utils_1.TrUtils.IsNull(Ops[column.Field]))
343
+ if ((!tr_utils_1.TrUtils.IsFixedZero(Ops[column.Field]) && !tr_utils_1.TrUtils.IsNull(Ops[column.Field]))
344
344
  || (column.text === 'Line Total')) {
345
345
  if (Ops[column.Field] === 'Labor') {
346
346
  dataRow.push({ text: Ops[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
347
347
  }
348
348
  else {
349
349
  if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
350
- && utils_1.TrUtils.CheckInvalidSelect(Ops.TCode))) {
350
+ && tr_utils_1.TrUtils.CheckInvalidSelect(Ops.TCode))) {
351
351
  Ops[column.Field] = '';
352
352
  dataRow.push({ text: Ops[column.Field].toString(), alignment: 'center' });
353
353
  }
@@ -357,7 +357,7 @@ class IssuePartsprintService {
357
357
  || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
358
358
  if (column.Field === 'Disc') {
359
359
  if (column.type === 'percentage') {
360
- if (!utils_1.TrUtils.IsEmpty(Ops[column.Field])) {
360
+ if (!tr_utils_1.TrUtils.IsEmpty(Ops[column.Field])) {
361
361
  dataRow.push({ text: Ops[column.Field].toString(), noWrap: true });
362
362
  }
363
363
  else {
@@ -365,7 +365,7 @@ class IssuePartsprintService {
365
365
  }
366
366
  }
367
367
  else {
368
- if (!utils_1.TrUtils.IsNull(Ops[column.Field])) {
368
+ if (!tr_utils_1.TrUtils.IsNull(Ops[column.Field])) {
369
369
  dataRow.push({ text: Ops[column.Field].toString(), noWrap: true });
370
370
  }
371
371
  else {
@@ -374,7 +374,7 @@ class IssuePartsprintService {
374
374
  }
375
375
  }
376
376
  else {
377
- if (!utils_1.TrUtils.IsNull(Ops[column.Field])) {
377
+ if (!tr_utils_1.TrUtils.IsNull(Ops[column.Field])) {
378
378
  dataRow.push({ text: Ops[column.Field].toString(), alignment: 'right', nowrap: true, bold: Ops.bold });
379
379
  }
380
380
  else {
@@ -394,7 +394,7 @@ class IssuePartsprintService {
394
394
  SNo = SNo + 1;
395
395
  }
396
396
  else {
397
- if (utils_1.TrUtils.IsNull(Ops[column.Field])) {
397
+ if (tr_utils_1.TrUtils.IsNull(Ops[column.Field])) {
398
398
  Ops[column.Field] = '';
399
399
  }
400
400
  }
@@ -545,7 +545,7 @@ class IssuePartsprintService {
545
545
  Parts.forEach((part) => {
546
546
  var dataRow = [];
547
547
  columns.forEach((column) => {
548
- if (!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field])
548
+ if (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field])
549
549
  || column.text === 'Line Total') {
550
550
  if (part[column.Field] === 'Spare Parts') {
551
551
  dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
@@ -565,7 +565,7 @@ class IssuePartsprintService {
565
565
  if (column.Field === 'Desc') {
566
566
  let DescData = [];
567
567
  DescData.push(part[column.Field].toString());
568
- if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
568
+ if (!tr_utils_1.TrUtils.IsEmpty(part['EDesc'])) {
569
569
  DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
570
570
  }
571
571
  dataRow.push({ stack: DescData });
@@ -582,7 +582,7 @@ class IssuePartsprintService {
582
582
  SNo = SNo + 1;
583
583
  }
584
584
  else {
585
- if (utils_1.TrUtils.IsNull(part[column.Field])) {
585
+ if (tr_utils_1.TrUtils.IsNull(part[column.Field])) {
586
586
  part[column.Field] = '';
587
587
  }
588
588
  }
@@ -608,7 +608,7 @@ class IssuePartsprintService {
608
608
  Ops.forEach((labor) => {
609
609
  var dataRow = [];
610
610
  columns.forEach((column) => {
611
- if (!utils_1.TrUtils.IsFixedZero(labor[column.Field]) && !utils_1.TrUtils.IsNull(labor[column.Field])
611
+ if (!tr_utils_1.TrUtils.IsFixedZero(labor[column.Field]) && !tr_utils_1.TrUtils.IsNull(labor[column.Field])
612
612
  || column.text === 'Line Total') {
613
613
  if (labor[column.Field] === 'Labor') {
614
614
  dataRow.push({ text: labor[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
@@ -634,7 +634,7 @@ class IssuePartsprintService {
634
634
  SNo = SNo + 1;
635
635
  }
636
636
  else {
637
- if (utils_1.TrUtils.IsNull(labor[column.Field])) {
637
+ if (tr_utils_1.TrUtils.IsNull(labor[column.Field])) {
638
638
  labor[column.Field] = '';
639
639
  }
640
640
  }
@@ -669,7 +669,7 @@ class IssuePartsprintService {
669
669
  static CommonTotalDetails(ROPrintData, index, numberofCopies, withPass, moreDiscDetails) {
670
670
  // console.log('ROPrintData', ROPrintData);
671
671
  let CommonDetails = [
672
- shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.CustLaborTotalAfterDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalAfterDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn, utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, ROPrintData.Adj, null, moreDiscDetails),
672
+ shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.CustLaborTotalAfterDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalAfterDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, ROPrintData.Adj, null, moreDiscDetails),
673
673
  this.GetNumberInWords(ROPrintData.CustRoundedTotal),
674
674
  shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, ROPrintData.isCountersale),
675
675
  shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
@@ -683,7 +683,7 @@ class IssuePartsprintService {
683
683
  if (ROPrintData.Type !== 'Invoice') {
684
684
  CommonDetails.splice(2, 0, shared_pdf_service_1.SharedPDFService.GetUnderLine());
685
685
  }
686
- if (!utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
686
+ if (!tr_utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
687
687
  CommonDetails.push({ text: '', pageBreak: 'after' });
688
688
  }
689
689
  return CommonDetails;
@@ -750,7 +750,7 @@ class IssuePartsprintService {
750
750
  ];
751
751
  if (!isOtherIndustry) {
752
752
  a.unshift({ name: 'Regn. No', value: shared_pdf_service_1.SharedPDFService.CheckAndSetString(Vehicle.RegNo) });
753
- if (!utils_1.TrUtils.IsEmpty(Vehicle.VIN)) {
753
+ if (!tr_utils_1.TrUtils.IsEmpty(Vehicle.VIN)) {
754
754
  a.unshift({ name: 'Chassis No', value: shared_pdf_service_1.SharedPDFService.CheckAndSetString(Vehicle.VIN) });
755
755
  }
756
756
  }