shareneus 1.0.5

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 (125) hide show
  1. package/dist/aggregation/aggregation.js +60 -0
  2. package/dist/enums/cache-enums.js +37 -0
  3. package/dist/enums/code-enums.js +288 -0
  4. package/dist/enums/enums.js +362 -0
  5. package/dist/enums/industry-enums.js +24 -0
  6. package/dist/excel-files/GSTR-RO-excel.service.js +935 -0
  7. package/dist/excel-files/GSTR1-excel.service.js +295 -0
  8. package/dist/excel-files/GSTR2-excel.service.js +295 -0
  9. package/dist/excel-files/analysis-excel.service.js +297 -0
  10. package/dist/excel-files/category-wise-item-excel.service.js +274 -0
  11. package/dist/excel-files/cust-balance-excel.service.js +287 -0
  12. package/dist/excel-files/cust-wise-sales-details.js +320 -0
  13. package/dist/excel-files/cust-wise-sales-summary-excel.service.js +302 -0
  14. package/dist/excel-files/expiring-drugs-excel.service.js +292 -0
  15. package/dist/excel-files/insurance-expire-excel.service.js +301 -0
  16. package/dist/excel-files/invoice-wise-excel.service.js +857 -0
  17. package/dist/excel-files/item-wise-doctor-sale-excel.service.js +258 -0
  18. package/dist/excel-files/item-wise-mout-details.js +292 -0
  19. package/dist/excel-files/item-wise-mout-summary.js +286 -0
  20. package/dist/excel-files/items-wise-sales-excel.service.js +314 -0
  21. package/dist/excel-files/manf-wise-sales-excel.service.js +276 -0
  22. package/dist/excel-files/operator-wise-details.js +265 -0
  23. package/dist/excel-files/operator-wise-summary.js +266 -0
  24. package/dist/excel-files/payment-receive-excel.service.js +225 -0
  25. package/dist/excel-files/payments-made-excel.service.js +302 -0
  26. package/dist/excel-files/repair-orders-excel.service.js +255 -0
  27. package/dist/excel-files/sa-wise-labor-sales-excel.service.js +232 -0
  28. package/dist/excel-files/sa-wise-part-sales-excel.service.js +232 -0
  29. package/dist/excel-files/sale-summary-excel.service.js +326 -0
  30. package/dist/excel-files/sales-by-service-details-excel.service.js +1 -0
  31. package/dist/excel-files/sales-by-service-summary-excel.service.js +422 -0
  32. package/dist/excel-files/scheduled-drug-summary-excel.service.js +367 -0
  33. package/dist/excel-files/scheduled-drugs-excel.service.js +366 -0
  34. package/dist/excel-files/spares-issue-excel.service.js +492 -0
  35. package/dist/excel-files/stock-excel.service.js +283 -0
  36. package/dist/excel-files/tally-sales-import.service.js +765 -0
  37. package/dist/excel-files/ven-balance-excel.service.js +293 -0
  38. package/dist/index.js +237 -0
  39. package/dist/services/analysis-pdf.service.js +105 -0
  40. package/dist/services/appointment-total.service.js +253 -0
  41. package/dist/services/auto-sales-receipt-pdf.service.js +539 -0
  42. package/dist/services/category-wise-item-pdf.service.js +98 -0
  43. package/dist/services/checklist-pdf.js +140 -0
  44. package/dist/services/checklists-pdf.js +124 -0
  45. package/dist/services/cn-print.service.js +211 -0
  46. package/dist/services/consultation-fee-receipt.service.js +378 -0
  47. package/dist/services/consultation-full-pdf.service.js +220 -0
  48. package/dist/services/consultation-pdf.service.js +360 -0
  49. package/dist/services/credit-note-pdf.service.js +578 -0
  50. package/dist/services/credit-note-totals.service.js +328 -0
  51. package/dist/services/cust-wise-sales-details-pdf.service.js +118 -0
  52. package/dist/services/cust-wise-sales-summary-pdf.service.js +111 -0
  53. package/dist/services/customer-balances-pdf.service.js +169 -0
  54. package/dist/services/dc-landscape-pdf.service.js +903 -0
  55. package/dist/services/dc-landscape-without-price-pdf.service.js +853 -0
  56. package/dist/services/dc-without-price-pdf.service.js +489 -0
  57. package/dist/services/debit-note-pdf.service.js +673 -0
  58. package/dist/services/debit-note-print.service.js +234 -0
  59. package/dist/services/debit-note-totals.service.js +293 -0
  60. package/dist/services/delivery-challan-pdf.service.js +434 -0
  61. package/dist/services/delivery-challan-print.service.js +177 -0
  62. package/dist/services/delivery-challan-totals.js +339 -0
  63. package/dist/services/equipment-design-pdf.service.js +144 -0
  64. package/dist/services/est.print-service.js +1053 -0
  65. package/dist/services/expiring-drugs-pdf.service.js +156 -0
  66. package/dist/services/hc-inv-pdf.service.js +837 -0
  67. package/dist/services/insurance-expire-pdf.service.js +99 -0
  68. package/dist/services/inv-pdf.service.js +785 -0
  69. package/dist/services/inv-print.service.js +415 -0
  70. package/dist/services/invoice-landscape-pdf.service.js +909 -0
  71. package/dist/services/invoice-total.service.js +659 -0
  72. package/dist/services/issue-parts-pdf.service.js +763 -0
  73. package/dist/services/item-detais-pdf.js +136 -0
  74. package/dist/services/item-wise-doctor-sale-pdf.service.js +164 -0
  75. package/dist/services/item-wise-mout-details-pdf.js +107 -0
  76. package/dist/services/item-wise-mout-summary-pdf.js +99 -0
  77. package/dist/services/item-wise-sales-pdf.service.js +178 -0
  78. package/dist/services/manf-wise-sales-pdf.service.js +173 -0
  79. package/dist/services/meeting-pdf.js +369 -0
  80. package/dist/services/mout-pdf.service.js +503 -0
  81. package/dist/services/operator-wise-details-pdf.service.js +103 -0
  82. package/dist/services/operator-wise-summary-pdf.js +101 -0
  83. package/dist/services/pack-ship-pdf.service.js +105 -0
  84. package/dist/services/pack-ship-print.service.js +167 -0
  85. package/dist/services/payment-pdf.service.js +373 -0
  86. package/dist/services/payment-report-pdf.service.js +106 -0
  87. package/dist/services/po-totals.service.js +279 -0
  88. package/dist/services/pos-receipt-pdf.js +438 -0
  89. package/dist/services/purchase-order-pdf.service.js +924 -0
  90. package/dist/services/purchase-order-print.service.js +150 -0
  91. package/dist/services/purchase-order-totals.service.js +280 -0
  92. package/dist/services/receipt-print.service.js +50 -0
  93. package/dist/services/reorder-point-pdf.service.js +151 -0
  94. package/dist/services/repair-orders-pdf.service.js +172 -0
  95. package/dist/services/ro-pdf.service.js +1764 -0
  96. package/dist/services/ro-print-service.js +737 -0
  97. package/dist/services/ro-totals.service.js +1241 -0
  98. package/dist/services/sales-by-service-pdf.service.js +116 -0
  99. package/dist/services/sales-pdf.service.js +630 -0
  100. package/dist/services/sales-print.service.js +305 -0
  101. package/dist/services/sales-receipt-pdf.service.js +611 -0
  102. package/dist/services/sales-receipt-print.service.js +425 -0
  103. package/dist/services/sales-totals.service.js +339 -0
  104. package/dist/services/scheduled-drug-pdf.service.js +176 -0
  105. package/dist/services/scheduled-drug-summary-pdf.service.js +188 -0
  106. package/dist/services/separate-wo-print.service.js +351 -0
  107. package/dist/services/shared-inv-pdf.service.js +763 -0
  108. package/dist/services/shared-pdf.service.js +2569 -0
  109. package/dist/services/shared-print.service.js +885 -0
  110. package/dist/services/task-pdf.service.js +220 -0
  111. package/dist/services/task-reports-pdf.service.js +296 -0
  112. package/dist/services/technician-pdf.service.js +238 -0
  113. package/dist/services/technician-print.service.js +87 -0
  114. package/dist/services/transfer-order-pdf.service.js +139 -0
  115. package/dist/services/vendor-balances-pdf.service.js +101 -0
  116. package/dist/services/vendor-credit-note-pdf.service.js +1007 -0
  117. package/dist/services/vendor-credit-note-print.service.js +104 -0
  118. package/dist/services/vendor-credit-note-totals.service.js +327 -0
  119. package/dist/services/vendor-debit-note-pdf.service.js +561 -0
  120. package/dist/services/vendor-debit-note-print.service.js +245 -0
  121. package/dist/services/vendor-debit-note-totals.service.js +305 -0
  122. package/dist/utils/my-date.js +652 -0
  123. package/dist/utils/tr-utils.js +354 -0
  124. package/package.json +24 -0
  125. package/tsconfig.json +109 -0
