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,416 @@
1
+ export declare class InvoiceLandscapePdfService {
2
+ FontSize: number;
3
+ static GetInvoiceLandscapePrint(ROPrintData: any, numberofCopies: any, 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
+ pageMargins: number[];
16
+ pageOrientation: string;
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 GetAddress(Entity: any): string;
213
+ static GetHeaderInfo(InvoicePDFData: any): any;
214
+ static GetBillofSupplyName(Settings: any): {
215
+ text: string | null;
216
+ alignment: string;
217
+ marginRight: number;
218
+ marginTop: number;
219
+ marginBottom: number;
220
+ fontSize: number;
221
+ width: string;
222
+ };
223
+ static CommonHeaderDetails(ROPrintData: any, text: any): ({
224
+ text: any;
225
+ alignment: string;
226
+ bold: boolean;
227
+ fontSize: number;
228
+ color?: undefined;
229
+ width?: undefined;
230
+ marginTop?: undefined;
231
+ style?: undefined;
232
+ table?: undefined;
233
+ layout?: undefined;
234
+ } | {
235
+ text: any;
236
+ color: string;
237
+ alignment: string;
238
+ width: number;
239
+ marginTop: number;
240
+ fontSize: number;
241
+ bold?: undefined;
242
+ style?: undefined;
243
+ table?: undefined;
244
+ layout?: undefined;
245
+ } | {
246
+ style: string;
247
+ table: {
248
+ widths: string[];
249
+ body: ({
250
+ stack: any[];
251
+ width: number;
252
+ marginLeft: number;
253
+ } | {
254
+ lineHeight: number;
255
+ fontSize: number;
256
+ table: {
257
+ body: any;
258
+ };
259
+ layout: string;
260
+ } | {
261
+ stack: ({
262
+ text: any;
263
+ alignment: string;
264
+ bold: boolean;
265
+ fontSize: number;
266
+ style?: undefined;
267
+ stack?: undefined;
268
+ } | {
269
+ text: string;
270
+ alignment: string;
271
+ style: string[];
272
+ bold?: undefined;
273
+ fontSize?: undefined;
274
+ stack?: undefined;
275
+ } | {
276
+ stack: any;
277
+ text?: undefined;
278
+ alignment?: undefined;
279
+ bold?: undefined;
280
+ fontSize?: undefined;
281
+ style?: undefined;
282
+ })[];
283
+ })[][];
284
+ };
285
+ layout: {
286
+ hLineWidth: (i: any, node: any) => number;
287
+ vLineWidth: (i: any, node: any) => number;
288
+ hLineColor: (i: any, node: any) => string;
289
+ vLineColor: (i: any, node: any) => string;
290
+ };
291
+ text?: undefined;
292
+ alignment?: undefined;
293
+ bold?: undefined;
294
+ fontSize?: undefined;
295
+ color?: undefined;
296
+ width?: undefined;
297
+ marginTop?: undefined;
298
+ })[];
299
+ static MainHeading(CName: any, Entity: any, Image: any, HColor: any, CopyName: any): any;
300
+ static GetAddresDetailsAndLogo(Entity: any, Image: any, AColor: any, HColor: any, text: any): any;
301
+ static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): ({
302
+ columns: any;
303
+ } | {
304
+ canvas: {
305
+ type: string;
306
+ lineColor: string;
307
+ x1: number;
308
+ y1: number;
309
+ x2: number;
310
+ y2: number;
311
+ lineWidth: number;
312
+ }[];
313
+ })[];
314
+ static PreparesparePartsTable(ROPrintData: any): any;
315
+ static WithOutDiscountFieldTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
316
+ static GetWithOutDiscountFieldHeader1(permission: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
317
+ static GetWithOutDiscountFieldHeader2(permission: any, Body: any, ShowDiscountColumn: any): any;
318
+ static GetWithOutDiscountFieldHeader(permission: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
319
+ static BuildTableBodyForLaborAndParts(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
320
+ static GetWithOutDiscAndTaxFieldHeader(Parts: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
321
+ static TaxTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any): (string | number)[];
322
+ static TaxDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
323
+ style: string;
324
+ marginTop: number;
325
+ table: {
326
+ widths: (string | number)[];
327
+ body: any;
328
+ };
329
+ layout: {
330
+ hLineWidth: (i: any, node: any) => number;
331
+ vLineWidth: (i: any, node: any) => number;
332
+ hLineColor: (i: any, node: any) => string;
333
+ vLineColor: (i: any, node: any) => string;
334
+ };
335
+ };
336
+ static LayOutStyle(): {
337
+ hLineWidth: (i: any, node: any) => 0 | 0.7;
338
+ vLineWidth: (i: any, node: any) => number;
339
+ hLineColor: (i: any, node: any) => string;
340
+ vLineColor: (i: any, node: any) => string;
341
+ };
342
+ static ConsolidateDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
343
+ style: string;
344
+ marginTop: number;
345
+ table: {
346
+ widths: (string | number)[];
347
+ body: any;
348
+ };
349
+ layout: {
350
+ hLineWidth: (i: any, node: any) => number;
351
+ vLineWidth: (i: any, node: any) => number;
352
+ hLineColor: (i: any, node: any) => string;
353
+ vLineColor: (i: any, node: any) => string;
354
+ };
355
+ };
356
+ static WidthForInsuranceOrNot(ShowDiscountColumn: any, PrintPartNo: boolean): (string | number)[];
357
+ static NoTaxDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
358
+ style: string;
359
+ marginTop: number;
360
+ table: {
361
+ widths: (string | number)[];
362
+ body: any;
363
+ };
364
+ layout: {
365
+ hLineWidth: (i: any, node: any) => number;
366
+ vLineWidth: (i: any, node: any) => number;
367
+ hLineColor: (i: any, node: any) => string;
368
+ vLineColor: (i: any, node: any) => string;
369
+ };
370
+ };
371
+ static CommonTotalDetails(ROPrintData: any, index: any, numberofCopies: any, moreDiscDetails: boolean): any[];
372
+ static GetSignatures(CName: any, For: any, Type: any): {
373
+ columns: {
374
+ stack: ({
375
+ style: string;
376
+ text: (string | {
377
+ text: any;
378
+ bold: string;
379
+ })[];
380
+ } | {
381
+ columns: any[];
382
+ })[];
383
+ }[];
384
+ };
385
+ static CompanyName(CName: any): {
386
+ style: string;
387
+ text: (string | {
388
+ text: any;
389
+ bold: string;
390
+ })[];
391
+ };
392
+ static Authorizedsignature(): {
393
+ style: string;
394
+ text: string[];
395
+ };
396
+ static CustomerSignature(): {
397
+ style: string;
398
+ text: string[];
399
+ marginLeft: number;
400
+ };
401
+ static TotalDetails(ROPrintData: any, moreDiscDetails: boolean): {
402
+ style: string;
403
+ marginTop: number;
404
+ table: {
405
+ widths: string[];
406
+ heights: number[];
407
+ body: any[][];
408
+ };
409
+ layout: {
410
+ hLineWidth: (i: any, node: any) => number;
411
+ vLineWidth: (i: any, node: any) => number;
412
+ hLineColor: (i: any, node: any) => string;
413
+ vLineColor: (i: any, node: any) => string;
414
+ };
415
+ }[];
416
+ }
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvoiceLandscapePdfService = 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 InvoiceLandscapePdfService {
9
9
  constructor() {
10
10
  this.FontSize = 8;
11
11
  }
12
12
  static GetInvoiceLandscapePrint(ROPrintData, numberofCopies, 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), this.PreparesparePartsTable(ROPrintData), this.CommonTotalDetails(ROPrintData, null, numberofCopies, moreDiscDetails));
