shareneus 1.7.4 → 1.7.6

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 (212) hide show
  1. package/README.md +1 -0
  2. package/dist/accounting/invoice/invoice-pdf/invoice-pdf.service.js +18 -45
  3. package/dist/accounting/invoice/reports/excel/analysis-excel.service.js +17 -7
  4. package/dist/accounting/invoice/reports/excel/category-wise-item-excel.service.js +17 -7
  5. package/dist/accounting/invoice/reports/excel/cust-wise-sales-details.js +17 -7
  6. package/dist/accounting/invoice/reports/excel/cust-wise-sales-summary-excel.service.js +17 -7
  7. package/dist/accounting/invoice/reports/excel/invoice-wise-excel.service.js +17 -7
  8. package/dist/accounting/invoice/reports/excel/item-wise-doctor-sale-excel.service.js +17 -7
  9. package/dist/accounting/invoice/reports/excel/items-wise-sales-excel.service.js +17 -7
  10. package/dist/accounting/invoice/reports/excel/manf-wise-sales-excel.service.js +17 -7
  11. package/dist/accounting/invoice/reports/excel/operator-wise-details.js +17 -7
  12. package/dist/accounting/invoice/reports/excel/operator-wise-summary.js +17 -7
  13. package/dist/accounting/invoice/reports/excel/sa-wise-labor-sales-excel.service.js +17 -7
  14. package/dist/accounting/invoice/reports/excel/sa-wise-part-sales-excel.service.js +17 -7
  15. package/dist/accounting/invoice/reports/excel/sale-summary-excel.service.js +17 -7
  16. package/dist/accounting/invoice/reports/excel/sales-by-service-summary-excel.service.js +17 -7
  17. package/dist/accounting/invoice/reports/excel/scheduled-drug-summary-excel.service.js +17 -7
  18. package/dist/accounting/invoice/reports/excel/scheduled-drugs-excel.service.js +17 -7
  19. package/dist/accounting/invoice/unified-invoice-pdf.service.d.ts +1 -1
  20. package/dist/accounting/payment-receive/reports/excel/cust-balance-excel.service.js +17 -7
  21. package/dist/accounting/payment-receive/reports/excel/payment-receive-excel.service.js +17 -7
  22. package/dist/common/reports/excel/product-without-owner-excel.service.js +17 -7
  23. package/dist/gst/excel/GSTR-RO-excel.service.js +17 -7
  24. package/dist/gst/excel/GSTR1-excel.service.js +17 -7
  25. package/dist/gst/excel/GSTR2-excel.service.js +17 -7
  26. package/dist/gst/excel/hsn-summary.js +17 -7
  27. package/dist/gst/excel/tally-sales-import.service.js +17 -7
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +6 -6
  30. package/dist/inventory/items/reports/excel/expiring-drugs-excel.service.js +17 -7
  31. package/dist/inventory/items/reports/excel/item-wise-mout-details.js +17 -7
  32. package/dist/inventory/items/reports/excel/item-wise-mout-summary.js +17 -7
  33. package/dist/inventory/items/reports/excel/spares-issue-excel.service.js +17 -7
  34. package/dist/inventory/items/reports/excel/stock-excel.service.js +17 -7
  35. package/dist/purchases/payment-made/reports/excel/payments-made-excel.service.js +17 -7
  36. package/dist/purchases/payment-made/reports/excel/ven-balance-excel.service.js +17 -7
  37. package/dist/services/reports/excel/insurance-expire-excel.service.js +17 -7
  38. package/dist/services/reports/excel/next-service-date-excel.service.js +17 -7
  39. package/dist/services/reports/excel/repair-orders-excel.service.js +17 -7
  40. package/dist/shared/table-section/pdf-table.header.d.ts +1 -1
  41. package/dist/shared/table-section/pdf-table.header.js +14 -2
  42. package/dist/shared/table-section/pdf-table.section.js +6 -13
  43. package/dist/{accounting/invoice/invoice-pdf.service.js → shared/transactions-pdf.service.js} +15 -15
  44. package/package.json +1 -1
  45. package/src/accounting/counter-sales/auto-sales-receipt-pdf.service.ts +569 -0
  46. package/src/accounting/counter-sales/pos-receipt-pdf.ts +577 -0
  47. package/src/accounting/counter-sales/sales-receipt-pdf.service.ts +628 -0
  48. package/src/accounting/counter-sales/sales-receipt-print.service.ts +506 -0
  49. package/src/accounting/credit-note/cn-print.service.ts +264 -0
  50. package/src/accounting/credit-note/credit-note-pdf.service.ts +602 -0
  51. package/src/accounting/credit-note/credit-note-totals.service.ts +424 -0
  52. package/src/accounting/debit-note/debit-note-pdf.service.ts +681 -0
  53. package/src/accounting/debit-note/debit-note-print.service.ts +276 -0
  54. package/src/accounting/debit-note/debit-note-totals.service.ts +361 -0
  55. package/src/accounting/invoice/hc-inv-pdf.service.ts +880 -0
  56. package/src/accounting/invoice/inv-pdf.service.ts +812 -0
  57. package/src/accounting/invoice/inv-print.service.ts +532 -0
  58. package/src/accounting/invoice/invoice-landscape-pdf.service.ts +947 -0
  59. package/src/accounting/invoice/invoice-letterhead-pdf.service.ts +813 -0
  60. package/src/accounting/invoice/invoice-pdf/invoice-pdf.service.ts +359 -0
  61. package/src/accounting/invoice/invoice-portrait-pdf.ts +972 -0
  62. package/src/accounting/invoice/invoice-print.service.ts +2906 -0
  63. package/src/accounting/invoice/invoice-total.service.ts +834 -0
  64. package/src/accounting/invoice/reports/excel/analysis-excel.service.ts +291 -0
  65. package/src/accounting/invoice/reports/excel/category-wise-item-excel.service.ts +267 -0
  66. package/src/accounting/invoice/reports/excel/cust-wise-sales-details.ts +321 -0
  67. package/src/accounting/invoice/reports/excel/cust-wise-sales-summary-excel.service.ts +300 -0
  68. package/src/accounting/invoice/reports/excel/invoice-wise-excel.service.ts +859 -0
  69. package/src/accounting/invoice/reports/excel/item-wise-doctor-sale-excel.service.ts +255 -0
  70. package/src/accounting/invoice/reports/excel/items-wise-sales-excel.service.ts +312 -0
  71. package/src/accounting/invoice/reports/excel/manf-wise-sales-excel.service.ts +273 -0
  72. package/src/accounting/invoice/reports/excel/operator-wise-details.ts +258 -0
  73. package/src/accounting/invoice/reports/excel/operator-wise-summary.ts +259 -0
  74. package/src/accounting/invoice/reports/excel/sa-wise-labor-sales-excel.service.ts +230 -0
  75. package/src/accounting/invoice/reports/excel/sa-wise-part-sales-excel.service.ts +231 -0
  76. package/src/accounting/invoice/reports/excel/sale-summary-excel.service.ts +326 -0
  77. package/src/accounting/invoice/reports/excel/sales-by-service-details-excel.service.ts +0 -0
  78. package/src/accounting/invoice/reports/excel/sales-by-service-summary-excel.service.ts +432 -0
  79. package/src/accounting/invoice/reports/excel/scheduled-drug-summary-excel.service.ts +373 -0
  80. package/src/accounting/invoice/reports/excel/scheduled-drugs-excel.service.ts +372 -0
  81. package/src/accounting/invoice/reports/pdf/analysis-pdf.service.ts +113 -0
  82. package/src/accounting/invoice/reports/pdf/category-wise-item-pdf.service.ts +107 -0
  83. package/src/accounting/invoice/reports/pdf/cust-wise-sales-details-pdf.service.ts +125 -0
  84. package/src/accounting/invoice/reports/pdf/cust-wise-sales-summary-pdf.service.ts +119 -0
  85. package/src/accounting/invoice/reports/pdf/item-wise-doctor-sale-pdf.service.ts +180 -0
  86. package/src/accounting/invoice/reports/pdf/item-wise-sales-pdf.service.ts +193 -0
  87. package/src/accounting/invoice/reports/pdf/manf-wise-sales-pdf.service.ts +188 -0
  88. package/src/accounting/invoice/reports/pdf/operator-wise-details-pdf.service.ts +118 -0
  89. package/src/accounting/invoice/reports/pdf/operator-wise-summary-pdf.ts +116 -0
  90. package/src/accounting/invoice/reports/pdf/sales-by-service-pdf.service.ts +132 -0
  91. package/src/accounting/invoice/reports/pdf/scheduled-drug-pdf.service.ts +191 -0
  92. package/src/accounting/invoice/reports/pdf/scheduled-drug-summary-pdf.service.ts +202 -0
  93. package/src/accounting/invoice/shared-inv-pdf.service.ts +787 -0
  94. package/src/accounting/invoice/unified-invoice-pdf.service.ts +937 -0
  95. package/src/accounting/payment-receive/payment-pdf.service.ts +410 -0
  96. package/src/accounting/payment-receive/payment-receipt-pdf/receipt-pdf.service.ts +470 -0
  97. package/src/accounting/payment-receive/receipt-print.service.ts +71 -0
  98. package/src/accounting/payment-receive/reports/excel/cust-balance-excel.service.ts +298 -0
  99. package/src/accounting/payment-receive/reports/excel/payment-receive-excel.service.ts +221 -0
  100. package/src/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.ts +182 -0
  101. package/src/accounting/payment-receive/reports/pdf/payment-report-pdf.service.ts +116 -0
  102. package/src/aggregation/aggregation.ts +58 -0
  103. package/src/appointments/appointments/appointment-total.service.ts +298 -0
  104. package/src/appointments/consultations/consultation-fee-receipt.service.ts +407 -0
  105. package/src/appointments/consultations/consultation-full-pdf.service.ts +238 -0
  106. package/src/appointments/consultations/consultation-letterhead-pdf.service.ts +430 -0
  107. package/src/appointments/consultations/consultation-pdf.service.ts +417 -0
  108. package/src/common/reports/excel/product-without-owner-excel.service.ts +308 -0
  109. package/src/common/reports/pdf/product-without-owner-pdf.service.ts +146 -0
  110. package/src/enums/cache-enums.ts +33 -0
  111. package/src/enums/code-enums.ts +291 -0
  112. package/src/enums/country-enums.ts +9 -0
  113. package/src/enums/enums.ts +364 -0
  114. package/src/enums/industry-enums.ts +26 -0
  115. package/src/enums/treatment-enums.ts +9 -0
  116. package/src/gst/excel/GSTR-RO-excel.service.ts +926 -0
  117. package/src/gst/excel/GSTR1-excel.service.ts +313 -0
  118. package/src/gst/excel/GSTR2-excel.service.ts +314 -0
  119. package/src/gst/excel/hsn-summary.ts +314 -0
  120. package/src/gst/excel/tally-sales-import.service.ts +767 -0
  121. package/src/gst/pdf/hsn-summary-pdf.ts +176 -0
  122. package/src/index.ts +194 -0
  123. package/src/inventory/items/adjustment-pdf.service.ts +177 -0
  124. package/src/inventory/items/issue-parts-pdf.service.ts +795 -0
  125. package/src/inventory/items/item-bar-code-label-pdf.ts +194 -0
  126. package/src/inventory/items/item-detais-pdf.ts +141 -0
  127. package/src/inventory/items/item-price-for-pricelist.ts +368 -0
  128. package/src/inventory/items/reports/excel/expiring-drugs-excel.service.ts +290 -0
  129. package/src/inventory/items/reports/excel/item-wise-mout-details.ts +284 -0
  130. package/src/inventory/items/reports/excel/item-wise-mout-summary.ts +279 -0
  131. package/src/inventory/items/reports/excel/spares-issue-excel.service.ts +494 -0
  132. package/src/inventory/items/reports/excel/stock-excel.service.ts +319 -0
  133. package/src/inventory/items/reports/pdf/expiring-drugs-pdf.service.ts +172 -0
  134. package/src/inventory/items/reports/pdf/item-wise-mout-details-pdf.ts +122 -0
  135. package/src/inventory/items/reports/pdf/item-wise-mout-summary-pdf.ts +115 -0
  136. package/src/inventory/items/reports/pdf/reorder-point-pdf.service.ts +163 -0
  137. package/src/inventory/material-out/mout-pdf.service.ts +545 -0
  138. package/src/inventory/transfer-order/transfer-order-pdf.service.ts +154 -0
  139. package/src/purchases/bills/bill-pdf/bill-pdf.service.ts +211 -0
  140. package/src/purchases/bills/bill-pdf.service.ts +21 -0
  141. package/src/purchases/payment-made/reports/excel/payments-made-excel.service.ts +313 -0
  142. package/src/purchases/payment-made/reports/excel/ven-balance-excel.service.ts +307 -0
  143. package/src/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.ts +114 -0
  144. package/src/purchases/purchase-order/po-totals.service.ts +343 -0
  145. package/src/purchases/purchase-order/purchase-order-pdf.service.ts +1016 -0
  146. package/src/purchases/purchase-order/purchase-order-print.service.ts +279 -0
  147. package/src/purchases/purchase-order/purchase-order-totals.service.ts +637 -0
  148. package/src/purchases/vendor-credit-note/vendor-credit-note-pdf.service.ts +1055 -0
  149. package/src/purchases/vendor-credit-note/vendor-credit-note-print.service.ts +145 -0
  150. package/src/purchases/vendor-credit-note/vendor-credit-note-totals.service.ts +399 -0
  151. package/src/purchases/vendor-debit-note/vendor-debit-note-pdf.service.ts +582 -0
  152. package/src/purchases/vendor-debit-note/vendor-debit-note-print.service.ts +295 -0
  153. package/src/purchases/vendor-debit-note/vendor-debit-note-totals.service.ts +377 -0
  154. package/src/sales/delivery-challan/dc-landscape-pdf.service.ts +922 -0
  155. package/src/sales/delivery-challan/dc-landscape-without-price-pdf.service.ts +869 -0
  156. package/src/sales/delivery-challan/dc-without-price-pdf.service.ts +505 -0
  157. package/src/sales/delivery-challan/delivery-challan-pdf.service.ts +461 -0
  158. package/src/sales/delivery-challan/delivery-challan-print.service.ts +229 -0
  159. package/src/sales/delivery-challan/delivery-challan-totals.ts +466 -0
  160. package/src/sales/sales/equipment-design-pdf.service.ts +153 -0
  161. package/src/sales/sales/pack-ship-pdf.service.ts +128 -0
  162. package/src/sales/sales/pack-ship-print.service.ts +198 -0
  163. package/src/sales/sales/sales-pdf.service.ts +658 -0
  164. package/src/sales/sales/sales-print.service.ts +376 -0
  165. package/src/sales/sales/sales-totals.service.ts +500 -0
  166. package/src/sales-receive/sales-receive-pdf.service.ts +602 -0
  167. package/src/sales-receive/sales-receive-print.service.ts +242 -0
  168. package/src/sales-receive/sales-receive-totals.service.ts +651 -0
  169. package/src/services/checklist-pdf.ts +151 -0
  170. package/src/services/checklists-pdf.ts +133 -0
  171. package/src/services/est.print-service.ts +1155 -0
  172. package/src/services/reports/excel/insurance-expire-excel.service.ts +292 -0
  173. package/src/services/reports/excel/next-service-date-excel.service.ts +317 -0
  174. package/src/services/reports/excel/repair-orders-excel.service.ts +249 -0
  175. package/src/services/reports/pdf/insurance-expire-pdf.service.ts +115 -0
  176. package/src/services/reports/pdf/next-service-date-pdf.service.ts +198 -0
  177. package/src/services/reports/pdf/repair-orders-pdf.service.ts +184 -0
  178. package/src/services/ro-pdf.service.ts +1917 -0
  179. package/src/services/ro-print-service.ts +881 -0
  180. package/src/services/ro-totals.service.ts +1314 -0
  181. package/src/services/separate-wo-print.service.ts +396 -0
  182. package/src/services/service-history-pdf.service.ts +145 -0
  183. package/src/services/service-price-for-pricelist.ts +649 -0
  184. package/src/services/technician-pdf.service.ts +234 -0
  185. package/src/services/technician-print.service.ts +95 -0
  186. package/src/shared/header-footer-section/pdf-header-footer.section.ts +519 -0
  187. package/src/shared/header-footer-section/pdf-shared.utils.ts +46 -0
  188. package/src/shared/math-operations.ts +208 -0
  189. package/src/shared/party-details-section/pdf-party-details.section.ts +602 -0
  190. package/src/shared/shared-pdf.service.ts +3042 -0
  191. package/src/shared/shared-print.service.ts +879 -0
  192. package/src/shared/table-section/pdf-table.config.ts +8 -0
  193. package/src/shared/table-section/pdf-table.header.ts +396 -0
  194. package/src/shared/table-section/pdf-table.row.ts +248 -0
  195. package/src/shared/table-section/pdf-table.section.ts +447 -0
  196. package/src/shared/totals-section/pdf-totals.section.ts +921 -0
  197. package/src/shared/transactions-pdf.service.ts +191 -0
  198. package/src/shared/util.ts +101 -0
  199. package/src/tasks/meetings/meeting-pdf.ts +410 -0
  200. package/src/tasks/tasks/task-pdf.service.ts +238 -0
  201. package/src/tasks/tasks/task-reports-pdf.service.ts +313 -0
  202. package/src/tax/index.ts +86 -0
  203. package/src/tax/tax-calculator.ts +1025 -0
  204. package/src/tax/tax.types.ts +535 -0
  205. package/src/transaction-calculations/discounts-distribution.ts +343 -0
  206. package/src/transaction-calculations/index.ts +3 -0
  207. package/src/transaction-calculations/total-calculation.ts +443 -0
  208. package/src/transaction-calculations/transaction-calculation-engine.ts +903 -0
  209. package/src/utils/my-date.ts +111 -0
  210. package/src/utils/tr-utils.ts +104 -0
  211. package/tsconfig.json +2 -2
  212. /package/dist/{accounting/invoice/invoice-pdf.service.d.ts → shared/transactions-pdf.service.d.ts} +0 -0