@@ -0,0 +1,673 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DebitNotePdfService = void 0;
4
+ const tr_utils_1 = require("../utils/tr-utils");
5
+ const shared_pdf_service_1 = require("./shared-pdf.service");
6
+ const shared_print_service_1 = require("./shared-print.service");
7
+ class DebitNotePdfService {
8
+ constructor() {
9
+ this.FontSize = 8;
10
+ }
11
+ static GetInvoicePrint(ROPrintData, win) {
12
+ var dd = {
13
+ info: {
14
+ title: this.GetFileName(ROPrintData),
15
+ },
16
+ background: function (currentPage, pageSize) {
17
+ return shared_pdf_service_1.SharedPDFService.GetWatermarkImage(ROPrintData.Image, pageSize, ROPrintData.Entity.Wmark);
18
+ },
19
+ header: function (currentPage, pageCount) {
20
+ return { text: currentPage.toString() + ' of ' + pageCount, alignment: 'right', marginRight: 7, fontSize: 8, marginTop: 2 };
21
+ },
22
+ pageMargins: [10, 15, 10, 15],
23
+ content: [
24
+ this.CommonHeaderDetails(ROPrintData),
25
+ this.PreparesparePartsTable(ROPrintData),
26
+ this.CommonTotalDetails(ROPrintData)
27
+ ],
28
+ styles: shared_pdf_service_1.SharedPDFService.GetStyles()
29
+ };
30
+ return dd;
31
+ }
32
+ static GetFileName(ROPrintData) {
33
+ let fileName = ROPrintData.HeaderName;
34
+ if (!tr_utils_1.TrUtils.IsNull(ROPrintData.Product) && !tr_utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
35
+ fileName = fileName + '-' + ROPrintData.Product.RegNo;
36
+ }
37
+ return fileName;
38
+ }
39
+ static CommonHeaderDetails(ROPrintData) {
40
+ return [
41
+ this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor),
42
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, null, null, null, null),
43
+ shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
44
+ shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
45
+ ];
46
+ }
47
+ static GetMainHeaderDetails(Entity, HeaderName, Image, HColor, AColor) {
48
+ return [
49
+ // SharedPDFService.MainHeading(Entity.CName, Entity.Header, Image, HColor, null),
50
+ shared_pdf_service_1.SharedPDFService.GetMainHeader(Entity, Image, AColor, HColor, null),
51
+ shared_pdf_service_1.SharedPDFService.GetPrintType(HeaderName),
52
+ shared_pdf_service_1.SharedPDFService.HeaderAfterLine()
53
+ ];
54
+ }
55
+ static PreparesparePartsTable(ROPrintData) {
56
+ let List = [];
57
+ if (ROPrintData.Entity.Body === 1) {
58
+ for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
59
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
60
+ ROPrintData.PrintInfo[i].Text = '';
61
+ }
62
+ ;
63
+ }
64
+ }
65
+ else {
66
+ if (ROPrintData.Entity.Body === 2) {
67
+ for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
68
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
69
+ ROPrintData.PrintInfo[i].Text = '';
70
+ }
71
+ List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
72
+ }
73
+ }
74
+ else {
75
+ if (ROPrintData.Summary) {
76
+ // List.push('',
77
+ // this.GetLaborPartsTableForView(ROPrintData.Items)
78
+ // );
79
+ }
80
+ else {
81
+ for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
82
+ if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
83
+ ROPrintData.PrintInfo[i].Text = '';
84
+ }
85
+ List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
86
+ }
87
+ }
88
+ }
89
+ }
90
+ return List;
91
+ }
92
+ static WithOutDiscountFieldTable(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn) {
93
+ if (Parts.length !== 0) {
94
+ return {
95
+ style: 'tableExample',
96
+ marginLeft: 20,
97
+ table: {
98
+ widths: [15, 215, 25, 100, 60, 60, 60],
99
+ headerRows: 1,
100
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
101
+ },
102
+ layout: shared_print_service_1.PrintSharedService.LayOutStyleanother()
103
+ };
104
+ // if (PrintPartNo) {
105
+ // return {
106
+ // style: 'tableExample',
107
+ // marginLeft: 20,
108
+ // table: {
109
+ // widths: [15, 67, 160, 25, 50, 60, 30, 53],
110
+ // headerRows: 1,
111
+ // body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
112
+ // },
113
+ // layout: this.LayOutStyleanother()
114
+ // };
115
+ // } else {
116
+ // return {
117
+ // style: 'tableExample',
118
+ // marginLeft: 20,
119
+ // table: {
120
+ // widths: [15, 215, 25, 50, 60, 45, 60],
121
+ // headerRows: 1,
122
+ // body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
123
+ // },
124
+ // layout: this.LayOutStyleanother()
125
+ // };
126
+ // }
127
+ }
128
+ else {
129
+ let a = '';
130
+ return a;
131
+ }
132
+ }
133
+ static BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn) {
134
+ var body = [];
135
+ let columns = this.GetWithOutDiscountFieldHeader(PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn);
136
+ // if (ShowTaxColumn) {
137
+ for (let i = 0; i < columns.length; i++) {
138
+ body.push(columns[i]);
139
+ }
140
+ columns = columns[1];
141
+ // } else {
142
+ // body.push(columns);
143
+ // }
144
+ if (Parts.length !== 0) {
145
+ let dummypartadding1 = {};
146
+ dummypartadding1.SNo = '';
147
+ dummypartadding1.Desc = 'Spare Parts';
148
+ // dummypartadding1.Qty = '';
149
+ dummypartadding1.Pr = '';
150
+ dummypartadding1.LineTotal = '';
151
+ Parts.unshift(dummypartadding1);
152
+ }
153
+ let SNo = 1;
154
+ Parts.forEach((part) => {
155
+ var dataRow = [];
156
+ columns.forEach((column) => {
157
+ if ((!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]))
158
+ || (column.text === 'Line Total')) {
159
+ if (part[column.Field] === 'Spare Parts') {
160
+ dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
161
+ }
162
+ else {
163
+ if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
164
+ && tr_utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
165
+ part[column.Field] = '';
166
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
167
+ }
168
+ else {
169
+ if (column.Field === 'Pr' || column.Field === 'QtyAndUoM'
170
+ || column.text === 'Tax' || column.Field === 'Disc' || column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt'
171
+ || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc' || column.text === 'Line Total') {
172
+ if (column.Field === 'Disc') {
173
+ if (column.type === 'percentage') {
174
+ if (!tr_utils_1.TrUtils.IsEmpty(part[column.Field])) {
175
+ dataRow.push({ text: part[column.Field].toString(), noWrap: true });
176
+ }
177
+ else {
178
+ dataRow.push({ text: '', noWrap: true });
179
+ }
180
+ }
181
+ else {
182
+ if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
183
+ dataRow.push({ text: part[column.Field].toString(), noWrap: true });
184
+ }
185
+ else {
186
+ dataRow.push({ text: '', noWrap: true });
187
+ }
188
+ }
189
+ }
190
+ else {
191
+ if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
192
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
193
+ }
194
+ else {
195
+ dataRow.push({ text: '', noWrap: true });
196
+ }
197
+ }
198
+ }
199
+ else {
200
+ dataRow.push(part[column.Field].toString());
201
+ }
202
+ }
203
+ }
204
+ }
205
+ else {
206
+ if (column.Field === 'SNo') {
207
+ part[column.Field] = SNo;
208
+ SNo = SNo + 1;
209
+ }
210
+ else {
211
+ part[column.Field] = '';
212
+ }
213
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
214
+ }
215
+ });
216
+ body.push(dataRow);
217
+ });
218
+ return body;
219
+ }
220
+ static GetWithOutDiscountFieldHeader(permission, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn) {
221
+ if (Body === 2) {
222
+ let headersNames = [{ text: 'Description', style: 'tableheader', Field: 'Desc' },
223
+ // { text: 'Qty', style: 'tableheader', Field: 'QtyAndUoM' },
224
+ { text: 'Price', style: 'tableheader', Field: 'Pr' },
225
+ { text: 'Labor Charges', style: 'tableheader', Field: 'Price' },
226
+ { text: 'Tax', style: 'tableheader', Field: 'TaxAmount' },
227
+ { text: 'Line Total', style: 'tableheader', Field: 'LineTotal' }];
228
+ if (permission) {
229
+ let sno = { text: 'S.No.', style: 'tableheader', Field: 'SNo' };
230
+ let MPN = { text: 'Part No', style: 'tableheader', Field: 'MPN' };
231
+ headersNames.unshift(sno, MPN);
232
+ }
233
+ else {
234
+ let sno = { text: 'S.No.', style: 'tableheader', Field: 'SNo' };
235
+ headersNames.unshift(sno);
236
+ }
237
+ return headersNames;
238
+ }
239
+ else {
240
+ if (ShowTaxColumn) {
241
+ return this.GetWithOutDiscountFieldHeader1(permission, Body, ShowIGST, ShowDiscountColumn);
242
+ }
243
+ else {
244
+ return this.GetWithOutDiscountFieldHeader2(permission, Body, ShowDiscountColumn);
245
+ }
246
+ }
247
+ }
248
+ static GetWithOutDiscountFieldHeader1(permission, Body, ShowIGST, ShowDiscountColumn) {
249
+ let headersNames;
250
+ if (permission) {
251
+ headersNames = [[{ text: 'S.No.', rowSpan: 2, style: 'tableheader', lineHeight: 0.5 },
252
+ { text: 'Part No', rowSpan: 2, style: 'tableheader', lineHeight: 0.5 },
253
+ { text: 'Description', rowSpan: 2, style: 'tableheader', alignment: 'center', lineHeight: 0.5 },
254
+ // { text: 'HSN/SAC', rowSpan: 2, style: 'tableheader', lineHeight: 1 },
255
+ // { text: 'Qty', style: 'tableheader', rowSpan: 2, lineHeight: 0.5 },
256
+ { text: 'Price', style: 'tableheader', rowSpan: 2, lineHeight: 0.5, alignment: 'center', },
257
+ { text: 'Line Total', rowSpan: 2, lineHeight: 0.5, style: 'tableheader' }
258
+ ],
259
+ [{ text: '', Field: 'SNo', lineHeight: 0.5 }, { text: '', Field: 'MPN', lineHeight: 0.5 },
260
+ { text: '', Field: 'Desc', lineHeight: 0.5 },
261
+ // { text: 'HSN/SAC', Field: 'HSN', lineHeight: 0.5 },
262
+ // { text: '', Field: 'QtyAndUoM', lineHeight: 0.5 },
263
+ { text: '', Field: 'Pr', lineHeight: 0.5 },
264
+ { text: 'Line Total', Field: 'LineTotal', lineHeight: 0.5 }
265
+ ]];
266
+ let Count = 4;
267
+ if (ShowDiscountColumn) {
268
+ headersNames[0].splice(Count, 0, { text: 'Discount', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
269
+ headersNames[0].splice(Count + 1, 0, {});
270
+ headersNames[1].splice(Count, 0, { text: '%', alignment: 'center', style: 'tableheader', Field: 'Perc', type: 'percentage', lineHeight: 0.5 });
271
+ headersNames[1].splice(Count + 1, 0, { text: 'Rs', alignment: 'center', style: 'tableheader', Field: 'Disc', type: 'amount', lineHeight: 0.5 });
272
+ Count = 6;
273
+ }
274
+ if (ShowIGST) {
275
+ headersNames[0].splice(Count, 0, { text: 'IGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
276
+ headersNames[0].splice(Count + 1, 0, {});
277
+ headersNames[1].splice(Count, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'IGSTPerc', type: 'percentage', lineHeight: 0.8 });
278
+ headersNames[1].splice(Count + 1, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'IGSTAmt', type: 'amount', lineHeight: 0.5 });
279
+ }
280
+ else {
281
+ headersNames[0].splice(Count, 0, { text: 'CGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
282
+ headersNames[0].splice(Count + 1, 0, {});
283
+ headersNames[1].splice(Count, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'CGSTPerc', type: 'percentage', lineHeight: 0.8 });
284
+ headersNames[1].splice(Count + 1, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'CGSTAmt', type: 'amount', lineHeight: 0.5 });
285
+ headersNames[0].splice(Count + 2, 0, { text: 'SGST/UTGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
286
+ headersNames[0].splice(Count + 3, 0, {});
287
+ headersNames[1].splice(Count + 2, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'SGSTPerc', type: 'percentage', lineHeight: 0.8 });
288
+ headersNames[1].splice(Count + 3, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'SGSTAmt', type: 'amount', lineHeight: 0.5 });
289
+ }
290
+ }
291
+ else {
292
+ headersNames = [[{ text: 'S.No.', rowSpan: 2, style: 'tableheader', lineHeight: 0.6 },
293
+ { text: 'Description', rowSpan: 2, style: 'tableheader', alignment: 'center', lineHeight: 0.6 },
294
+ // { text: 'HSN/SAC', rowSpan: 2, style: 'tableheader', lineHeight: 1 },
295
+ // { text: 'Qty', style: 'tableheader', rowSpan: 2, lineHeight: 0.6 },
296
+ { text: 'Price', style: 'tableheader', rowSpan: 2, alignment: 'center', lineHeight: 0.6 },
297
+ { text: 'Line Total', rowSpan: 2, style: 'tableheader', lineHeight: 0.6 }
298
+ ],
299
+ [{ text: '', Field: 'SNo', lineHeight: 0.5 },
300
+ { text: '', Field: 'Desc', lineHeight: 0.5 },
301
+ // { text: 'HSN/SAC', Field: 'HSN', lineHeight: 0.5 },
302
+ // { text: '', Field: 'QtyAndUoM', lineHeight: 0.5 },
303
+ { text: '', Field: 'Pr', lineHeight: 0.5 },
304
+ { text: 'Line Total', Field: 'LineTotal', lineHeight: 0.5 }
305
+ ]];
306
+ let Count = 3;
307
+ if (ShowDiscountColumn) {
308
+ headersNames[0].splice(Count, 0, { text: 'Discount', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
309
+ headersNames[0].splice(Count + 1, 0, {});
310
+ headersNames[1].splice(Count, 0, { text: '%', alignment: 'center', style: 'tableheader', Field: 'Perc', type: 'percentage', lineHeight: 0.5 });
311
+ headersNames[1].splice(Count + 1, 0, { text: 'Rs', alignment: 'center', style: 'tableheader', Field: 'Disc', type: 'amount', lineHeight: 0.5 });
312
+ Count = 5;
313
+ }
314
+ if (ShowIGST) {
315
+ headersNames[0].splice(Count, 0, { text: 'IGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
316
+ headersNames[0].splice(Count + 1, 0, {});
317
+ headersNames[1].splice(Count, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'IGSTPerc', type: 'percentage', lineHeight: 0.8 });
318
+ headersNames[1].splice(Count + 1, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'IGSTAmt', type: 'amount', lineHeight: 0.5 });
319
+ }
320
+ else {
321
+ headersNames[0].splice(Count, 0, { text: 'CGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
322
+ headersNames[0].splice(Count + 1, 0, {});
323
+ headersNames[1].splice(Count, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'CGSTPerc', type: 'percentage', lineHeight: 0.8 });
324
+ headersNames[1].splice(Count + 1, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'CGSTAmt', type: 'amount', lineHeight: 0.5 });
325
+ headersNames[0].splice(Count + 2, 0, { text: 'SGST/UTGST', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
326
+ headersNames[0].splice(Count + 3, 0, {});
327
+ headersNames[1].splice(Count + 2, 0, { text: 'Rate %', alignment: 'center', style: 'tableheader', Field: 'SGSTPerc', type: 'percentage', lineHeight: 0.8 });
328
+ headersNames[1].splice(Count + 3, 0, { text: 'Amount', alignment: 'center', style: 'tableheader', Field: 'SGSTAmt', type: 'amount', lineHeight: 0.5 });
329
+ }
330
+ }
331
+ return headersNames;
332
+ }
333
+ static GetWithOutDiscountFieldHeader2(permission, Body, ShowDiscountColumn) {
334
+ let headersNames = [[
335
+ { text: 'Description', rowSpan: 2, style: 'tableheader', alignment: 'center', lineHeight: 0.5 },
336
+ // { text: 'Qty', style: 'tableheader', rowSpan: 2, lineHeight: 0.5 },
337
+ { text: 'Price', style: 'tableheader', rowSpan: 2, lineHeight: 0.5, alignment: 'right', },
338
+ { text: 'Line Total', rowSpan: 2, lineHeight: 0.5, style: 'tableheader' }
339
+ ],
340
+ [
341
+ { text: '', Field: 'Desc', lineHeight: 0.5 },
342
+ // { text: '', Field: 'QtyAndUoM', lineHeight: 0.5 },
343
+ { text: '', Field: 'Pr', lineHeight: 0.5 },
344
+ { text: 'Line Total', Field: 'LineTotal', lineHeight: 0.5 }
345
+ ]];
346
+ if (permission) {
347
+ let sno = { text: 'S.No.', rowSpan: 2, style: 'tableheader', lineHeight: 0.5 };
348
+ let MPN = { text: 'Part No', rowSpan: 2, style: 'tableheader', lineHeight: 0.5 };
349
+ let sno1 = { text: '', Field: 'SNo', lineHeight: 0.5 };
350
+ let MPN1 = { text: '', Field: 'MPN', lineHeight: 0.5 };
351
+ headersNames[0].unshift(sno, MPN);
352
+ headersNames[1].unshift(sno1, MPN1);
353
+ if (ShowDiscountColumn) {
354
+ headersNames[0].splice(4, 0, { text: 'Discount', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
355
+ headersNames[0].splice(5, 0, {});
356
+ headersNames[1].splice(4, 0, { text: '%', alignment: 'center', style: 'tableheader', Field: 'Perc', type: 'percentage', lineHeight: 0.5 });
357
+ headersNames[1].splice(5, 0, { text: 'Rs', alignment: 'center', style: 'tableheader', Field: 'Disc', type: 'amount', lineHeight: 0.5 });
358
+ }
359
+ }
360
+ else {
361
+ let sno = { text: 'S.No.', rowSpan: 2, style: 'tableheader', lineHeight: 0.5 };
362
+ let sno1 = { text: '', Field: 'SNo', lineHeight: 0.5 };
363
+ headersNames[0].unshift(sno);
364
+ headersNames[1].unshift(sno1);
365
+ if (ShowDiscountColumn) {
366
+ headersNames[0].splice(3, 0, { text: 'Discount', style: 'tableheader', colSpan: 2, alignment: 'center', lineHeight: 0.5 });
367
+ headersNames[0].splice(4, 0, {});
368
+ headersNames[1].splice(3, 0, { text: '%', alignment: 'center', style: 'tableheader', Field: 'Perc', type: 'percentage', lineHeight: 0.5 });
369
+ headersNames[1].splice(3, 0, { text: 'Rs', alignment: 'center', style: 'tableheader', Field: 'Disc', type: 'amount', lineHeight: 0.5 });
370
+ }
371
+ }
372
+ return headersNames;
373
+ }
374
+ static GetWithOutDiscAndTaxFieldHeader(Parts, ShowTaxColumn, PrintPartNo, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn) {
375
+ if (Parts.length !== 0) {
376
+ if (ShowTaxColumn) {
377
+ return this.TaxDataTable(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn);
378
+ }
379
+ else {
380
+ if (ConsolidateGST) {
381
+ return this.ConsolidateDataTable(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn);
382
+ }
383
+ else {
384
+ return this.NoTaxDataTable(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn);
385
+ }
386
+ }
387
+ }
388
+ else {
389
+ let a = '';
390
+ return a;
391
+ }
392
+ }
393
+ static TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn) {
394
+ if (PrintPartNo) {
395
+ if (ShowIGST) {
396
+ if (ShowDiscountColumn) {
397
+ return [15, 50, 160, 37, 25, 40, 17, 35, 17, 35, 50];
398
+ }
399
+ else {
400
+ return [15, 50, 222, 37, 25, 40, 17, 35, 55];
401
+ }
402
+ }
403
+ else {
404
+ if (ShowDiscountColumn) {
405
+ return [15, 50, 175, 40, 17, 34, 17, 34, 17, 34, 48];
406
+ }
407
+ else {
408
+ return [15, 50, 160, 35, 22, 40, 17, 34, 17, 34, 54];
409
+ }
410
+ }
411
+ }
412
+ else {
413
+ if (ShowIGST) {
414
+ if (ShowDiscountColumn) {
415
+ return [15, 215, 40, 25, 40, 17, 35, 17, 35, 50];
416
+ }
417
+ else {
418
+ return [15, 270, 40, 25, 40, 20, 40, 54];
419
+ }
420
+ }
421
+ else {
422
+ if (ShowDiscountColumn) {
423
+ return [15, 155, 40, 50, 34, 35, 40, 40, 40, 40];
424
+ // return [15, 155, 40, 40, 40, 60, 60, 60];
425
+ }
426
+ else {
427
+ return [15, 216, 35, 22, 40, 17, 34, 17, 34, 55];
428
+ }
429
+ }
430
+ }
431
+ }
432
+ static TaxDataTable(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn) {
433
+ if (PrintPartNo) {
434
+ if (ShowIGST) {
435
+ return {
436
+ style: 'tableExample',
437
+ table: {
438
+ widths: this.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn),
439
+ // headerRows: 2,
440
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
441
+ },
442
+ layout: shared_print_service_1.PrintSharedService.LayOutStyle()
443
+ };
444
+ }
445
+ else {
446
+ return {
447
+ style: 'tableExample',
448
+ table: {
449
+ widths: this.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn),
450
+ // headerRows: 2,
451
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
452
+ },
453
+ layout: shared_print_service_1.PrintSharedService.LayOutStyle()
454
+ };
455
+ }
456
+ }
457
+ else {
458
+ if (ShowIGST) {
459
+ return {
460
+ style: 'tableExample',
461
+ table: {
462
+ widths: this.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn),
463
+ // headerRows: 2,
464
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
465
+ },
466
+ layout: shared_print_service_1.PrintSharedService.LayOutStyle()
467
+ };
468
+ }
469
+ else {
470
+ return {
471
+ style: 'tableExample',
472
+ table: {
473
+ widths: this.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn),
474
+ // headerRows: 2,
475
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
476
+ },
477
+ layout: shared_print_service_1.PrintSharedService.LayOutStyle()
478
+ };
479
+ }
480
+ }
481
+ }
482
+ static ConsolidateDataTable(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn) {
483
+ return {
484
+ style: 'tableExample',
485
+ table: {
486
+ widths: [25, 350, 80, 80,],
487
+ // headerRows: 1,
488
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
489
+ },
490
+ layout: shared_print_service_1.PrintSharedService.LayOutStyle()
491
+ };
492
+ }
493
+ static WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo) {
494
+ if (PrintPartNo) {
495
+ if (ShowDiscountColumn) {
496
+ return [15, 70, 240, 50, 40, 40, 60];
497
+ }
498
+ else {
499
+ return [25, 70, 285, 60, 80];
500
+ }
501
+ }
502
+ else {
503
+ if (ShowDiscountColumn) {
504
+ return [15, 230, 40, 70, 40, 40, 80];
505
+ }
506
+ else {
507
+ return [25, 325, 40, 60, 80];
508
+ }
509
+ }
510
+ }
511
+ static NoTaxDataTable(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn) {
512
+ if (PrintPartNo) {
513
+ return {
514
+ style: 'tableExample',
515
+ table: {
516
+ widths: this.WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo),
517
+ // headerRows: 1,
518
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
519
+ },
520
+ layout: shared_print_service_1.PrintSharedService.LayOutStyle()
521
+ };
522
+ }
523
+ else {
524
+ return {
525
+ style: 'tableExample',
526
+ table: {
527
+ widths: this.WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo),
528
+ // headerRows: 1,
529
+ body: this.BuildTableBodyForLaborAndParts(Parts, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn)
530
+ },
531
+ layout: shared_print_service_1.PrintSharedService.LayOutStyle()
532
+ };
533
+ }
534
+ }
535
+ static buildTableForCustomerLabor(Parts, PrintPartNo, customerorInsurance) {
536
+ var body = [];
537
+ let columns;
538
+ columns = this.getSummaryHeaders(PrintPartNo);
539
+ body.push(columns);
540
+ if (Parts.length !== 0) {
541
+ let dummypartadding1 = {};
542
+ dummypartadding1.SNo = '';
543
+ dummypartadding1.Desc = 'Spare Parts';
544
+ // dummypartadding1.Qty = '';
545
+ dummypartadding1.Pr = '';
546
+ dummypartadding1.Price = '';
547
+ dummypartadding1.DiscountedPrice = '';
548
+ dummypartadding1.LineTotal = '';
549
+ // dummypartadding1.QtyAndUoM = '';
550
+ // dummypartadding1.HSN = '';
551
+ dummypartadding1.MPN = '';
552
+ Parts.unshift(dummypartadding1);
553
+ }
554
+ let SNo = 1;
555
+ Parts.forEach((part) => {
556
+ var dataRow = [];
557
+ columns.forEach((column) => {
558
+ if (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field])
559
+ || column.text === 'Line Total') {
560
+ if (part[column.Field] === 'Spare Parts') {
561
+ dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
562
+ }
563
+ else {
564
+ // tslint:disable-next-line:max-line-length
565
+ if (column.Field === 'CustPrice' || column.Field === 'InsPrice' ||
566
+ column.Field === 'DiscountedPrice' || column.Field === 'TaxAmount' || column.Field === 'Pr' || column.text === 'Line Total') {
567
+ if (column.Field === 'Disc Amt') {
568
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'right', noWrap: true });
569
+ }
570
+ else {
571
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
572
+ }
573
+ }
574
+ else {
575
+ dataRow.push({ text: part[column.Field].toString() });
576
+ }
577
+ }
578
+ }
579
+ else {
580
+ if (column.Field === 'SNo') {
581
+ part[column.Field] = SNo;
582
+ SNo = SNo + 1;
583
+ }
584
+ else {
585
+ part[column.Field] = '';
586
+ }
587
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
588
+ }
589
+ });
590
+ body.push(dataRow);
591
+ });
592
+ // if (Ops.length !== 0) {
593
+ // let dummypartadding1: any = {};
594
+ // dummypartadding1.SNo = '';
595
+ // dummypartadding1.Desc = 'Labor';
596
+ // dummypartadding1.Qty = '';
597
+ // dummypartadding1.Pr = '';
598
+ // dummypartadding1.Price = '';
599
+ // dummypartadding1.DiscountedPrice = '';
600
+ // dummypartadding1.LineTotal = '';
601
+ // dummypartadding1.QtyAndUoM = '';
602
+ // dummypartadding1.HSN = '';
603
+ // Ops.unshift(dummypartadding1);
604
+ // }
605
+ // Ops.forEach((labor: any) => {
606
+ // var dataRow: any = [];
607
+ // columns.forEach((column: any) => {
608
+ // if (!TrUtils.IsFixedZero(labor[column.Field]) && !TrUtils.IsNull(labor[column.Field])
609
+ // || column.text === 'Line Total') {
610
+ // if (labor[column.Field] === 'Labor') {
611
+ // dataRow.push({ text: labor[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
612
+ // } else {
613
+ // if (column.text === 'Line Total' || column.Field === 'QtyAndUoM' || column.Field === 'DiscountedPrice' || column.Field === 'TaxAmount'
614
+ // || column.Field === 'Pr' || column.Field === 'CustPrice' || column.Field === 'InsPrice') {
615
+ // if (column.Field === 'Disc Amt') {
616
+ // dataRow.push({ text: labor[column.Field].toString(), alignment: 'right', noWrap: true });
617
+ // } else {
618
+ // dataRow.push({ text: labor[column.Field].toString(), alignment: 'right', nowrap: true });
619
+ // }
620
+ // } else {
621
+ // dataRow.push({ text: labor[column.Field].toString() });
622
+ // }
623
+ // }
624
+ // } else {
625
+ // if (column.Field === 'SNo') {
626
+ // labor[column.Field] = SNo;
627
+ // SNo = SNo + 1;
628
+ // } else {
629
+ // labor[column.Field] = '';
630
+ // }
631
+ // dataRow.push({ text: labor[column.Field].toString(), alignment: 'center' });
632
+ // }
633
+ // });
634
+ // body.push(dataRow);
635
+ // });
636
+ return body;
637
+ }
638
+ static getSummaryHeaders(permission) {
639
+ let headersNames = [{ text: 'Description', style: 'tableheader', Field: 'Desc' },
640
+ // { text: 'HSN / SAC', style: 'tableheader', Field: 'SAC' },
641
+ // { text: 'Qty', style: 'tableheader', Field: 'QtyAndUoM' },
642
+ // { text: 'Rate / Unit', style: 'tableheader', Field: 'Pr' },
643
+ { text: 'Ins. Amt', style: 'tableheader', Field: 'AssPr' },
644
+ { text: 'Cust. Amt', style: 'tableheader', Field: 'Pr' },
645
+ { text: 'Disc.(Rs)', style: 'tableheader', Field: 'DiscountedPrice' },
646
+ { text: 'Tax %', style: 'tableheader', Field: 'TaxAmount' },
647
+ { text: 'Line Total', style: 'tableheader', Field: 'LineTotal' }];
648
+ if (permission) {
649
+ let sno = { text: 'S.No.', style: 'tableheader', Field: 'SNo' };
650
+ let MPN = { text: 'Part No', style: 'tableheader', Field: 'MPN' };
651
+ headersNames.unshift(sno, MPN);
652
+ }
653
+ else {
654
+ let sno = { text: 'S.No.', style: 'tableheader', Field: 'SNo' };
655
+ headersNames.unshift(sno);
656
+ }
657
+ return headersNames;
658
+ }
659
+ static CommonTotalDetails(ROPrintData) {
660
+ let CommonDetails = [
661
+ shared_pdf_service_1.SharedPDFService.GetDebitTotalDetails(ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From),
662
+ shared_pdf_service_1.SharedPDFService.DebitDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts),
663
+ shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
664
+ shared_pdf_service_1.SharedPDFService.GetUnderLine(),
665
+ shared_pdf_service_1.SharedPDFService.GetSignatures(ROPrintData.Entity.CName, ROPrintData.Type, ROPrintData.For),
666
+ ];
667
+ if (ROPrintData.Type !== 'Invoice') {
668
+ CommonDetails.splice(2, 0, shared_pdf_service_1.SharedPDFService.GetUnderLine());
669
+ }
670
+ return CommonDetails;
671
+ }
672
+ }
673
+ exports.DebitNotePdfService = DebitNotePdfService;