16
16
  }
17
17
  else {
@@ -38,7 +38,7 @@ class InvoiceLandscapePdfService {
38
38
  }
39
39
  static GetFileName(ROPrintData) {
40
40
  let fileName = ROPrintData.HeaderName;
41
- if (!utils_1.TrUtils.IsNull(ROPrintData.Product) && !utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
41
+ if (!tr_utils_1.TrUtils.IsNull(ROPrintData.Product) && !tr_utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
42
42
  fileName = fileName + '-' + ROPrintData.Product.RegNo;
43
43
  }
44
44
  return fileName;
@@ -48,14 +48,14 @@ class InvoiceLandscapePdfService {
48
48
  }
49
49
  static GetHeaderInfo(InvoicePDFData) {
50
50
  let TaxInfo = [];
51
- if (!utils_1.TrUtils.IsEmpty(InvoicePDFData.Entity.GSTIN)) {
51
+ if (!tr_utils_1.TrUtils.IsEmpty(InvoicePDFData.Entity.GSTIN)) {
52
52
  TaxInfo.push({ text: 'GSTIN : ' + InvoicePDFData.Entity.GSTIN, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: 'auto' });
53
53
  }
54
54
  // if (!TrUtils.IsEmpty(InvoicePDFData.Entity.PAN)) {
55
55
  // TaxInfo.push({ text: 'PAN : ' + InvoicePDFData.Entity.PAN, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: 'auto' },
56
56
  // );
57
57
  // }
58
- if (!utils_1.TrUtils.IsEmpty(InvoicePDFData.Entity.DLNo)) {
58
+ if (!tr_utils_1.TrUtils.IsEmpty(InvoicePDFData.Entity.DLNo)) {
59
59
  TaxInfo.push({ text: 'D.L.NO : ' + InvoicePDFData.Entity.DLNo, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: '*' });
60
60
  }
61
61
  TaxInfo.push(this.GetBillofSupplyName(InvoicePDFData.Settings));
@@ -129,19 +129,19 @@ class InvoiceLandscapePdfService {
129
129
  ]
130
130
  }
131
131
  ];
132
- if (!utils_1.TrUtils.IsNull(Image)) {
132
+ if (!tr_utils_1.TrUtils.IsNull(Image)) {
133
133
  // Details.unshift({ text: '', width: 120 });
134
134
  if (Entity.CName.length < 28) {
135
135
  Details[0].stack[0].columns.push({ text: '', width: 140 });
136
136
  }
137
- if (!utils_1.TrUtils.IsNull(text)) {
137
+ if (!tr_utils_1.TrUtils.IsNull(text)) {
138
138
  Details[0].stack.unshift({ text: text, color: 'grey', alignment: 'right', width: 100, marginBottom: -15, fontSize: 10 });
139
139
  }
140
140
  Details.unshift({ image: Image, width: 120, height: 80 });
141
141
  }
142
142
  else {
143
143
  Details[0].stack[1].columns.unshift({ text: '', width: 130 });
144
- if (!utils_1.TrUtils.IsNull(text)) {
144
+ if (!tr_utils_1.TrUtils.IsNull(text)) {
145
145
  Details[0].stack.unshift({ text: text, color: 'grey', alignment: 'right', width: 100, marginBottom: -15, fontSize: 10 });
146
146
  }
147
147
  }
@@ -160,7 +160,7 @@ class InvoiceLandscapePdfService {
160
160
  let List = [];
161
161
  if (ROPrintData.Entity.Body === 1) {
162
162
  for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
163
- if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
163
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
164
164
  ROPrintData.PrintInfo[i].Text = '';
165
165
  }
166
166
  // List.push(ROPrintData.PrintInfo[i].Text,
@@ -171,10 +171,10 @@ class InvoiceLandscapePdfService {
171
171
  else {
172
172
  if (ROPrintData.Entity.Body === 2) {
173
173
  for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
174
- if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
174
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
175
175
  ROPrintData.PrintInfo[i].Text = '';
176
176
  }
177
- List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
177
+ List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
178
178
  }
179
179
  }
180
180
  else {
@@ -185,10 +185,10 @@ class InvoiceLandscapePdfService {
185
185
  }
186
186
  else {
187
187
  for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
188
- if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
188
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
189
189
  ROPrintData.PrintInfo[i].Text = '';
190
190
  }
191
- List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
191
+ List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
192
192
  }
193
193
  }
194
194
  }
@@ -437,14 +437,14 @@ class InvoiceLandscapePdfService {
437
437
  // console.log('part', part);
438
438
  var dataRow = [];
439
439
  columns.forEach((column) => {
440
- if ((!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field]))
440
+ if ((!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]))
441
441
  || (column.text === 'Line Total' || column.text === 'Expiry')) {
442
442
  if (part[column.Field] === 'Spare Parts') {
443
443
  dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
444
444
  }
445
445
  else {
446
446
  if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
447
- && utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
447
+ && tr_utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
448
448
  part[column.Field] = '';
449
449
  dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
450
450
  }
@@ -454,7 +454,7 @@ class InvoiceLandscapePdfService {
454
454
  || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
455
455
  if (column.Field === 'Disc') {
456
456
  if (column.type === 'percentage') {
457
- if (!utils_1.TrUtils.IsEmpty(part[column.Field])) {
457
+ if (!tr_utils_1.TrUtils.IsEmpty(part[column.Field])) {
458
458
  dataRow.push({ text: part[column.Field].toString(), noWrap: true });
459
459
  }
460
460
  else {
@@ -462,7 +462,7 @@ class InvoiceLandscapePdfService {
462
462
  }
463
463
  }
464
464
  else {
465
- if (!utils_1.TrUtils.IsZero(part[column.Field])) {
465
+ if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
466
466
  dataRow.push({ text: part[column.Field].toString(), noWrap: true });
467
467
  }
468
468
  else {
@@ -472,7 +472,7 @@ class InvoiceLandscapePdfService {
472
472
  }
473
473
  else {
474
474
  if (column.Field === 'Batch') {
475
- if (!utils_1.TrUtils.IsNull(part[column.Field])) {
475
+ if (!tr_utils_1.TrUtils.IsNull(part[column.Field])) {
476
476
  dataRow.push({ text: part[column.Field].BN, nowrap: true });
477
477
  }
478
478
  else {
@@ -480,7 +480,7 @@ class InvoiceLandscapePdfService {
480
480
  }
481
481
  }
482
482
  else if (column.Field === 'ExDate') {
483
- if (!utils_1.TrUtils.IsNull(part['Batch'])) {
483
+ if (!tr_utils_1.TrUtils.IsNull(part['Batch'])) {
484
484
  dataRow.push({ text: my_date_1.MyDate.ConvertUTCDateToReadableExDate(part['Batch'].ExDt), nowrap: true });
485
485
  }
486
486
  else {
@@ -488,7 +488,7 @@ class InvoiceLandscapePdfService {
488
488
  }
489
489
  }
490
490
  else {
491
- if (!utils_1.TrUtils.IsZero(part[column.Field])) {
491
+ if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
492
492
  dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
493
493
  }
494
494
  else {
@@ -499,13 +499,13 @@ class InvoiceLandscapePdfService {
499
499
  }
500
500
  else {
501
501
  // dataRow.push(part[column.Field].toString());
502
- if (utils_1.TrUtils.IsNull(part[column.Field])) {
502
+ if (tr_utils_1.TrUtils.IsNull(part[column.Field])) {
503
503
  part[column.Field] = '';
504
504
  }
505
505
  if (column.Field === 'Desc') {
506
506
  let DescData = [];
507
507
  DescData.push(part[column.Field].toString());
508
- if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
508
+ if (!tr_utils_1.TrUtils.IsEmpty(part['EDesc'])) {
509
509
  DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
510
510
  }
511
511
  dataRow.push({ stack: DescData });
@@ -518,7 +518,7 @@ class InvoiceLandscapePdfService {
518
518
  }
519
519
  }
520
520
  else {
521
- if (column.Field === 'SNo' && !utils_1.TrUtils.IsNull(part.Desc)) {
521
+ if (column.Field === 'SNo' && !tr_utils_1.TrUtils.IsNull(part.Desc)) {
522
522
  part[column.Field] = SNo;
523
523
  SNo = SNo + 1;
524
524
  }
@@ -838,7 +838,7 @@ class InvoiceLandscapePdfService {
838
838
  // if (ROPrintData.Type !== 'Invoice') {
839
839
  // CommonDetails.splice(2, 0, SharedPDFService.GetUnderLine());
840
840
  // }
841
- if (!utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
841
+ if (!tr_utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
842
842
  CommonDetails.push({ text: '', pageBreak: 'after' });
843
843
  }
844
844
  return CommonDetails;
@@ -875,12 +875,12 @@ class InvoiceLandscapePdfService {
875
875
  let totalDisc;
876
876
  let totalTax;
877
877
  if (!ROPrintData.Consolidate) {
878
- totalTax = utils_1.TrUtils.FixPriceValue(Number(ROPrintData.CustLaborITax) + Number(ROPrintData.CustPartITax));
879
- if (utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax)) {
880
- totalDisc = utils_1.TrUtils.FixPriceValue(Number(ROPrintData.CustLaborDiscTotal) + Number(ROPrintData.CustPartsDiscTotal));
878
+ totalTax = tr_utils_1.TrUtils.FixPriceValue(Number(ROPrintData.CustLaborITax) + Number(ROPrintData.CustPartITax));
879
+ if (tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax)) {
880
+ totalDisc = tr_utils_1.TrUtils.FixPriceValue(Number(ROPrintData.CustLaborDiscTotal) + Number(ROPrintData.CustPartsDiscTotal));
881
881
  }
882
882
  else {
883
- totalDisc = utils_1.TrUtils.FixPriceValue(Number(ROPrintData.CustLaborDiscTotal) + Number(ROPrintData.CustPartsDiscTotal));
883
+ totalDisc = tr_utils_1.TrUtils.FixPriceValue(Number(ROPrintData.CustLaborDiscTotal) + Number(ROPrintData.CustPartsDiscTotal));
884
884
  }
885
885
  }
886
886
  return [