@@ -0,0 +1,947 @@
1
+ import { Add } from "../../shared/math-operations";
2
+ import { SharedPDFService } from "../../shared/shared-pdf.service";
3
+ import { PrintSharedService } from "../../shared/shared-print.service";
4
+ import { MyDate } from "../../utils/my-date";
5
+ import { TrUtils } from "../../utils/tr-utils";
6
+
7
+
8
+
9
+ export class InvoiceLandscapePdfService {
10
+ FontSize: number = 8;
11
+
12
+ static GetInvoiceLandscapePrint(ROPrintData: any, numberofCopies: any, moreDiscDetails:boolean) {
13
+ var contents = [];
14
+ if (TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
15
+ contents.push(
16
+ this.CommonHeaderDetails(ROPrintData, null),
17
+ this.PreparesparePartsTable(ROPrintData),
18
+ this.CommonTotalDetails(ROPrintData, null, numberofCopies, moreDiscDetails)
19
+ );
20
+ } else {
21
+ numberofCopies.forEach((text: any, index: any) => {
22
+ contents.push(
23
+ this.CommonHeaderDetails(ROPrintData, text),
24
+ this.PreparesparePartsTable(ROPrintData),
25
+ this.CommonTotalDetails(ROPrintData, index, numberofCopies, moreDiscDetails)
26
+ );
27
+ });
28
+ }
29
+ var dd = {
30
+ info: {
31
+ title: this.GetFileName(ROPrintData),
32
+ },
33
+ background: function (currentPage: any, pageSize: any) {
34
+ return SharedPDFService.GetWatermarkImage(ROPrintData.Image, pageSize, ROPrintData.Entity.Wmark);
35
+ },
36
+ header: function (currentPage: any, pageCount: any) {
37
+ return { text: currentPage.toString() + ' of ' + pageCount, alignment: 'right', marginRight: 7, fontSize: 8, marginTop: 2 };
38
+ },
39
+ pageMargins: [10, 15, 10, 15],
40
+ pageOrientation: 'landscape',
41
+ content: contents,
42
+ styles: SharedPDFService.GetStyles()
43
+ };
44
+ return dd;
45
+ }
46
+
47
+ static GetFileName(ROPrintData: any) {
48
+ let fileName: string = ROPrintData.HeaderName;
49
+ if (!TrUtils.IsNull(ROPrintData.Product) && !TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
50
+ fileName = fileName + '-' + ROPrintData.Product.RegNo;
51
+ }
52
+ return fileName;
53
+ }
54
+
55
+ static GetAddress(Entity: any) {
56
+ return Entity.Adrs1 + ', ' + Entity.Adrs2 + ', ';
57
+ }
58
+ static GetPINandPhone(Entity: any) {
59
+ return Entity.City + '-' + Entity.PIN + ', Cell : ' + Entity.Phone;
60
+ }
61
+
62
+ static GetHeaderInfo(InvoicePDFData: any) {
63
+ let TaxInfo: any = [];
64
+ if (!TrUtils.IsEmpty(InvoicePDFData.Entity.GSTIN)) {
65
+ TaxInfo.push({ text: 'GSTIN : ' + InvoicePDFData.Entity.GSTIN, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: 'auto' },
66
+ );
67
+ }
68
+ // if (!TrUtils.IsEmpty(InvoicePDFData.Entity.PAN)) {
69
+ // TaxInfo.push({ text: 'PAN : ' + InvoicePDFData.Entity.PAN, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: 'auto' },
70
+ // );
71
+ // }
72
+ if (!TrUtils.IsEmpty(InvoicePDFData.Entity.DLNo)) {
73
+ TaxInfo.push({ text: 'D.L.NO : ' + InvoicePDFData.Entity.DLNo, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: '*' },
74
+ );
75
+ }
76
+
77
+ TaxInfo.push(this.GetBillofSupplyName(InvoicePDFData.Settings));
78
+
79
+
80
+ return TaxInfo;
81
+ }
82
+
83
+ static GetBillofSupplyName(Settings: any) {
84
+ return { text: Settings.Tax === 'BS' ? 'Bill of Supply' : null, alignment: 'right', marginRight: 5, marginTop: 2, marginBottom: 3, fontSize: 9, width: 'auto' };
85
+ }
86
+
87
+ static CommonHeaderDetails(ROPrintData: any, text: any) {
88
+ return [
89
+ { text: ROPrintData?.HeaderName, alignment: 'center', bold: true, fontSize: 10 },
90
+ { text: text, color: 'grey', alignment: 'right', width: 100, marginTop: (text !== null) ? -11 : 0, fontSize: 10 },
91
+ {
92
+ style: 'tableExample',
93
+ table: {
94
+ widths: ['*', '*', '*'],
95
+ body: [
96
+ [
97
+ {
98
+ stack: [
99
+ { text: ROPrintData.Entity.CName, alignment: 'center', bold: true, fontSize: 13 },
100
+ // this.GetAddresDetailsAndLogo(ROPrintData.Entity, ROPrintData.Image, ROPrintData.AColor, ROPrintData.HColor, text)
101
+ { text: this.GetAddress(ROPrintData.Entity), alignment: 'center', style: ['headerstyle'] },
102
+ { text: this.GetPINandPhone(ROPrintData.Entity), alignment: 'center', style: ['headerstyle'] },
103
+ {
104
+ stack: this.GetHeaderInfo(ROPrintData)
105
+ },
106
+ ]
107
+ },
108
+ SharedPDFService.GetCustomer(ROPrintData.Customer, ROPrintData.Type, ROPrintData.For,
109
+ ROPrintData.Product, ROPrintData.Settings, 'Customer Name & Address', false)
110
+ , SharedPDFService.GetVehicleDetails(ROPrintData.Type, ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate,
111
+ ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.IsProforma, ROPrintData.Settings, false, ROPrintData.BL, null, null, null, ROPrintData.DoS)],
112
+ ]
113
+ },
114
+ layout: PrintSharedService.LayOutStyle()
115
+
116
+ },
117
+ // this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
118
+ // SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate,
119
+ // ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For,
120
+ // ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp,
121
+ // ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, ROPrintData.BL),
122
+ // SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
123
+ // SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
124
+ // SharedPDFService.GetDisplayTable(),
125
+ ];
126
+ }
127
+
128
+ static MainHeading(CName: any, Entity: any, Image: any, HColor: any, CopyName: any) {
129
+ let headerstyle: string;
130
+ let MainHeaderStyle: any = SharedPDFService.GetMainHeaderStyleForLeftAlignHeader(CName);
131
+ // if (Header === 1) {
132
+ headerstyle = 'header2';
133
+ // } else {
134
+ // headerstyle = 'temp2header';
135
+ // }
136
+ return SharedPDFService.HeaderAlignmentBasedOnCondition(CName, Image, HColor, headerstyle, MainHeaderStyle, Entity, CopyName);
137
+ }
138
+
139
+ static GetAddresDetailsAndLogo(Entity: any, Image: any, AColor: any, HColor: any, text: any) {
140
+ let Details: any = [
141
+ {
142
+ stack: [
143
+ { columns: [this.MainHeading(Entity.CName, Entity, Image, HColor, text)] },
144
+ {
145
+ columns: [{
146
+ width: 150,
147
+ margin: [0, 0, 0, 5],
148
+ stack: SharedPDFService.GetHeader(Entity, HColor),
149
+ color: AColor,
150
+ style: 'header'
151
+ },
152
+ SharedPDFService.GetEntityDetails(Entity)]
153
+ }
154
+ ]
155
+ }
156
+ ]
157
+ if (!TrUtils.IsNull(Image)) {
158
+ // Details.unshift({ text: '', width: 120 });
159
+ if (Entity.CName.length < 28) {
160
+ Details[0].stack[0].columns.push({ text: '', width: 140 });
161
+ }
162
+ if (!TrUtils.IsNull(text)) {
163
+ Details[0].stack.unshift({ text: text, color: 'grey', alignment: 'right', width: 100, marginBottom: -15, fontSize: 10 });
164
+ }
165
+ Details.unshift({ image: Image, width: 120, height: 80 });
166
+ } else {
167
+ Details[0].stack[1].columns.unshift({ text: '', width: 130 });
168
+ if (!TrUtils.IsNull(text)) {
169
+ Details[0].stack.unshift({ text: text, color: 'grey', alignment: 'right', width: 100, marginBottom: -15, fontSize: 10 });
170
+ }
171
+ }
172
+
173
+ return Details;
174
+ }
175
+
176
+ static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any) {
177
+ return [
178
+ // SharedPDFService.MainHeading(Entity.CName, Entity.Header, Image, HColor, text),
179
+ SharedPDFService.GetMainHeader(Entity, Image, AColor, HColor, text),
180
+ SharedPDFService.GetPrintType(HeaderName),
181
+ SharedPDFService.HeaderAfterLine()
182
+ ];
183
+ }
184
+
185
+ static PreparesparePartsTable(ROPrintData: any) {
186
+ // console.log('ROPrintData', ROPrintData);
187
+ let List: any = [];
188
+ if (ROPrintData.Entity.Body === 1) {
189
+ for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
190
+ if (TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
191
+ ROPrintData.PrintInfo[i].Text = '';
192
+ }
193
+ // List.push(ROPrintData.PrintInfo[i].Text,
194
+ // this.GetLaborPartsTableForView(ROPrintData.PrintInfo[i].Items)
195
+ // );
196
+
197
+ }
198
+ } else {
199
+ if (ROPrintData.Entity.Body === 2) {
200
+ for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
201
+ if (TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
202
+ ROPrintData.PrintInfo[i].Text = '';
203
+ }
204
+ List.push(ROPrintData.PrintInfo[i].Text,
205
+ this.WithOutDiscountFieldTable(TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn,
206
+ ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn)
207
+ );
208
+
209
+ }
210
+ } else {
211
+ if (ROPrintData.Summary) {
212
+ // List.push('',
213
+ // this.GetLaborPartsTableForView(ROPrintData.Items)
214
+ // );
215
+ } else {
216
+ for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
217
+ if (TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
218
+ ROPrintData.PrintInfo[i].Text = '';
219
+ }
220
+ List.push(ROPrintData.PrintInfo[i].Text,
221
+ this.GetWithOutDiscAndTaxFieldHeader(TrUtils.Stringify(ROPrintData.PrintInfo[i].Items),
222
+ ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn)
223
+ );
224
+
225
+ }
226
+ }
227
+ }
228
+ }
229
+ return List;
230
+ }
231
+
232
+ static WithOutDiscountFieldTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any) {
233
+ if (Parts.length !== 0) {
234
+ if (PrintPartNo) {
235
+ return {
236
+ style: 'tableExample',
237
+ marginLeft: 20,
238
+ table: {
239
+ widths: [15, 67, 160, 25, 50, 60, 30, 53],
240
+ headerRows: 1,
241
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
242
+ },
243
+ layout: PrintSharedService.LayOutStyleanother()
244
+ };
245
+ } else {
246
+ return {
247
+ style: 'tableExample',
248
+ marginLeft: 20,
249
+ table: {
250
+ widths: [15, 215, 25, 50, 60, 45, 60],
251
+ headerRows: 1,
252
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
253
+ },
254
+ layout: PrintSharedService.LayOutStyleanother()
255
+ };
256
+ }
257
+ } else {
258
+ let a: any = '';
259
+ return a;
260
+ }
261
+ }
262
+
263
+ static GetWithOutDiscountFieldHeader1(permission: any, Body: any, ShowIGST: any, ShowDiscountColumn: any) {
264
+ let headersNames: any;
265
+ if (permission) {
266
+ headersNames = [[{ text: 'S.No.', rowSpan: 2, style: 'tableheader', lineHeight: 0.5 },
267
+ { text: 'Part No', rowSpan: 2, style: 'tableheader', lineHeight: 0.5 },
268
+ { text: 'Description', rowSpan: 2, style: 'tableheader', alignment: 'center', lineHeight: 0.5 },
269
+ { text: 'HSN/SAC', rowSpan: 2, style: 'tableheader', lineHeight: 1 },
270
+ { text: 'Batch No', rowSpan: 2, style: 'tableheader', lineHeight: 1 },
271
+ { text: 'Expiry', rowSpan: 2, style: 'tableheader', lineHeight: 1 },
272
+ { text: 'Qty', style: 'tableheader', rowSpan: 2, lineHeight: 0.5 },
273
+ { text: 'Offer Qty', style: 'tableheader', rowSpan: 2, lineHeight: 1 },
274
+ { text: 'M.R.P', style: 'tableheader', rowSpan: 2, lineHeight: 0.5, alignment: 'center', },
275
+ { text: 'Unit Price', style: 'tableheader', rowSpan: 2, lineHeight: 0.5, alignment: 'center', },
276
+ { text: 'Line Total', rowSpan: 2, lineHeight: 0.5, style: 'tabFleheader' }
277
+ ],
278
+ [{ text: '', Field: 'SNo', lineHeight: 0.5 }, { text: '', Field: 'MPN', lineHeight: 0.5 },
279
+ { text: '', Field: 'Desc', lineHeight: 0.5 }, { text: 'HSN/SAC', Field: 'HSN', lineHeight: 0.5 },
280
+ { text: '', Field: 'Batch', lineHeight: 0.5 }, { text: 'Expiry', Field: 'ExDate', lineHeight: 0.5 },
281
+ { text: '', Field: 'QtyAndUoM', lineHeight: 0.5 }, { text: '', Field: 'OfQty', lineHeight: 0.5 },
282
+ { text: '', Field: 'MRP', lineHeight: 0.5 }, { text: '', Field: 'UnPr', lineHeight: 0.5 },
283
+ { text: 'Line Total', Field: 'LineTotal', lineHeight: 0.5 }
284
+ ]
285
+ ];
286
+ let Count: number = 10;
287
+ if (ShowDiscountColumn) {
288
+ headersNames[0].splice(Count, 0, { text: 'Discount', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.8 });
289
+ headersNames[0].splice(Count + 1, 0, {});
290
+ headersNames[1].splice(Count, 0, { text: '%', alignment: 'center', style: 'tableheader', Field: 'Perc', type: 'percentage', lineHeight: 0.5 });
291
+ headersNames[1].splice(Count + 1, 0, { text: 'Rs', alignment: 'center', style: 'tableheader', Field: 'Disc', type: 'amount', lineHeight: 0.5 });
292
+ Count = 12;
293
+ }
294
+ if (ShowIGST) {
295
+ headersNames[0].splice(Count, 0, { text: 'IGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.8 });
296
+ headersNames[0].splice(Count + 1, 0, {});
297
+ headersNames[1].splice(Count, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'IGSTPerc', type: 'percentage', lineHeight: 0.8 });
298
+ headersNames[1].splice(Count + 1, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'IGSTAmt', type: 'amount', lineHeight: 0.5 });
299
+ } else {
300
+ headersNames[0].splice(Count, 0, { text: 'CGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.8 });
301
+ headersNames[0].splice(Count + 1, 0, {});
302
+ headersNames[1].splice(Count, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'CGSTPerc', type: 'percentage', lineHeight: 0.8 });
303
+ headersNames[1].splice(Count + 1, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'CGSTAmt', type: 'amount', lineHeight: 0.7 });
304
+ headersNames[0].splice(Count + 2, 0, { text: 'SGST/UTGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.8 });
305
+ headersNames[0].splice(Count + 3, 0, {});
306
+ headersNames[1].splice(Count + 2, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'SGSTPerc', type: 'percentage', lineHeight: 0.8 });
307
+ headersNames[1].splice(Count + 3, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'SGSTAmt', type: 'amount', lineHeight: 0.5 });
308
+ }
309
+ } else {
310
+ headersNames = [[{ text: 'S.No.', rowSpan: 2, style: 'tableheader', lineHeight: 0.6 },
311
+ { text: 'Description', rowSpan: 2, style: 'tableheader', alignment: 'center', lineHeight: 0.6 },
312
+ { text: 'HSN/SAC', rowSpan: 2, style: 'tableheader', lineHeight: 1 },
313
+ { text: 'Batch No', rowSpan: 2, style: 'tableheader', lineHeight: 1 },
314
+ { text: 'Expiry', rowSpan: 2, style: 'tableheader', lineHeight: 1 },
315
+ { text: 'Qty', style: 'tableheader', rowSpan: 2, lineHeight: 0.6 },
316
+ { text: 'Offer Qty', style: 'tableheader', rowSpan: 2, lineHeight: 1 },
317
+ { text: 'M.R.P', style: 'tableheader', rowSpan: 2, lineHeight: 0.5, alignment: 'center', },
318
+ { text: 'Unit Price', style: 'tableheader', rowSpan: 2, alignment: 'center', lineHeight: 0.6 },
319
+ { text: 'Line Total', rowSpan: 2, style: 'tableheader', lineHeight: 0.6 }
320
+ ],
321
+ [{ text: '', Field: 'SNo', lineHeight: 0.5 },
322
+ { text: '', Field: 'Desc', lineHeight: 0.5 }, { text: 'HSN/SAC', Field: 'HSN', lineHeight: 0.5 },
323
+ { text: '', Field: 'Batch', lineHeight: 0.5 }, { text: 'Expiry', Field: 'ExDate', lineHeight: 0.5 },
324
+ { text: '', Field: 'QtyAndUoM', lineHeight: 0.5 }, { text: '', Field: 'OfQty', lineHeight: 0.5 }, { text: '', Field: 'MRP', lineHeight: 0.5 },
325
+ { text: '', Field: 'UnPr', lineHeight: 0.5 },
326
+ { text: 'Line Total', Field: 'LineTotal', lineHeight: 0.5 }
327
+ ]];
328
+ let Count: number = 9;
329
+ if (ShowDiscountColumn) {
330
+ headersNames[0].splice(Count, 0, { text: 'Discount', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.8 });
331
+ headersNames[0].splice(Count + 1, 0, {});
332
+ headersNames[1].splice(Count, 0, { text: '%', alignment: 'center', style: 'tableheader', Field: 'Perc', type: 'percentage', lineHeight: 0.5 });
333
+ headersNames[1].splice(Count + 1, 0, { text: 'Rs', alignment: 'center', style: 'tableheader', Field: 'Disc', type: 'amount', lineHeight: 0.5 });
334
+ Count = 11;
335
+ }
336
+ if (ShowIGST) {
337
+ headersNames[0].splice(Count, 0, { text: 'IGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.8 });
338
+ headersNames[0].splice(Count + 1, 0, {});
339
+ headersNames[1].splice(Count, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'IGSTPerc', type: 'percentage', lineHeight: 0.8 });
340
+ headersNames[1].splice(Count + 1, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'IGSTAmt', type: 'amount', lineHeight: 0.5 });
341
+ } else {
342
+ headersNames[0].splice(Count, 0, { text: 'CGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.8 });
343
+ headersNames[0].splice(Count + 1, 0, {});
344
+ headersNames[1].splice(Count, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'CGSTPerc', type: 'percentage', lineHeight: 0.8 });
345
+ headersNames[1].splice(Count + 1, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'CGSTAmt', type: 'amount', lineHeight: 0.5 });
346
+ headersNames[0].splice(Count + 2, 0, { text: 'SGST/UTGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.8 });
347
+ headersNames[0].splice(Count + 3, 0, {});
348
+ headersNames[1].splice(Count + 2, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'SGSTPerc', type: 'percentage', lineHeight: 0.8 });
349
+ headersNames[1].splice(Count + 3, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'SGSTAmt', type: 'amount', lineHeight: 0.5 });
350
+ }
351
+ }
352
+ return headersNames;
353
+ }
354
+
355
+ static GetWithOutDiscountFieldHeader2(permission: any, Body: any, ShowDiscountColumn: any) {
356
+
357
+ let headersNames: any = [[
358
+ { text: 'Description', rowSpan: 2, style: 'tableheader', alignment: 'left', lineHeight: 0.5 },
359
+ { text: 'Batch No', rowSpan: 2, style: 'tableheader', lineHeight: 1 },
360
+ { text: 'Expiry', rowSpan: 2, style: 'tableheader', lineHeight: 1 },
361
+ { text: 'Qty', style: 'tableheader', rowSpan: 2, lineHeight: 0.5 },
362
+ { text: 'Offer Qty', style: 'tableheader', rowSpan: 2, lineHeight: 1 },
363
+ { text: 'M.R.P', style: 'tableheader', rowSpan: 2, lineHeight: 0.5, alignment: 'center', },
364
+ { text: 'Unit Price', style: 'tableheader', rowSpan: 2, lineHeight: 0.5, alignment: 'right', },
365
+ { text: 'Line Total', rowSpan: 2, lineHeight: 0.5, style: 'tableheader' }
366
+ ],
367
+ [
368
+ { text: '', Field: 'Desc', lineHeight: 0.5 },
369
+ { text: '', Field: 'Batch', lineHeight: 0.5 },
370
+ { text: 'Expiry', Field: 'ExDate', lineHeight: 0.5 },
371
+ { text: '', Field: 'QtyAndUoM', lineHeight: 0.5 },
372
+ { text: '', Field: 'OfQty', lineHeight: 0.5 },
373
+ { text: '', Field: 'MRP', lineHeight: 0.5 },
374
+ { text: '', Field: 'UnPr', lineHeight: 0.5 },
375
+ { text: 'Line Total', Field: 'LineTotal', lineHeight: 0.5 }
376
+ ]];
377
+ if (permission) {
378
+ let sno = { text: 'S.No.', rowSpan: 2, style: 'tableheader', lineHeight: 0.5 };
379
+ let MPN = { text: 'Part No', rowSpan: 2, style: 'tableheader', lineHeight: 0.5 };
380
+ let sno1 = { text: '', Field: 'SNo', lineHeight: 0.5 };
381
+ let MPN1 = { text: '', Field: 'MPN', lineHeight: 0.5 };
382
+ headersNames[0].unshift(sno, MPN);
383
+ headersNames[1].unshift(sno1, MPN1);
384
+ if (ShowDiscountColumn) {
385
+ headersNames[0].splice(9, 0, { text: 'Discount', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
386
+ headersNames[0].splice(10, 0, {});
387
+ headersNames[1].splice(9, 0, { text: '%', alignment: 'center', style: 'tableheader', Field: 'Perc', type: 'percentage', lineHeight: 0.5 });
388
+ headersNames[1].splice(10, 0, { text: 'Rs', alignment: 'center', style: 'tableheader', Field: 'Disc', type: 'amount', lineHeight: 0.5 });
389
+ }
390
+ } else {
391
+ let sno = { text: 'S.No.', rowSpan: 2, style: 'tableheader', lineHeight: 0.5 };
392
+ let sno1 = { text: '', Field: 'SNo', lineHeight: 0.5 };
393
+ headersNames[0].unshift(sno);
394
+ headersNames[1].unshift(sno1);
395
+ if (ShowDiscountColumn) {
396
+ headersNames[0].splice(8, 0, { text: 'Discount', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
397
+ headersNames[0].splice(9, 0, {});
398
+ headersNames[1].splice(8, 0, { text: '%', alignment: 'center', style: 'tableheader', Field: 'Perc', type: 'percentage', lineHeight: 0.5 });
399
+ headersNames[1].splice(9, 0, { text: 'Rs', alignment: 'center', style: 'tableheader', Field: 'Disc', type: 'amount', lineHeight: 0.5 });
400
+ }
401
+ }
402
+ return headersNames;
403
+ }
404
+
405
+ static GetWithOutDiscountFieldHeader(permission: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any) {
406
+ if (Body === 2) {
407
+ let headersNames: any = [{ text: 'Description', style: 'tableheader', Field: 'Desc' },
408
+ { text: 'Qty', style: 'tableheader', Field: 'QtyAndUoM' },
409
+ { text: 'Unit Price', style: 'tableheader', Field: 'UnPr' },
410
+ { text: 'Labor Charges', style: 'tableheader', Field: 'Price' },
411
+ { text: 'Tax', style: 'tableheader', Field: 'TaxAmount' },
412
+ { text: 'Line Total', style: 'tableheader', Field: 'LineTotal' }];
413
+ if (permission) {
414
+ let sno = { text: 'S.No.', style: 'tableheader', Field: 'SNo' };
415
+ let MPN = { text: 'Part No', style: 'tableheader', Field: 'MPN' };
416
+ headersNames.unshift(sno, MPN);
417
+ } else {
418
+ let sno = { text: 'S.No.', style: 'tableheader', Field: 'SNo' };
419
+ headersNames.unshift(sno);
420
+ }
421
+ return headersNames;
422
+ } else {
423
+ if (ShowTaxColumn) {
424
+ return this.GetWithOutDiscountFieldHeader1(permission, Body, ShowIGST, ShowDiscountColumn);
425
+ } else {
426
+ return this.GetWithOutDiscountFieldHeader2(permission, Body, ShowDiscountColumn);
427
+ }
428
+ }
429
+ }
430
+
431
+ static BuildTableBodyForLaborAndParts(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any) {
432
+ var body: any = [];
433
+ let columns: any = this.GetWithOutDiscountFieldHeader(PrintPartNo, ShowTaxColumn, Body, ShowIGST, ShowDiscountColumn);
434
+ // if (ShowTaxColumn) {
435
+ for (let i = 0; i < columns.length; i++) {
436
+ body.push(columns[i]);
437
+ }
438
+ columns = columns[1];
439
+ // } else {
440
+ // body.push(columns);
441
+ // }
442
+
443
+ // console.log('balaraju');
444
+ let DummyOps: any = [];
445
+
446
+ if (Parts.length !== 0) {
447
+ // let dummypartadding1: any = {};
448
+ // dummypartadding1.SNo = '';
449
+ // dummypartadding1.Desc = 'Spare Parts';
450
+ // dummypartadding1.Qty = '';
451
+ // dummypartadding1.UnPr = '';
452
+ // dummypartadding1.LineTotal = '';
453
+ // Parts.unshift(dummypartadding1);
454
+ if (Parts.length <= 15) {
455
+ let Count: number = 18 - Parts.length;
456
+ for (let i = 0; i < Count; i++) {
457
+ Parts.push({});
458
+ }
459
+ } else {
460
+ let Count: number = 58 - Parts.length;
461
+ for (let i = 0; i < Count; i++) {
462
+ Parts.push({});
463
+ }
464
+ }
465
+ }
466
+
467
+ let SNo: number = 1;
468
+ Parts.forEach((part: any) => {
469
+ // console.log('part', part);
470
+ var dataRow: any = [];
471
+ columns.forEach((column: any) => {
472
+ if (
473
+ (!TrUtils.IsFixedZero(part[column.Field]) && !TrUtils.IsNull(part[column.Field]))
474
+ || (column.text === 'Line Total' || column.text === 'Expiry')) {
475
+ if (part[column.Field] === 'Spare Parts') {
476
+ dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
477
+ } else {
478
+ if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
479
+ && TrUtils.CheckInvalidSelect(part.TCode))) {
480
+ part[column.Field] = '';
481
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
482
+ } else {
483
+ if (column.text === 'Line Total' || column.Field === 'UnPr' || column.Field === 'MRP' || column.Field === 'Batch' || column.Field === 'ExDate' || column.Field === 'QtyAndUoM'
484
+ || column.text === 'Tax' || column.Field === 'Disc' || column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt'
485
+ || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
486
+ if (column.Field === 'Disc') {
487
+ if (column.type === 'percentage') {
488
+ if (!TrUtils.IsEmpty(part[column.Field])) {
489
+ dataRow.push({ text: part[column.Field].toString(), noWrap: true });
490
+ } else {
491
+ dataRow.push({ text: '', noWrap: true });
492
+ }
493
+ } else {
494
+ if (!TrUtils.IsZero(part[column.Field])) {
495
+ dataRow.push({ text: part[column.Field].toString(), noWrap: true });
496
+ } else {
497
+ dataRow.push({ text: '', noWrap: true });
498
+ }
499
+ }
500
+ } else {
501
+ if (column.Field === 'Batch') {
502
+ if (!TrUtils.IsNull(part[column.Field])) {
503
+ dataRow.push({ text: part[column.Field].BN, nowrap: true });
504
+ } else {
505
+ dataRow.push({ text: '', noWrap: true });
506
+ }
507
+ } else if (column.Field === 'ExDate') {
508
+ if (!TrUtils.IsNull(part['Batch'])) {
509
+ dataRow.push({ text: MyDate.ConvertUTCDateToReadableExDate(part['Batch'].ExDt), nowrap: true });
510
+ } else {
511
+ dataRow.push({ text: '', noWrap: true });
512
+ }
513
+ } else {
514
+ if (!TrUtils.IsZero(part[column.Field])) {
515
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
516
+ } else {
517
+ dataRow.push({ text: '', noWrap: true });
518
+ }
519
+ }
520
+
521
+ }
522
+ } else {
523
+ // dataRow.push(part[column.Field].toString());
524
+ if (TrUtils.IsNull(part[column.Field])) {
525
+ part[column.Field] = '';
526
+ }
527
+ if (column.Field === 'Desc') {
528
+ let DescData: any = [];
529
+ DescData.push(part[column.Field].toString());
530
+ if (!TrUtils.IsEmpty(part['EDesc'])) {
531
+ DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
532
+ }
533
+ dataRow.push({ stack: DescData });
534
+ } else {
535
+ dataRow.push({ text: part[column.Field].toString() });
536
+ }
537
+ }
538
+ }
539
+ }
540
+ } else {
541
+ if (column.Field === 'SNo' && !TrUtils.IsNull(part.Desc)) {
542
+ part[column.Field] = SNo;
543
+ SNo = SNo + 1;
544
+ } else {
545
+ part[column.Field] = '';
546
+ }
547
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
548
+ }
549
+ });
550
+
551
+ body.push(dataRow);
552
+ });
553
+
554
+ // if (Labor.length !== 0) {
555
+ // let dummypartadding1: any = {};
556
+ // dummypartadding1.SNo = '';
557
+ // dummypartadding1.Desc = 'Labor';
558
+ // dummypartadding1.Qty = '';
559
+ // dummypartadding1.UnPr = '';
560
+ // dummypartadding1.LineTotal = '';
561
+ // Labor.unshift(dummypartadding1);
562
+ // // DummyOps.unshift(dummypartadding1);
563
+ // }
564
+ // if (Body === 2) {
565
+ // for (let i = 0; i < Labor.length; i++) {
566
+ // Labor[i].UnPr = '';
567
+ // }
568
+ // }
569
+
570
+ // Labor.forEach((Ops: any) => {
571
+ // var dataRow: any = [];
572
+ // columns.forEach((column: any) => {
573
+ // if ((!TrUtils.IsFixedZero(Ops[column.Field]) && !TrUtils.IsNull(Ops[column.Field]))
574
+ // || (column.text === 'Line Total')) {
575
+ // if (Ops[column.Field] === 'Labor') {
576
+ // dataRow.push({ text: Ops[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
577
+ // } else {
578
+ // if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
579
+ // && TrUtils.CheckInvalidSelect(Ops.TCode))) {
580
+ // Ops[column.Field] = '';
581
+ // dataRow.push({ text: Ops[column.Field].toString(), alignment: 'center' });
582
+ // } else {
583
+ // if (column.text === 'Line Total' || column.Field === 'Price' || column.text === 'Tax' || column.Field === 'UnPr'
584
+ // || column.Field === 'QtyAndUoM' || column.Field === 'Disc' || column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt'
585
+ // || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
586
+ // if (column.Field === 'Disc') {
587
+ // if (column.type === 'percentage') {
588
+ // if (Ops.Perc && !TrUtils.IsZero(Ops[column.Field])) {
589
+ // dataRow.push({ text: Ops[column.Field].toString(), noWrap: true });
590
+ // } else {
591
+ // dataRow.push({ text: '', noWrap: true });
592
+ // }
593
+ // } else {
594
+ // if (!Ops.Perc && !TrUtils.IsZero(Ops[column.Field])) {
595
+ // dataRow.push({ text: Ops[column.Field].toString(), noWrap: true });
596
+ // } else {
597
+ // dataRow.push({ text: '', noWrap: true });
598
+ // }
599
+ // }
600
+ // } else {
601
+ // if (!TrUtils.IsZero(Ops[column.Field])) {
602
+ // dataRow.push({ text: Ops[column.Field].toString(), alignment: 'right', nowrap: true });
603
+ // } else {
604
+ // dataRow.push({ text: '', noWrap: true });
605
+ // }
606
+ // }
607
+
608
+ // } else {
609
+ // dataRow.push(Ops[column.Field].toString());
610
+ // }
611
+ // }
612
+ // }
613
+ // } else {
614
+ // if (column.Field === 'SNo') {
615
+ // Ops[column.Field] = SNo;
616
+ // SNo = SNo + 1;
617
+ // } else {
618
+ // Ops[column.Field] = '';
619
+ // }
620
+ // dataRow.push({ text: Ops[column.Field].toString(), alignment: 'center' });
621
+ // }
622
+ // });
623
+ // body.push(dataRow);
624
+ // });
625
+ return body;
626
+ }
627
+
628
+ static GetWithOutDiscAndTaxFieldHeader(Parts: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any) {
629
+ if (Parts.length !== 0) {
630
+ if (ShowTaxColumn) {
631
+ return this.TaxDataTable(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn);
632
+ } else {
633
+ if (ConsolidateGST) {
634
+ return this.ConsolidateDataTable(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn);
635
+ } else {
636
+ return this.NoTaxDataTable(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn);
637
+ }
638
+ }
639
+ } else {
640
+ let a: any = '';
641
+ return a;
642
+ }
643
+ }
644
+
645
+ static TaxTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any) {
646
+ if (PrintPartNo) {
647
+ if (ShowIGST) {
648
+ if (ShowDiscountColumn) {
649
+ return [24, 50, '*', 50, 35, 35, 30, 25, 40, 35, 20, 35, 20, 35, 45];
650
+ } else {
651
+ return [24, 50, '*', 50, 35, 35, 30, 25, 40, 40, 20, 35, 51];
652
+ }
653
+ } else {
654
+ if (ShowDiscountColumn) {
655
+ return [24, 45, '*', 50, 35, 35, 30, 22, 40, 40, 20, 34, 20, 32, 20, 32, 48];
656
+ } else {
657
+ return [24, 45, '*', 50, 35, 35, 30, 22, 40, 40, 20, 32, 20, 32, 54];
658
+ }
659
+ }
660
+ } else {
661
+ if (ShowIGST) {
662
+ if (ShowDiscountColumn) {
663
+ return [24, '*', 50, 41, 35, 30, 25, 40, 40, 20, 35, 20, 35, 41];
664
+ } else {
665
+ return [24, '*', 50, 50, 35, 30, 25, 40, 40, 20, 40, 50];
666
+ }
667
+ } else {
668
+ if (ShowDiscountColumn) {
669
+ return [24, '*', 50, 45, 35, 30, 22, 40, 40, 20, 34, 20, 35, 20, 35, 45];
670
+ } else {
671
+ return [24, '*', 50, 50, 35, 30, 22, 40, 40, 20, 35, 20, 35, 50];
672
+ }
673
+ }
674
+ }
675
+ }
676
+
677
+ static TaxDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any) {
678
+ if (PrintPartNo) {
679
+ if (ShowIGST) {
680
+ return {
681
+ style: 'tableExample',
682
+ marginTop: -6,
683
+ table: {
684
+ widths: this.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn),
685
+ // headerRows: 2,
686
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
687
+ },
688
+ layout: PrintSharedService.LayOutStyle()
689
+ };
690
+ } else {
691
+ return {
692
+ style: 'tableExample',
693
+ marginTop: -6,
694
+ table: {
695
+ widths: this.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn),
696
+ // headerRows: 2,
697
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
698
+ },
699
+ layout: PrintSharedService.LayOutStyle()
700
+ };
701
+ }
702
+
703
+ } else {
704
+ if (ShowIGST) {
705
+ return {
706
+ style: 'tableExample',
707
+ marginTop: -6,
708
+ table: {
709
+ widths: this.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn),
710
+ // headerRows: 2,
711
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
712
+ },
713
+ layout: PrintSharedService.LayOutStyle()
714
+ };
715
+ } else {
716
+ return {
717
+ style: 'tableExample',
718
+ marginTop: -6,
719
+ table: {
720
+ widths: this.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn),
721
+ // headerRows: 2,
722
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
723
+ },
724
+ layout: PrintSharedService.LayOutStyle()
725
+ };
726
+ }
727
+
728
+ }
729
+ }
730
+
731
+ static LayOutStyle() {
732
+ return {
733
+ hLineWidth: function (i: any, node: any) {
734
+ return (i === 0 || i === 1 || i === 2) ? 0.7 : 0;
735
+ },
736
+ vLineWidth: function (i: any, node: any) {
737
+ return (i === 0 || i === 1 || i === 2) ? 0.7 : 0.7;
738
+ },
739
+ hLineColor: function (i: any, node: any) {
740
+ let color;
741
+ if (i === 0 || i === node.table.body.length) {
742
+ color = 'black';
743
+ } else {
744
+ if (i === 1) {
745
+ color = 'gray';
746
+ } else {
747
+ color = 'lightgray';
748
+ }
749
+ }
750
+
751
+ return color;
752
+ },
753
+ vLineColor: function (i: any, node: any) {
754
+ let color;
755
+ if (i === 0 || i === node.table.widths.length) {
756
+ color = 'black';
757
+ } else {
758
+ color = 'lightgray';
759
+ }
760
+ return color;
761
+ },
762
+ };
763
+ }
764
+
765
+ static ConsolidateDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any) {
766
+ if (PrintPartNo) {
767
+ return {
768
+ style: 'tableExample',
769
+ marginTop: -6,
770
+ table: {
771
+ widths: this.WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo),
772
+ // headerRows: 1,
773
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
774
+ },
775
+ layout: PrintSharedService.LayOutStyle()
776
+ };
777
+ } else {
778
+ return {
779
+ style: 'tableExample',
780
+ marginTop: -6,
781
+ table: {
782
+ widths: this.WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo),
783
+ // headerRows: 1,
784
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
785
+ },
786
+ layout: PrintSharedService.LayOutStyle()
787
+ };
788
+ }
789
+ }
790
+
791
+ static WidthForInsuranceOrNot(ShowDiscountColumn: any, PrintPartNo: boolean) {
792
+ // console.log('ShowDiscountColumn', ShowDiscountColumn);
793
+ if (PrintPartNo) {
794
+ if (ShowDiscountColumn) {
795
+ return [24, 70, '*', 45, 45, 25, 25, 60, 60, 45, 45, 50];
796
+ } else {
797
+ return [25, 70, '*', 45, 45, 35, 35, 60, 60, 80];
798
+ }
799
+ } else {
800
+ if (ShowDiscountColumn) {
801
+ return [25, '*', 50, 50, 50, 50, 70, 70, 70, 70, 70];
802
+ } else {
803
+ return [25, '*', 45, 45, 40, 40, 60, 60, 80];
804
+ }
805
+ }
806
+
807
+ }
808
+
809
+ static NoTaxDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any) {
810
+ if (PrintPartNo) {
811
+ return {
812
+ style: 'tableExample',
813
+ marginTop: -6,
814
+ table: {
815
+ widths: this.WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo),
816
+ // headerRows: 1,
817
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
818
+ },
819
+ layout: PrintSharedService.LayOutStyle()
820
+ };
821
+ } else {
822
+ return {
823
+ style: 'tableExample',
824
+ marginTop: -6,
825
+ table: {
826
+ widths: this.WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo),
827
+ // headerRows: 1,
828
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
829
+ },
830
+ layout: PrintSharedService.LayOutStyle()
831
+ };
832
+ }
833
+ }
834
+
835
+ static CommonTotalDetails(ROPrintData: any, index: any, numberofCopies: any, moreDiscDetails:boolean) {
836
+ let CommonDetails = [
837
+ // SharedPDFService.GetFinalTotalDetails('0.00', '0.00', '0.00',
838
+ // '0.00', '0.00', '0.00', ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn,
839
+ // ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST,
840
+ // ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts,
841
+ // '0.00', ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For,
842
+ // ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal,
843
+ // ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn,
844
+ // TrUtils.isTaxable(ROPrintData.Settings.Tax), '0.00',
845
+ // ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, null),
846
+ this.TotalDetails(ROPrintData, moreDiscDetails, ROPrintData.Entity.DecimalsNumber),
847
+
848
+ // SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts),
849
+ SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
850
+ // SharedPDFService.GetUnderLine(),
851
+ this.GetSignatures(ROPrintData.Entity.CName, ROPrintData.Type, ROPrintData.For),
852
+ ];
853
+ // if (ROPrintData.Type !== 'Invoice') {
854
+ // CommonDetails.splice(2, 0, SharedPDFService.GetUnderLine());
855
+ // }
856
+ if (!TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
857
+ CommonDetails.push({ text: '', pageBreak: 'after' })
858
+ }
859
+ return CommonDetails;
860
+ }
861
+
862
+ static GetSignatures(CName: any, For: any, Type: any) {
863
+ return {
864
+ columns: [{
865
+ stack: [
866
+ this.CompanyName(CName),
867
+ { columns: [this.Authorizedsignature(), SharedPDFService.SurveyorSignature(For, Type), this.CustomerSignature()] }
868
+ ]
869
+ }],
870
+ };
871
+ }
872
+
873
+ static CompanyName(CName: any) {
874
+ return {
875
+ style: 'forCompany1',
876
+ text: ['For ', { text: CName, bold: 'true' }],
877
+ };
878
+ }
879
+
880
+ static Authorizedsignature() {
881
+ return {
882
+ style: 'Sign1',
883
+ text: ['Authorized Signatory'],
884
+ };
885
+ }
886
+
887
+ static CustomerSignature() {
888
+ return {
889
+ style: 'Sign1',
890
+ text: ['Customer Signature'], marginLeft: 90
891
+ };
892
+ }
893
+
894
+ static TotalDetails(ROPrintData: any, moreDiscDetails:boolean, DecimalsNumber: number) {
895
+ let totalDisc: any;
896
+ let totalTax: any;
897
+ if (!ROPrintData.Consolidate) {
898
+ totalTax = TrUtils.FixPriceValue(Add(Number(ROPrintData.CustLaborITax), Number(ROPrintData.CustPartITax), DecimalsNumber));
899
+ if (TrUtils.isTaxable(ROPrintData.Settings.Tax)) {
900
+ totalDisc = TrUtils.FixPriceValue(Add(Number(ROPrintData.CustLaborDiscTotal), Number(ROPrintData.CustPartsDiscTotal), DecimalsNumber));
901
+ } else {
902
+ totalDisc = TrUtils.FixPriceValue(Add(Number(ROPrintData.CustLaborDiscTotal), Number(ROPrintData.CustPartsDiscTotal), DecimalsNumber));
903
+ }
904
+ }
905
+ return [
906
+ {
907
+ style: 'tableExample',
908
+ marginTop: -6,
909
+ table: {
910
+ widths: ['*', '*', '*'],
911
+ heights: [105, 105, 105],
912
+ body: [
913
+ [
914
+ SharedPDFService.PartsTaxAmounts1(ROPrintData.TaxSummary, true, ROPrintData.ShowIGST,
915
+ ROPrintData.ShowTaxColumn),
916
+ // SharedPDFService.GetTaxOnParts(ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST,
917
+ // ROPrintData.CustPartSGST, ROPrintData.ShowAccParts, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn,
918
+ // ROPrintData.ShowTaxColumn, ROPrintData.From),
919
+ SharedPDFService.GetBankDetials(ROPrintData.Entity.Bank, ROPrintData.Entity.PrBank, ROPrintData.Entity.UPIPhone),
920
+
921
+ {
922
+ columns: [{ text: '', width: moreDiscDetails?153:175 }, SharedPDFService.GrandTotal(ROPrintData,'0.00', ROPrintData.CustPartsTotalBeforeDisc, totalDisc, totalTax, ROPrintData.For,
923
+ ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, null, ROPrintData.Consolidate, null, moreDiscDetails, ROPrintData.Entity.DecimalsNumber)]
924
+ }
925
+
926
+
927
+ // SharedPDFService.GetCustomer(ROPrintData.Customer, ROPrintData.Type, ROPrintData.For,
928
+ // ROPrintData.Product, ROPrintData.Settings, 'Customer Name & Address', false)
929
+ // , SharedPDFService.GetVehicleDetails(ROPrintData.Type, ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate,
930
+ // ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.IsProforma, ROPrintData.Settings, false, ROPrintData.BL)
931
+ ],
932
+ ]
933
+ },
934
+ layout: PrintSharedService.LayOutStyle()
935
+ },
936
+ // this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
937
+ // SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate,
938
+ // ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For,
939
+ // ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp,
940
+ // ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, ROPrintData.BL),
941
+ // SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
942
+ // SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
943
+ // SharedPDFService.GetDisplayTable(),
944
+ ];
945
+ }
946
+
947
+ }