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,491 @@
1
+ import { SharedPDFService } from '../../shared/shared-services/shared-pdf.service';
2
+ export declare class VendorCreditNotePDFService {
3
+ SharedPrint: SharedPDFService;
4
+ static SmallFont: number;
5
+ static MediumFont: number;
6
+ static LargeFont: number;
7
+ constructor(SharedPrint: SharedPDFService);
8
+ static dd: any;
9
+ static CreditNotePDFData(CreditNoteData: any, moreDiscDetails: boolean): {
10
+ info: {
11
+ title: string;
12
+ };
13
+ background: (currentPage: any, pageSize: any) => any;
14
+ header: (currentPage: any, pageCount: any) => {
15
+ text: string;
16
+ alignment: string;
17
+ marginRight: number;
18
+ fontSize: number;
19
+ marginTop: number;
20
+ };
21
+ pageMargins: number[];
22
+ content: any[];
23
+ styles: {
24
+ Cust_Adrs: {
25
+ fontSize: number;
26
+ lineHeight: number;
27
+ };
28
+ WSHeader_Left: {
29
+ fontSize: number;
30
+ bold: boolean;
31
+ alignment: string;
32
+ };
33
+ WSHeader_Center: {
34
+ fontSize: number;
35
+ bold: boolean;
36
+ alignment: string;
37
+ };
38
+ ws_adrs_center: {
39
+ fontSize: number;
40
+ alignment: string;
41
+ };
42
+ ws_adrs_left: {
43
+ fontSize: number;
44
+ alignment: string;
45
+ };
46
+ table_data: {
47
+ margin: number[];
48
+ fontSize: number;
49
+ };
50
+ table_header: {
51
+ bold: boolean;
52
+ fontSize: number;
53
+ margin: number[];
54
+ alignment: string;
55
+ };
56
+ vendor_font: {
57
+ fontSize: number;
58
+ margin: number[];
59
+ };
60
+ PO_Status: {
61
+ fontSize: number;
62
+ lineHeight: number;
63
+ margin: number[];
64
+ };
65
+ po_status_font: {
66
+ fontSize: number;
67
+ };
68
+ totals_Styles: {
69
+ marginTop: number;
70
+ lineHeight: number;
71
+ fontSize: number;
72
+ margin: number[];
73
+ };
74
+ total_margin: {
75
+ margin: number[];
76
+ };
77
+ hed: {
78
+ fontSize: number;
79
+ bold: boolean;
80
+ };
81
+ Receiptheader1: {
82
+ fontSize: number;
83
+ bold: boolean;
84
+ alignment: string;
85
+ margin: number[];
86
+ };
87
+ };
88
+ };
89
+ static GetFileName(CreditNoteData: any): string;
90
+ static GetDisplayTable(): {
91
+ text: string;
92
+ fontSize: number;
93
+ bold: boolean;
94
+ margin: number[];
95
+ };
96
+ static GetStyles(): {
97
+ Cust_Adrs: {
98
+ fontSize: number;
99
+ lineHeight: number;
100
+ };
101
+ WSHeader_Left: {
102
+ fontSize: number;
103
+ bold: boolean;
104
+ alignment: string;
105
+ };
106
+ WSHeader_Center: {
107
+ fontSize: number;
108
+ bold: boolean;
109
+ alignment: string;
110
+ };
111
+ ws_adrs_center: {
112
+ fontSize: number;
113
+ alignment: string;
114
+ };
115
+ ws_adrs_left: {
116
+ fontSize: number;
117
+ alignment: string;
118
+ };
119
+ table_data: {
120
+ margin: number[];
121
+ fontSize: number;
122
+ };
123
+ table_header: {
124
+ bold: boolean;
125
+ fontSize: number;
126
+ margin: number[];
127
+ alignment: string;
128
+ };
129
+ vendor_font: {
130
+ fontSize: number;
131
+ margin: number[];
132
+ };
133
+ PO_Status: {
134
+ fontSize: number;
135
+ lineHeight: number;
136
+ margin: number[];
137
+ };
138
+ po_status_font: {
139
+ fontSize: number;
140
+ };
141
+ totals_Styles: {
142
+ marginTop: number;
143
+ lineHeight: number;
144
+ fontSize: number;
145
+ margin: number[];
146
+ };
147
+ total_margin: {
148
+ margin: number[];
149
+ };
150
+ hed: {
151
+ fontSize: number;
152
+ bold: boolean;
153
+ };
154
+ Receiptheader1: {
155
+ fontSize: number;
156
+ bold: boolean;
157
+ alignment: string;
158
+ margin: number[];
159
+ };
160
+ };
161
+ static MainHeading(CName: any, Header: any, Image: any, HColor: any, AColor: any): {
162
+ text: string;
163
+ style: any[];
164
+ }[];
165
+ static GetMainHeaderStyleForLeftAlignHeader(WorkShopName: string): any;
166
+ static GetHeader(Entity: any): any;
167
+ static GetEntityDetails(Entity: any): {
168
+ lineHeight: number;
169
+ columns: any[];
170
+ };
171
+ static GetTagLine(TLine: any): any;
172
+ static GetEmailName(email: any): any;
173
+ static GetPinCode(pin: any): any;
174
+ static GetEntityTaxDetails(Entity: any): any;
175
+ static GetEntityeDataTable(EntityFields: any): {
176
+ lineHeight: number;
177
+ marginLeft: number;
178
+ fontSize: number;
179
+ table: {
180
+ body: {
181
+ table: {
182
+ fontSize: number;
183
+ widths: (string | number)[];
184
+ body: any;
185
+ };
186
+ layout: string;
187
+ }[][];
188
+ };
189
+ layout: string;
190
+ };
191
+ static DataCreateForTable(EntityFields: any): any;
192
+ static GetVendorDetails(PurchaseOrder: any): {
193
+ style: string;
194
+ columns: ({
195
+ style: string;
196
+ lineHeight: number;
197
+ columns: {
198
+ table: {
199
+ fontSize: number;
200
+ widths: (string | number)[];
201
+ body: any[][];
202
+ };
203
+ layout: string;
204
+ }[];
205
+ } | {
206
+ stack: {
207
+ style: string;
208
+ stack: any[];
209
+ }[];
210
+ width: number;
211
+ text?: undefined;
212
+ } | {
213
+ text: string;
214
+ width: number;
215
+ stack?: undefined;
216
+ })[];
217
+ };
218
+ static GetVehicle(PurchaseOrder: any): {
219
+ style: string;
220
+ lineHeight: number;
221
+ columns: {
222
+ table: {
223
+ fontSize: number;
224
+ widths: (string | number)[];
225
+ body: any[][];
226
+ };
227
+ layout: string;
228
+ }[];
229
+ };
230
+ static GetVendorData(Vendor: any, Type: any): {
231
+ style: string;
232
+ stack: any[];
233
+ };
234
+ static GetAddress(Vendor: any): any;
235
+ static GetFormatContact(CustomerObj: any): string;
236
+ static GetFormatAddress(CustomerObj: any): string;
237
+ static GetVendorGSTIN(Vendor: any): any;
238
+ static GetVendorPhoneNumber(Vendor: any, Type: any): any;
239
+ static VendorDetailsAfterLine(): {
240
+ canvas: {
241
+ type: string;
242
+ lineColor: string;
243
+ x1: number;
244
+ y1: number;
245
+ x2: number;
246
+ y2: number;
247
+ lineWidth: number;
248
+ }[];
249
+ };
250
+ static getPartsData(CreditNoteData: any): any;
251
+ static GetWithOutDiscAndTaxFieldHeader(Items: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
252
+ static TaxTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any): number[];
253
+ static TaxDataTable(PrintPartNo: any, ShowIGST: any, Items: any, Body: any, ShowTaxColumn: any, ShowDiscountColumn: any): {
254
+ style: string;
255
+ table: {
256
+ widths: number[];
257
+ body: any;
258
+ };
259
+ layout: {
260
+ hLineWidth: (i: any, node: any) => number;
261
+ vLineWidth: (i: any, node: any) => number;
262
+ hLineColor: (i: any, node: any) => string;
263
+ vLineColor: (i: any, node: any) => string;
264
+ };
265
+ };
266
+ static IGSTTaxDataTableWithPartNumber(PrintPartNo: any, ShowIGST: any, Items: any, Body: any, ShowTaxColumn: any, ShowDiscountColumn: any): {
267
+ style: string;
268
+ table: {
269
+ widths: number[];
270
+ body: any;
271
+ };
272
+ layout: {
273
+ hLineWidth: (i: any, node: any) => number;
274
+ vLineWidth: (i: any, node: any) => number;
275
+ hLineColor: (i: any, node: any) => string;
276
+ vLineColor: (i: any, node: any) => string;
277
+ };
278
+ };
279
+ static CGSTAndSGSTTaxDataTableWithPartNUmber(PrintPartNo: any, ShowIGST: any, Items: any, Body: any, ShowTaxColumn: any, ShowDiscountColumn: any): {
280
+ style: string;
281
+ table: {
282
+ widths: number[];
283
+ body: any;
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
+ };
292
+ static TaxDataTableWithOutPartNumber(PrintPartNo: any, ShowIGST: any, Items: any, Body: any, ShowTaxColumn: any, ShowDiscountColumn: any): {
293
+ style: string;
294
+ table: {
295
+ widths: number[];
296
+ body: any;
297
+ };
298
+ layout: {
299
+ hLineWidth: (i: any, node: any) => number;
300
+ vLineWidth: (i: any, node: any) => number;
301
+ hLineColor: (i: any, node: any) => string;
302
+ vLineColor: (i: any, node: any) => string;
303
+ };
304
+ };
305
+ static IGSTTaxDataTableWithOutPartNumber(PrintPartNo: any, ShowIGST: any, Items: any, Body: any, ShowTaxColumn: any, ShowDiscountColumn: any): {
306
+ style: string;
307
+ table: {
308
+ widths: number[];
309
+ body: any;
310
+ };
311
+ layout: {
312
+ hLineWidth: (i: any, node: any) => number;
313
+ vLineWidth: (i: any, node: any) => number;
314
+ hLineColor: (i: any, node: any) => string;
315
+ vLineColor: (i: any, node: any) => string;
316
+ };
317
+ };
318
+ static CGSTAndSGSTTaxDataTableWithOutPartNUmber(PrintPartNo: any, ShowIGST: any, Items: any, Body: any, ShowTaxColumn: any, ShowDiscountColumn: any): {
319
+ style: string;
320
+ table: {
321
+ widths: number[];
322
+ body: any;
323
+ };
324
+ layout: {
325
+ hLineWidth: (i: any, node: any) => number;
326
+ vLineWidth: (i: any, node: any) => number;
327
+ hLineColor: (i: any, node: any) => string;
328
+ vLineColor: (i: any, node: any) => string;
329
+ };
330
+ };
331
+ static WithOutTaxDataTable(PrintPartNo: any, ShowIGST: any, Items: any, Body: any, ShowTaxColumn: any, ShowDiscountColumn: any): {
332
+ style: string;
333
+ marginLeft: number;
334
+ table: {
335
+ widths: number[];
336
+ body: any;
337
+ };
338
+ layout: {
339
+ hLineWidth: (i: any, node: any) => number;
340
+ vLineWidth: (i: any, node: any) => number;
341
+ hLineColor: (i: any, node: any) => string;
342
+ vLineColor: (i: any, node: any) => string;
343
+ };
344
+ };
345
+ static WithOutTaxDataTableWithOutPartNumber(Items: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): {
346
+ style: string;
347
+ marginLeft: number;
348
+ table: {
349
+ widths: number[];
350
+ body: any;
351
+ };
352
+ layout: {
353
+ hLineWidth: (i: any, node: any) => number;
354
+ vLineWidth: (i: any, node: any) => number;
355
+ hLineColor: (i: any, node: any) => string;
356
+ vLineColor: (i: any, node: any) => string;
357
+ };
358
+ };
359
+ static GetPartsTableForView(Items: any, PrintPartNo: any): any;
360
+ static WithOutDiscountFieldTable(Items: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
361
+ static BuildTableBodyForLaborAndParts(Items: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
362
+ static GetPartsDataTable(Items: any, columns: any, body: any): any;
363
+ static GetWithOutDiscountFieldHeader1(PrintPartNo: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
364
+ static GetWithOutDiscountFieldHeader2(PrintPartNo: any, Body: any, ShowDiscountColumn: any): any;
365
+ static PartsTableBody(Items: any, PrintPartNo: any): any;
366
+ static GetPOTotalDetails(CreditNoteData: any, moreDiscDetails: boolean): {
367
+ columns: ({
368
+ style: string[];
369
+ lineHeight: number;
370
+ marginBottom: number;
371
+ table: {
372
+ body: any;
373
+ };
374
+ layout: string;
375
+ } | {
376
+ stack: any[];
377
+ text?: undefined;
378
+ width?: undefined;
379
+ } | {
380
+ text: string;
381
+ width: number;
382
+ stack?: undefined;
383
+ })[];
384
+ marginLeft: number;
385
+ };
386
+ static GetTaxOnParts(BasicPartsTotal: any, OverAllMainPartsDiscount: any, PCGST: any, PSGST: any, ShowAccParts: any, PIGST: any, ShowIGST: any, ShowTaxColumn: any, ShowDetailedPartTaxInfo: any): any;
387
+ static GrandTotal(RecordData: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, SubTotal: any, moreDiscDetails: boolean): {
388
+ style: string[];
389
+ lineHeight: number;
390
+ marginBottom: number;
391
+ table: {
392
+ body: any;
393
+ };
394
+ layout: string;
395
+ };
396
+ static PartsAmountGroupByTax(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): "" | {
397
+ stack: {
398
+ style: string;
399
+ table: {
400
+ widths: number[];
401
+ headerRows: number;
402
+ body: any;
403
+ };
404
+ layout: {
405
+ hLineWidth: (i: any, node: any) => 0 | 0.5;
406
+ vLineWidth: (i: any, node: any) => number;
407
+ };
408
+ }[];
409
+ };
410
+ static PartsGroupByHSN(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): {
411
+ style: string;
412
+ table: {
413
+ widths: number[];
414
+ headerRows: number;
415
+ body: any;
416
+ };
417
+ layout: {
418
+ hLineWidth: (i: any, node: any) => 0 | 0.5;
419
+ vLineWidth: (i: any, node: any) => number;
420
+ };
421
+ };
422
+ static PartsGroupByPercentage(PartsTaxInfo: any, ShowAccParts: any, ShowTaxColumn: any): {
423
+ style: string;
424
+ table: {
425
+ widths: number[];
426
+ body: any;
427
+ };
428
+ layout: {
429
+ hLineWidth: (i: any, node: any) => 0 | 0.5;
430
+ vLineWidth: (i: any, node: any) => number;
431
+ };
432
+ };
433
+ static GetSignatures(CName: any): {
434
+ fontSize: number;
435
+ columns: {
436
+ stack: ({
437
+ style: string;
438
+ text: (string | {
439
+ text: any;
440
+ bold: string;
441
+ })[];
442
+ } | {
443
+ columns: {
444
+ style: string;
445
+ text: string[];
446
+ }[];
447
+ })[];
448
+ }[];
449
+ };
450
+ static CompanyName(CName: any): {
451
+ style: string;
452
+ text: (string | {
453
+ text: any;
454
+ bold: string;
455
+ })[];
456
+ };
457
+ static Authorizedsignature(): {
458
+ style: string;
459
+ text: string[];
460
+ };
461
+ static HeaderLineStyle(): {
462
+ hLineWidth: (i: any, node: any) => 0 | 0.5;
463
+ vLineWidth: (i: any, node: any) => number;
464
+ };
465
+ static CreateHeaderForGroupByPercentage(): ({
466
+ text: string;
467
+ style: string;
468
+ fontSize: number;
469
+ lineHeight: number;
470
+ Field: string;
471
+ alignment?: undefined;
472
+ } | {
473
+ text: string;
474
+ style: string;
475
+ alignment: string;
476
+ fontSize: number;
477
+ lineHeight: number;
478
+ Field: string;
479
+ })[];
480
+ static CreateHeaderForGroupByHSN(ShowIGST: any): {
481
+ text: string;
482
+ style: string;
483
+ fontSize: number;
484
+ lineHeight: number;
485
+ Field: string;
486
+ }[];
487
+ static CreateTableForGroupByHSN(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): any;
488
+ static CreateTableForGroupByPercentage(PartsTaxInfo: any, ShowAccParts: any, ShowTaxColumn: any): any;
489
+ static CreateGrandTotalTable(data: any): any;
490
+ static CreatePartsTotalsTable(data: any, istotal: boolean): any;
491
+ }
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VendorCreditNotePDFService = void 0;
4
- const utils_1 = require("../shared/utils");
5
- const shared_pdf_service_1 = require("./shared-pdf.service");
6
- const shared_print_service_1 = require("./shared-print.service");
4
+ const shared_pdf_service_1 = require("../../shared/shared-services/shared-pdf.service");
5
+ const shared_print_service_1 = require("../../shared/shared-services/shared-print.service");
6
+ const tr_utils_1 = require("../../utils/tr-utils");
7
7
  class VendorCreditNotePDFService {
8
8
  constructor(SharedPrint) {
9
9
  this.SharedPrint = SharedPrint;
@@ -129,7 +129,7 @@ class VendorCreditNotePDFService {
129
129
  }
130
130
  static GetMainHeaderStyleForLeftAlignHeader(WorkShopName) {
131
131
  var wsname_fontSize;
132
- if (utils_1.TrUtils.IsNull(WorkShopName)) {
132
+ if (tr_utils_1.TrUtils.IsNull(WorkShopName)) {
133
133
  WorkShopName = '';
134
134
  }
135
135
  switch (true) {
@@ -164,10 +164,10 @@ class VendorCreditNotePDFService {
164
164
  { text: '' + Entity.City + this.GetPinCode(Entity.PIN) + ', ' + 'Ph: ' + Entity.Phone, style: headerstyle },
165
165
  { text: '' + this.GetEmailName(Entity.Email) + '', style: headerstyle }
166
166
  ];
167
- if (!utils_1.TrUtils.IsEmpty(Entity.Adrs2)) {
167
+ if (!tr_utils_1.TrUtils.IsEmpty(Entity.Adrs2)) {
168
168
  SubHeader.splice(1, 0, { text: '' + Entity.Adrs2 + '', style: [headerstyle] });
169
169
  }
170
- if (!utils_1.TrUtils.IsEmpty(Entity.TLine)) {
170
+ if (!tr_utils_1.TrUtils.IsEmpty(Entity.TLine)) {
171
171
  SubHeader.unshift({ text: this.GetTagLine(Entity.TLine), fontSize: 10, bold: true, margin: [0, 0, 0, 2] });
172
172
  }
173
173
  return SubHeader;
@@ -180,31 +180,31 @@ class VendorCreditNotePDFService {
180
180
  };
181
181
  }
182
182
  static GetTagLine(TLine) {
183
- if (utils_1.TrUtils.IsEmpty(TLine)) {
183
+ if (tr_utils_1.TrUtils.IsEmpty(TLine)) {
184
184
  TLine = '';
185
185
  }
186
186
  return TLine;
187
187
  }
188
188
  static GetEmailName(email) {
189
189
  let Email = '';
190
- if (!utils_1.TrUtils.IsNull(email)) {
190
+ if (!tr_utils_1.TrUtils.IsNull(email)) {
191
191
  Email = 'Email: ' + email;
192
192
  }
193
193
  return Email;
194
194
  }
195
195
  static GetPinCode(pin) {
196
196
  let code = '';
197
- if (!utils_1.TrUtils.IsNull(pin)) {
197
+ if (!tr_utils_1.TrUtils.IsNull(pin)) {
198
198
  code = ' - ' + pin;
199
199
  }
200
200
  return code;
201
201
  }
202
202
  static GetEntityTaxDetails(Entity) {
203
203
  let EntityData = [];
204
- if (!utils_1.TrUtils.IsEmpty(Entity.GSTIN)) {
204
+ if (!tr_utils_1.TrUtils.IsEmpty(Entity.GSTIN)) {
205
205
  EntityData.push({ name: 'GSTIN', value: Entity.GSTIN });
206
206
  }
207
- if (!utils_1.TrUtils.IsEmpty(Entity.PAN)) {
207
+ if (!tr_utils_1.TrUtils.IsEmpty(Entity.PAN)) {
208
208
  EntityData.push({ name: 'PAN No', value: Entity.PAN });
209
209
  }
210
210
  if (EntityData.length !== 0) {
@@ -237,7 +237,7 @@ class VendorCreditNotePDFService {
237
237
  static DataCreateForTable(EntityFields) {
238
238
  var body = [];
239
239
  EntityFields.forEach((row) => {
240
- if (!utils_1.TrUtils.IsFixedZero(row.value) && !utils_1.TrUtils.IsEmpty(row.value)) {
240
+ if (!tr_utils_1.TrUtils.IsFixedZero(row.value) && !tr_utils_1.TrUtils.IsEmpty(row.value)) {
241
241
  var dataRow = [];
242
242
  dataRow.push({ text: (row.name).toString(), noWrap: true });
243
243
  dataRow.push(':');
@@ -312,7 +312,7 @@ class VendorCreditNotePDFService {
312
312
  }
313
313
  static GetVendorGSTIN(Vendor) {
314
314
  let GSTIN = {};
315
- if (!utils_1.TrUtils.IsEmpty(Vendor.GSTIN)) {
315
+ if (!tr_utils_1.TrUtils.IsEmpty(Vendor.GSTIN)) {
316
316
  let columns = [];
317
317
  columns.push({ text: 'GSTIN :', width: 33, style: 'hed' });
318
318
  columns.push({ text: Vendor.GSTIN, marginTop: 1.5 });
@@ -359,14 +359,14 @@ class VendorCreditNotePDFService {
359
359
  }
360
360
  static getPartsData(CreditNoteData) {
361
361
  if (CreditNoteData.Entity.Body === 1) {
362
- return this.GetPartsTableForView(utils_1.TrUtils.Stringify(CreditNoteData.Items), CreditNoteData.Entity.MPN);
362
+ return this.GetPartsTableForView(tr_utils_1.TrUtils.Stringify(CreditNoteData.Items), CreditNoteData.Entity.MPN);
363
363
  }
364
364
  else {
365
365
  if (CreditNoteData.Entity.Body === 2) {
366
- return this.WithOutDiscountFieldTable(utils_1.TrUtils.Stringify(CreditNoteData.Items), CreditNoteData.Entity.MPN, CreditNoteData.ShowTaxColumn, CreditNoteData.Entity.Body, CreditNoteData.ShowIGST, CreditNoteData.ShowDiscountColumn);
366
+ return this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(CreditNoteData.Items), CreditNoteData.Entity.MPN, CreditNoteData.ShowTaxColumn, CreditNoteData.Entity.Body, CreditNoteData.ShowIGST, CreditNoteData.ShowDiscountColumn);
367
367
  }
368
368
  else {
369
- return this.GetWithOutDiscAndTaxFieldHeader(utils_1.TrUtils.Stringify(CreditNoteData.Items), CreditNoteData.Entity.MPN, CreditNoteData.ShowTaxColumn, CreditNoteData.Entity.Body, CreditNoteData.ShowIGST, CreditNoteData.ShowDiscountColumn);
369
+ return this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(CreditNoteData.Items), CreditNoteData.Entity.MPN, CreditNoteData.ShowTaxColumn, CreditNoteData.Entity.Body, CreditNoteData.ShowIGST, CreditNoteData.ShowDiscountColumn);
370
370
  }
371
371
  }
372
372
  }
@@ -559,7 +559,7 @@ class VendorCreditNotePDFService {
559
559
  Items.forEach((part) => {
560
560
  var dataRow = [];
561
561
  columns.forEach((column) => {
562
- if (!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field])
562
+ if (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field])
563
563
  || column.text === 'Line Total') {
564
564
  if (part[column.Field] === 'Spare Items') {
565
565
  dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
@@ -724,7 +724,7 @@ class VendorCreditNotePDFService {
724
724
  return PartsTable;
725
725
  }
726
726
  static GetPOTotalDetails(CreditNoteData, moreDiscDetails) {
727
- if (utils_1.TrUtils.IsNull(CreditNoteData.SubTotal)) {
727
+ if (tr_utils_1.TrUtils.IsNull(CreditNoteData.SubTotal)) {
728
728
  CreditNoteData.SubTotal = 0;
729
729
  }
730
730
  return {
@@ -742,11 +742,11 @@ class VendorCreditNotePDFService {
742
742
  static GetTaxOnParts(BasicPartsTotal, OverAllMainPartsDiscount, PCGST, PSGST, ShowAccParts, PIGST, ShowIGST, ShowTaxColumn, ShowDetailedPartTaxInfo) {
743
743
  let istheretax = false;
744
744
  let PartsTotal = [];
745
- if (!utils_1.TrUtils.IsFixedZero(OverAllMainPartsDiscount)) {
745
+ if (!tr_utils_1.TrUtils.IsFixedZero(OverAllMainPartsDiscount)) {
746
746
  PartsTotal.push({ name: 'Discount On Items', value: OverAllMainPartsDiscount });
747
747
  }
748
748
  if (ShowTaxColumn) {
749
- if (!utils_1.TrUtils.IsFixedZero(BasicPartsTotal)) {
749
+ if (!tr_utils_1.TrUtils.IsFixedZero(BasicPartsTotal)) {
750
750
  PartsTotal.unshift({ name: 'Items', value: BasicPartsTotal });
751
751
  }
752
752
  }
@@ -788,18 +788,18 @@ class VendorCreditNotePDFService {
788
788
  if (Rounding.value > 0) {
789
789
  Rounding.value = '+' + Rounding.value;
790
790
  }
791
- if (!utils_1.TrUtils.IsFixedZero(SubTotal)) {
791
+ if (!tr_utils_1.TrUtils.IsFixedZero(SubTotal)) {
792
792
  AccountFields.push({ name: 'SubTotal', value: SubTotal });
793
793
  }
794
794
  if (moreDiscDetails) {
795
- AccountFields.push({ name: 'Overall Discount', value: utils_1.TrUtils.FixPriceValue(RecordData.Disc) });
795
+ AccountFields.push({ name: 'Overall Discount', value: tr_utils_1.TrUtils.FixPriceValue(RecordData.Disc) });
796
796
  }
797
797
  else {
798
798
  AccountFields.push({ name: 'Discount', value: RecordData.Disc });
799
799
  }
800
800
  AccountFields.push(total);
801
801
  AccountFields.push(Rounding);
802
- if (!utils_1.TrUtils.IsFixedZero(Rounded)) {
802
+ if (!tr_utils_1.TrUtils.IsFixedZero(Rounded)) {
803
803
  AccountFields.push(FinalTotal);
804
804
  }
805
805
  return {
@@ -913,15 +913,15 @@ class VendorCreditNotePDFService {
913
913
  return HeaderNames;
914
914
  }
915
915
  static CreateTableForGroupByHSN(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn) {
916
- if (!utils_1.TrUtils.IsNull(PartsTaxInfo) && PartsTaxInfo.length !== 0 && ShowAccParts && ShowTaxColumn) {
916
+ if (!tr_utils_1.TrUtils.IsNull(PartsTaxInfo) && PartsTaxInfo.length !== 0 && ShowAccParts && ShowTaxColumn) {
917
917
  var body = [];
918
918
  let columns = this.CreateHeaderForGroupByHSN(ShowIGST);
919
919
  body.push(columns);
920
920
  PartsTaxInfo.forEach((part) => {
921
921
  var dataRow = [];
922
922
  columns.forEach((column) => {
923
- if (!utils_1.TrUtils.IsFixedZero(part[column.Field]) &&
924
- !utils_1.TrUtils.IsNull(part[column.Field]) || column.Field === 'SGST' || column.Field === 'CGST'
923
+ if (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) &&
924
+ !tr_utils_1.TrUtils.IsNull(part[column.Field]) || column.Field === 'SGST' || column.Field === 'CGST'
925
925
  || column.Field === 'TotalTaxAmount') {
926
926
  if (column.Field === 'SGSTLaborAmt') {
927
927
  dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
@@ -944,14 +944,14 @@ class VendorCreditNotePDFService {
944
944
  }
945
945
  }
946
946
  static CreateTableForGroupByPercentage(PartsTaxInfo, ShowAccParts, ShowTaxColumn) {
947
- if (!utils_1.TrUtils.IsNull(PartsTaxInfo) && PartsTaxInfo.length !== 0 && ShowAccParts && ShowTaxColumn) {
947
+ if (!tr_utils_1.TrUtils.IsNull(PartsTaxInfo) && PartsTaxInfo.length !== 0 && ShowAccParts && ShowTaxColumn) {
948
948
  var body = [];
949
949
  let columns = this.CreateHeaderForGroupByPercentage();
950
950
  body.push(columns);
951
951
  PartsTaxInfo.forEach((part) => {
952
952
  var dataRow = [];
953
953
  columns.forEach((column) => {
954
- if (!utils_1.TrUtils.IsNull(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field])) {
954
+ if (!tr_utils_1.TrUtils.IsNull(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field])) {
955
955
  if (column.Field === 'TotalTaxAmount' || column.Field === 'TotalTaxableAmount') {
956
956
  dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
957
957
  }
@@ -975,7 +975,7 @@ class VendorCreditNotePDFService {
975
975
  static CreateGrandTotalTable(data) {
976
976
  var body = [];
977
977
  data.forEach((row) => {
978
- if (!utils_1.TrUtils.IsFixedZero(row.value) || row.name === 'Total') {
978
+ if (!tr_utils_1.TrUtils.IsFixedZero(row.value) || row.name === 'Total') {
979
979
  var dataRow = [];
980
980
  dataRow.push({ text: (row.name).toString(), noWrap: true });
981
981
  dataRow.push(':');