shareneus 1.5.42 → 1.5.44

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.
@@ -1,6 +1,6 @@
1
1
  export declare class UnifiedInvoicePdfService {
2
2
  FontSize: number;
3
- static GetInvoicePrint(ROPrintData: any, numberofCopies: any, isotherIndustry: boolean, withPass: boolean, isAuto: boolean, size: any, moreDiscDetails: boolean): {
3
+ static GetInvoicePrint(ROPrintData: any, numberofCopies: any, withPass: boolean, size: any, moreDiscDetails: boolean, orientation?: 'portrait' | 'landscape'): {
4
4
  watermark: string | {
5
5
  text: string;
6
6
  opacity: number;
@@ -18,6 +18,7 @@ export declare class UnifiedInvoicePdfService {
18
18
  };
19
19
  pageBreakBefore: (currentNode: any, followingNodesOnPage: any, nodesOnNextPage: any, previousNodesOnPage: any) => boolean;
20
20
  pageMargins: number[];
21
+ pageOrientation: "landscape" | "portrait";
21
22
  pageSize: string;
22
23
  content: any[];
23
24
  styles: {
@@ -213,26 +214,14 @@ export declare class UnifiedInvoicePdfService {
213
214
  };
214
215
  };
215
216
  };
216
- static isHealthcareIndustry(ROPrintData: any): boolean;
217
- static GetMarginsBasedOnPaperSize(size: any, isHealthcare: boolean): number[];
218
- static GetWatermark(ROPrintData: any, isAuto: any, isHealthcare: boolean): "" | {
217
+ static GetMarginsBasedOnPaperSize(size: any, orientation?: 'portrait' | 'landscape'): number[];
218
+ static GetWatermark(ROPrintData: any): "" | {
219
219
  text: string;
220
220
  opacity: number;
221
221
  };
222
222
  static GetFileName(ROPrintData: any): string;
223
- static CommonHeaderDetails(ROPrintData: any, text: any, isotherIndustry: boolean, isHealthcare: boolean): any[];
224
- static CustomerAndVehicleDetailsAfterLine(): {
225
- canvas: {
226
- type: string;
227
- lineColor: string;
228
- x1: number;
229
- y1: number;
230
- x2: number;
231
- y2: number;
232
- lineWidth: number;
233
- }[];
234
- };
235
- static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any, isHealthcare: boolean): ({
223
+ static CommonHeaderDetails(ROPrintData: any, text: any, isotherIndustry: boolean): any[];
224
+ static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): ({
236
225
  columns: any;
237
226
  } | {
238
227
  canvas: {
@@ -245,45 +234,12 @@ export declare class UnifiedInvoicePdfService {
245
234
  lineWidth: number;
246
235
  }[];
247
236
  })[];
248
- static HeaderAfterLine(): {
249
- canvas: {
250
- type: string;
251
- lineColor: string;
252
- x1: number;
253
- y1: number;
254
- x2: number;
255
- y2: number;
256
- lineWidth: number;
257
- }[];
258
- };
259
- static GetPrintTypeHC(type: any, RegNo: any): {
260
- columns: ({
261
- text: string;
262
- width: number;
263
- alignment?: undefined;
264
- style?: undefined;
265
- fontSize?: undefined;
266
- } | {
267
- text: any;
268
- alignment: string;
269
- style: string;
270
- width?: undefined;
271
- fontSize?: undefined;
272
- } | {
273
- text: string;
274
- alignment: string;
275
- width: number;
276
- fontSize: number;
277
- style?: undefined;
278
- })[];
279
- };
280
- static PreparesparePartsTable(ROPrintData: any, isAuto: boolean, isHealthcare: boolean): any;
281
- static GetLaborPartsTableForView(Parts: any, Ops: any, PrintPartNo: any, isHealthcare: boolean): any;
282
- static WithOutDiscountFieldTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number, isHealthcare: boolean): any;
283
- static BuildTableBodyForLaborAndParts(Parts: any, Labor: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number, isHealthcare: boolean): any;
284
- static GetWithOutDiscAndTaxFieldHeader(Parts: any, Ops: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number, isHealthcare: boolean): any;
285
- static TaxTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any): number[];
286
- static TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number, isHealthcare: boolean): {
237
+ static PreparesparePartsTable(ROPrintData: any, orientation?: 'portrait' | 'landscape'): any;
238
+ static GetLaborPartsTableForView(Parts: any, Ops: any, PrintPartNo: any, orientation?: 'portrait' | 'landscape'): any;
239
+ static WithOutDiscountFieldTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, DecimalsNumber: number, ROPrintData: any, orientation?: 'portrait' | 'landscape'): any;
240
+ static BuildTableBodyForLaborAndParts(Parts: any, Labor: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, DecimalsNumber: number): any;
241
+ static GetWithOutDiscAndTaxFieldHeader(Parts: any, Ops: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, DecimalsNumber: number, ROPrintData: any, orientation?: 'portrait' | 'landscape'): any;
242
+ static TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, DecimalsNumber: number, orientation?: 'portrait' | 'landscape'): {
287
243
  style: string;
288
244
  table: {
289
245
  widths: (string | number)[];
@@ -296,7 +252,7 @@ export declare class UnifiedInvoicePdfService {
296
252
  vLineColor: (i: any, node: any) => string;
297
253
  };
298
254
  };
299
- static ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number, isHealthcare: boolean): {
255
+ static ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, DecimalsNumber: number, orientation?: 'portrait' | 'landscape'): {
300
256
  style: string;
301
257
  table: {
302
258
  widths: number[];
@@ -309,7 +265,7 @@ export declare class UnifiedInvoicePdfService {
309
265
  vLineColor: (i: any, node: any) => string;
310
266
  };
311
267
  };
312
- static NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number, isHealthcare: boolean): {
268
+ static NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, DecimalsNumber: number, orientation?: 'portrait' | 'landscape'): {
313
269
  style: string;
314
270
  table: {
315
271
  widths: number[];
@@ -322,24 +278,13 @@ export declare class UnifiedInvoicePdfService {
322
278
  vLineColor: (i: any, node: any) => string;
323
279
  };
324
280
  };
325
- static buildTableForCustomerLabor(Parts: any, Ops: any, PrintPartNo: any, customerorInsurance: any, isHealthcare: boolean): any;
281
+ static buildTableForCustomerLabor(Parts: any, Ops: any, PrintPartNo: any, customerorInsurance: any): any;
326
282
  static getSummaryHeaders(permission: boolean): any;
327
- static CommonTotalDetails(ROPrintData: any, index: any, numberofCopies: any, withPass: boolean, isAuto: boolean, moreDiscDetails: boolean, isHealthcare: boolean): any[];
328
- static InvoiceDueStatusHC(Type: any, Paid: any, Due: any, Status: any, isCounter: boolean, DecimalsNumber: number): any;
283
+ static CommonTotalDetails(ROPrintData: any, index: any, numberofCopies: any, withPass: boolean, moreDiscDetails: boolean): any[];
329
284
  static GetBanckdetailswithQRCode(ROPrintData: any): {
330
285
  columns: any[];
331
286
  };
332
- static GetNumberInWords(TotalAmount: any, isHealthcare: boolean): {
333
- columns: ({
334
- text: string;
335
- fontSize: number;
336
- width: number;
337
- } | {
338
- text: string;
339
- fontSize: number;
340
- width: string;
341
- })[];
342
- } | {
287
+ static GetNumberInWords(TotalAmount: any): {
343
288
  columns: ({
344
289
  text: string;
345
290
  fontSize: number;
@@ -10,27 +10,24 @@ class UnifiedInvoicePdfService {
10
10
  constructor() {
11
11
  this.FontSize = 8;
12
12
  }
13
- static GetInvoicePrint(ROPrintData, numberofCopies, isotherIndustry, withPass, isAuto, size = null, moreDiscDetails) {
14
- const isHealthcare = this.isHealthcareIndustry(ROPrintData);
15
- if (isHealthcare) {
16
- ROPrintData.Entity.IsProforma = ROPrintData.IsProforma;
17
- }
13
+ static GetInvoicePrint(ROPrintData, numberofCopies, withPass, size = null, moreDiscDetails, orientation = 'portrait') {
14
+ const isotherIndustry = false;
18
15
  var contents = [];
19
16
  if (tr_utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
20
- contents.push(this.CommonHeaderDetails(ROPrintData, null, isotherIndustry, isHealthcare), this.PreparesparePartsTable(ROPrintData, isAuto, isHealthcare), this.CommonTotalDetails(ROPrintData, null, numberofCopies, withPass, isAuto, moreDiscDetails, isHealthcare));
17
+ contents.push(this.CommonHeaderDetails(ROPrintData, null, isotherIndustry), this.PreparesparePartsTable(ROPrintData, orientation), this.CommonTotalDetails(ROPrintData, null, numberofCopies, withPass, moreDiscDetails));
21
18
  }
22
19
  else {
23
20
  numberofCopies.forEach((text, index) => {
24
- contents.push(this.CommonHeaderDetails(ROPrintData, text, isotherIndustry, isHealthcare), this.PreparesparePartsTable(ROPrintData, isAuto, isHealthcare), this.CommonTotalDetails(ROPrintData, index, numberofCopies, withPass, isAuto, moreDiscDetails, isHealthcare));
21
+ contents.push(this.CommonHeaderDetails(ROPrintData, text, isotherIndustry), this.PreparesparePartsTable(ROPrintData, orientation), this.CommonTotalDetails(ROPrintData, index, numberofCopies, withPass, moreDiscDetails));
25
22
  });
26
23
  }
27
24
  var dd = {
28
- watermark: this.GetWatermark(ROPrintData, isAuto, isHealthcare),
25
+ watermark: this.GetWatermark(ROPrintData),
29
26
  info: {
30
27
  title: this.GetFileName(ROPrintData),
31
28
  },
32
29
  background: function (currentPage, pageSize) {
33
- if (isHealthcare && size !== 'full') {
30
+ if (size !== 'full') {
34
31
  pageSize.height = pageSize.height - 435.945;
35
32
  }
36
33
  return shared_pdf_service_1.SharedPDFService.GetWatermarkImage(ROPrintData.Image, pageSize, ROPrintData.Entity.Wmark);
@@ -41,46 +38,31 @@ class UnifiedInvoicePdfService {
41
38
  pageBreakBefore: function (currentNode, followingNodesOnPage, nodesOnNextPage, previousNodesOnPage) {
42
39
  return currentNode.startPosition.top >= 700 && !tr_utils_1.TrUtils.IsNull(currentNode === null || currentNode === void 0 ? void 0 : currentNode.id) && (currentNode === null || currentNode === void 0 ? void 0 : currentNode.id) === '567';
43
40
  },
44
- pageMargins: this.GetMarginsBasedOnPaperSize(size, isHealthcare),
41
+ pageMargins: this.GetMarginsBasedOnPaperSize(size, orientation),
42
+ pageOrientation: orientation,
45
43
  pageSize: 'A4',
46
44
  content: contents,
47
45
  styles: shared_pdf_service_1.SharedPDFService.GetStyles()
48
46
  };
49
47
  return dd;
50
48
  }
51
- static isHealthcareIndustry(ROPrintData) {
52
- var _a, _b;
53
- return ((_a = ROPrintData.Entity) === null || _a === void 0 ? void 0 : _a.PrCustBar) !== undefined && ((_b = ROPrintData.Entity) === null || _b === void 0 ? void 0 : _b.PrCustBar) !== null;
54
- }
55
- static GetMarginsBasedOnPaperSize(size, isHealthcare) {
56
- if (isHealthcare) {
57
- if (size === 'full') {
58
- return [25, 15, 15, 15];
59
- }
60
- else {
61
- return [25, 15, 15, 435.945];
62
- }
49
+ static GetMarginsBasedOnPaperSize(size, orientation = 'portrait') {
50
+ if (orientation === 'landscape') {
51
+ return [10, 15, 10, 15];
52
+ }
53
+ if (size === 'full') {
54
+ return [25, 15, 15, 15];
63
55
  }
64
56
  else {
65
57
  return [10, 15, 10, 15];
66
58
  }
67
59
  }
68
- static GetWatermark(ROPrintData, isAuto, isHealthcare) {
69
- if (isHealthcare) {
70
- if (ROPrintData.IsProforma && ROPrintData.Entity.Wmark) {
71
- return { text: 'Not a final invoice', opacity: 0.2 };
72
- }
73
- else {
74
- return '';
75
- }
60
+ static GetWatermark(ROPrintData) {
61
+ if (ROPrintData.IsProforma && ROPrintData.Entity.Wmark) {
62
+ return { text: 'Not a final invoice', opacity: 0.2 };
76
63
  }
77
64
  else {
78
- if (isAuto && ROPrintData.IsProforma && ROPrintData.Entity.Wmark) {
79
- return { text: 'Not a final invoice', opacity: 0.2 };
80
- }
81
- else {
82
- return '';
83
- }
65
+ return '';
84
66
  }
85
67
  }
86
68
  static GetFileName(ROPrintData) {
@@ -90,71 +72,32 @@ class UnifiedInvoicePdfService {
90
72
  }
91
73
  return fileName;
92
74
  }
93
- static CommonHeaderDetails(ROPrintData, text, isotherIndustry, isHealthcare) {
75
+ static CommonHeaderDetails(ROPrintData, text, isotherIndustry) {
94
76
  const headerDetails = [
95
- this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text, isHealthcare),
96
- isHealthcare
97
- ? 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, null, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, ROPrintData.AdmNo, ROPrintData.DoS, ROPrintData.Entity.PrCustBar)
98
- : 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, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, ROPrintData.AdmNo, ROPrintData.DoS),
77
+ this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
78
+ 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, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, ROPrintData.AdmNo, ROPrintData.DoS),
99
79
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
100
- isHealthcare ? this.CustomerAndVehicleDetailsAfterLine() : shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
80
+ shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
101
81
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
102
82
  ];
103
83
  return headerDetails;
104
84
  }
105
- static CustomerAndVehicleDetailsAfterLine() {
106
- return {
107
- canvas: [
108
- {
109
- type: 'line',
110
- lineColor: 'grey',
111
- x1: 0,
112
- y1: 0,
113
- x2: 555,
114
- y2: 0,
115
- lineWidth: 1.5
116
- }
117
- ]
118
- };
119
- }
120
- static GetMainHeaderDetails(Entity, HeaderName, Image, HColor, AColor, text, isHealthcare) {
85
+ static GetMainHeaderDetails(Entity, HeaderName, Image, HColor, AColor, text) {
121
86
  return [
122
87
  shared_pdf_service_1.SharedPDFService.GetMainHeader(Entity, Image, AColor, HColor, text),
123
- isHealthcare ? this.GetPrintTypeHC(HeaderName, Entity.RegNo) : shared_pdf_service_1.SharedPDFService.GetPrintType(HeaderName),
124
- isHealthcare ? this.HeaderAfterLine() : shared_pdf_service_1.SharedPDFService.HeaderAfterLine()
88
+ shared_pdf_service_1.SharedPDFService.GetPrintType(HeaderName),
89
+ shared_pdf_service_1.SharedPDFService.HeaderAfterLine()
125
90
  ];
126
91
  }
127
- static HeaderAfterLine() {
128
- return {
129
- canvas: [
130
- {
131
- type: 'line',
132
- lineColor: 'grey',
133
- x1: 0,
134
- y1: 0,
135
- x2: 555,
136
- y2: 0,
137
- lineWidth: 1.5
138
- }
139
- ]
140
- };
141
- }
142
- static GetPrintTypeHC(type, RegNo) {
143
- return {
144
- columns: [{ text: '', width: 120 },
145
- { text: type, alignment: 'center', style: 'Receiptheader1' }, { text: 'Regn.No : ' + RegNo, alignment: 'right', width: 140, fontSize: 7 }
146
- ]
147
- };
148
- }
149
- static PreparesparePartsTable(ROPrintData, isAuto, isHealthcare) {
92
+ static PreparesparePartsTable(ROPrintData, orientation = 'portrait') {
150
93
  let List = [];
151
- const printPartNo = isHealthcare ? false : ROPrintData.Entity.MPN;
94
+ const printPartNo = ROPrintData.Entity.MPN;
152
95
  if (ROPrintData.Entity.Body === 1) {
153
96
  for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
154
97
  if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
155
98
  ROPrintData.PrintInfo[i].Text = '';
156
99
  }
157
- List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), printPartNo, isHealthcare));
100
+ List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), printPartNo, orientation));
158
101
  }
159
102
  }
160
103
  else {
@@ -163,43 +106,45 @@ class UnifiedInvoicePdfService {
163
106
  if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
164
107
  ROPrintData.PrintInfo[i].Text = '';
165
108
  }
166
- List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, printPartNo, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto, ROPrintData.Entity.DecimalsNumber, isHealthcare));
109
+ List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, printPartNo, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, ROPrintData.Entity.DecimalsNumber, ROPrintData, orientation));
167
110
  }
168
111
  }
169
112
  else {
170
113
  if (ROPrintData.Summary) {
171
- List.push('', this.GetLaborPartsTableForView(ROPrintData.Items, ROPrintData.Ops, printPartNo, isHealthcare));
114
+ List.push('', this.GetLaborPartsTableForView(ROPrintData.Items, ROPrintData.Ops, printPartNo, orientation));
172
115
  }
173
116
  else {
174
117
  for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
175
118
  if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
176
119
  ROPrintData.PrintInfo[i].Text = '';
177
120
  }
178
- List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, printPartNo, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto, ROPrintData.Entity.DecimalsNumber, isHealthcare));
121
+ List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, printPartNo, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, ROPrintData.Entity.DecimalsNumber, ROPrintData, orientation));
179
122
  }
180
123
  }
181
124
  }
182
125
  }
183
126
  return List;
184
127
  }
185
- static GetLaborPartsTableForView(Parts, Ops, PrintPartNo, isHealthcare) {
128
+ static GetLaborPartsTableForView(Parts, Ops, PrintPartNo, orientation = 'portrait') {
186
129
  if (Parts.length !== 0 || Ops.length !== 0) {
187
130
  if (PrintPartNo) {
131
+ const widths = orientation === 'landscape' ? [15, 30, 170, 85, 15, 20, 50, 30, 30, 53] : [25, 30, 170, 85, 15, 20, 50, 30, 30, 50];
188
132
  return {
189
133
  style: 'tableExample',
190
134
  table: {
191
- widths: [25, 30, 170, 85, 15, 20, 50, 30, 30, 50],
192
- body: this.buildTableForCustomerLabor(Parts, Ops, PrintPartNo, false, isHealthcare)
135
+ widths: widths,
136
+ body: this.buildTableForCustomerLabor(Parts, Ops, PrintPartNo, false)
193
137
  },
194
138
  layout: shared_print_service_1.PrintSharedService.LayOutStyleanother()
195
139
  };
196
140
  }
197
141
  else {
142
+ const widths = orientation === 'landscape' ? [15, 200, 55, 25, 55, 55, 40, 15, 53] : [25, 200, 55, 25, 55, 55, 40, 15, 50];
198
143
  return {
199
144
  style: 'tableExample',
200
145
  table: {
201
- widths: [25, 200, 55, 25, 55, 55, 40, 15, 50],
202
- body: this.buildTableForCustomerLabor(Parts, Ops, PrintPartNo, false, isHealthcare)
146
+ widths: widths,
147
+ body: this.buildTableForCustomerLabor(Parts, Ops, PrintPartNo, false)
203
148
  },
204
149
  layout: shared_print_service_1.PrintSharedService.LayOutStyleanother()
205
150
  };
@@ -210,28 +155,30 @@ class UnifiedInvoicePdfService {
210
155
  return a;
211
156
  }
212
157
  }
213
- static WithOutDiscountFieldTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare) {
158
+ static WithOutDiscountFieldTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, ROPrintData, orientation = 'portrait') {
214
159
  if (Parts.length !== 0 || Ops.length !== 0) {
215
160
  if (PrintPartNo) {
161
+ const widths = orientation === 'landscape' ? [15, 67, 160, 25, 50, 60, 30, 53] : [25, 60, 155, 30, 50, 60, 30, 50];
216
162
  return {
217
163
  style: 'tableExample',
218
164
  marginLeft: 20,
219
165
  table: {
220
- widths: [25, 60, 155, 30, 50, 60, 30, 50],
166
+ widths: widths,
221
167
  headerRows: 1,
222
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare)
168
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber)
223
169
  },
224
170
  layout: shared_print_service_1.PrintSharedService.LayOutStyleanother()
225
171
  };
226
172
  }
227
173
  else {
174
+ const widths = orientation === 'landscape' ? [15, 215, 25, 50, 60, 45, 60] : [25, 215, 25, 50, 60, 45, 50];
228
175
  return {
229
176
  style: 'tableExample',
230
177
  marginLeft: 20,
231
178
  table: {
232
- widths: [25, 215, 25, 50, 60, 45, 50],
179
+ widths: widths,
233
180
  headerRows: 1,
234
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare)
181
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber)
235
182
  },
236
183
  layout: shared_print_service_1.PrintSharedService.LayOutStyleanother()
237
184
  };
@@ -242,82 +189,58 @@ class UnifiedInvoicePdfService {
242
189
  return a;
243
190
  }
244
191
  }
245
- static BuildTableBodyForLaborAndParts(Parts, Labor, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare) {
192
+ static BuildTableBodyForLaborAndParts(Parts, Labor, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber) {
246
193
  var body = [];
247
194
  let columns = shared_print_service_1.PrintSharedService.GetWithOutDiscountFieldHeader(PrintPartNo, ShowTaxColumn, Body, ShowIGST, ShowDiscountColumn);
248
195
  for (let i = 0; i < columns.length; i++) {
249
196
  body.push(columns[i]);
250
197
  }
251
198
  columns = columns[1];
252
- const partsLabel = isHealthcare ? 'Medications' : 'Spare Parts';
253
- const partsTotalLabel = isHealthcare ? 'Medications Total' : 'Spare Total';
254
- const laborLabel = isHealthcare ? 'Procedures' : 'Labor';
255
- const laborTotalLabel = isHealthcare ? 'Procedures Total' : 'Labor Total';
199
+ const partsLabel = 'Items';
200
+ const partsTotalLabel = 'Items Total';
201
+ const laborLabel = 'Service';
202
+ const laborTotalLabel = 'Service Total';
256
203
  if (Parts.length !== 0) {
257
- if (isAuto) {
258
- let Qty = 0;
259
- let CGSTAMT = 0;
260
- let SGSTAMT = 0;
261
- let IGSTAMT = 0;
262
- let Taxable = 0;
263
- let FinalTotal = 0;
264
- Parts.forEach((part) => {
265
- if (isHealthcare) {
266
- Qty = Qty + part.Qty;
267
- CGSTAMT = CGSTAMT + part.CGSTAmt;
268
- SGSTAMT = SGSTAMT + part.SGSTAmt;
269
- IGSTAMT = IGSTAMT + part.IGSTAmt;
270
- Taxable = Taxable + part.AfterPartDisc;
271
- FinalTotal = FinalTotal + part.AfterPartTax;
272
- }
273
- else {
274
- Qty = (0, math_operations_1.Add)(Qty, tr_utils_1.TrUtils.FixedTo(part.Qty, DecimalsNumber));
275
- CGSTAMT = (0, math_operations_1.Add)(CGSTAMT, tr_utils_1.TrUtils.FixedTo(part.CGSTAmt, DecimalsNumber));
276
- SGSTAMT = (0, math_operations_1.Add)(SGSTAMT, tr_utils_1.TrUtils.FixedTo(part.SGSTAmt, DecimalsNumber));
277
- IGSTAMT = (0, math_operations_1.Add)(IGSTAMT, tr_utils_1.TrUtils.FixedTo(part.IGSTAmt, DecimalsNumber));
278
- Taxable = (0, math_operations_1.Add)(Taxable, tr_utils_1.TrUtils.FixedTo(part.AfterPartDisc, DecimalsNumber));
279
- FinalTotal = (0, math_operations_1.Add)(FinalTotal, tr_utils_1.TrUtils.FixedTo(part.AfterPartTax, DecimalsNumber));
280
- }
281
- });
282
- let dpartadding1 = {};
283
- dpartadding1.SNo = '';
284
- dpartadding1.Desc = partsTotalLabel;
285
- dpartadding1.QtyAndUoM = tr_utils_1.TrUtils.FixedTo(Qty, DecimalsNumber);
286
- dpartadding1.bold = true;
287
- dpartadding1.UnPr = tr_utils_1.TrUtils.FixedTo(Taxable, DecimalsNumber);
288
- dpartadding1.SGSTAmt = tr_utils_1.TrUtils.FixedTo(SGSTAMT, DecimalsNumber);
289
- dpartadding1.IGSTAmt = tr_utils_1.TrUtils.FixedTo(IGSTAMT, DecimalsNumber);
290
- dpartadding1.CGSTAmt = tr_utils_1.TrUtils.FixedTo(CGSTAMT, DecimalsNumber);
291
- dpartadding1.TCode = ShowTaxColumn ? 114 : undefined;
292
- dpartadding1.LineTotal = tr_utils_1.TrUtils.FixPriceValue(FinalTotal, DecimalsNumber);
293
- Parts.push({ SNo: '' });
294
- Parts.push(dpartadding1);
295
- }
296
- if (!isHealthcare) {
297
- let dummypartadding1 = {};
298
- dummypartadding1.SNo = '';
299
- dummypartadding1.Desc = partsLabel;
300
- dummypartadding1.Qty = '';
301
- dummypartadding1.UnPr = '';
302
- dummypartadding1.LineTotal = '';
303
- Parts.unshift(dummypartadding1);
304
- }
305
- else {
306
- let dummypartadding1 = {};
307
- dummypartadding1.SNo = '';
308
- dummypartadding1.Desc = ' ';
309
- dummypartadding1.Qty = '';
310
- dummypartadding1.UnPr = '';
311
- dummypartadding1.LineTotal = '';
312
- }
204
+ let Qty = 0;
205
+ let CGSTAMT = 0;
206
+ let SGSTAMT = 0;
207
+ let IGSTAMT = 0;
208
+ let Taxable = 0;
209
+ let FinalTotal = 0;
210
+ Parts.forEach((part) => {
211
+ Qty = (0, math_operations_1.Add)(Qty, tr_utils_1.TrUtils.FixedTo(part.Qty, DecimalsNumber));
212
+ CGSTAMT = (0, math_operations_1.Add)(CGSTAMT, tr_utils_1.TrUtils.FixedTo(part.CGSTAmt, DecimalsNumber));
213
+ SGSTAMT = (0, math_operations_1.Add)(SGSTAMT, tr_utils_1.TrUtils.FixedTo(part.SGSTAmt, DecimalsNumber));
214
+ IGSTAMT = (0, math_operations_1.Add)(IGSTAMT, tr_utils_1.TrUtils.FixedTo(part.IGSTAmt, DecimalsNumber));
215
+ Taxable = (0, math_operations_1.Add)(Taxable, tr_utils_1.TrUtils.FixedTo(part.AfterPartDisc, DecimalsNumber));
216
+ FinalTotal = (0, math_operations_1.Add)(FinalTotal, tr_utils_1.TrUtils.FixedTo(part.AfterPartTax, DecimalsNumber));
217
+ });
218
+ let dpartadding1 = {};
219
+ dpartadding1.SNo = '';
220
+ dpartadding1.Desc = partsTotalLabel;
221
+ dpartadding1.QtyAndUoM = tr_utils_1.TrUtils.FixedTo(Qty, DecimalsNumber);
222
+ dpartadding1.bold = true;
223
+ dpartadding1.UnPr = tr_utils_1.TrUtils.FixedTo(Taxable, DecimalsNumber);
224
+ dpartadding1.SGSTAmt = tr_utils_1.TrUtils.FixedTo(SGSTAMT, DecimalsNumber);
225
+ dpartadding1.IGSTAmt = tr_utils_1.TrUtils.FixedTo(IGSTAMT, DecimalsNumber);
226
+ dpartadding1.CGSTAmt = tr_utils_1.TrUtils.FixedTo(CGSTAMT, DecimalsNumber);
227
+ dpartadding1.TCode = ShowTaxColumn ? 114 : undefined;
228
+ dpartadding1.LineTotal = tr_utils_1.TrUtils.FixPriceValue(FinalTotal, DecimalsNumber);
229
+ Parts.push({ SNo: '' });
230
+ Parts.push(dpartadding1);
231
+ let dummypartadding1 = {};
232
+ dummypartadding1.SNo = '';
233
+ dummypartadding1.Desc = partsLabel;
234
+ dummypartadding1.Qty = '';
235
+ dummypartadding1.UnPr = '';
236
+ dummypartadding1.LineTotal = '';
237
+ Parts.unshift(dummypartadding1);
313
238
  }
314
239
  let SNo = 1;
315
240
  Parts.forEach((part) => {
316
241
  var dataRow = [];
317
242
  columns.forEach((column) => {
318
- const hasValue = isHealthcare
319
- ? (!tr_utils_1.TrUtils.IsNull(part[column.Field]) || (column.text === 'Line Total'))
320
- : (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]) || (column.text === 'Line Total'));
243
+ const hasValue = !tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]) || (column.text === 'Line Total');
321
244
  if (hasValue) {
322
245
  if (part[column.Field] === partsLabel) {
323
246
  dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
@@ -329,13 +252,13 @@ class UnifiedInvoicePdfService {
329
252
  dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
330
253
  }
331
254
  else {
332
- if (column.text === 'Line Total' || column.Field === 'UnPr' || (isHealthcare ? column.Field === 'HSN' : false) || column.Field === 'QtyAndUoM'
255
+ if (column.text === 'Line Total' || column.Field === 'UnPr' || column.Field === 'QtyAndUoM'
333
256
  || column.text === 'Tax' || column.Field === 'Disc' || column.Field === 'Perc' || column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt'
334
257
  || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
335
258
  if (column.Field === 'Disc') {
336
259
  if (column.type === 'percentage') {
337
260
  if (!tr_utils_1.TrUtils.IsEmpty(part[column.Field])) {
338
- dataRow.push({ text: part[column.Field].toString(), noWrap: true, alignment: isHealthcare ? 'right' : 'center' });
261
+ dataRow.push({ text: part[column.Field].toString(), noWrap: true, alignment: 'center' });
339
262
  }
340
263
  else {
341
264
  dataRow.push({ text: '', noWrap: true });
@@ -343,7 +266,7 @@ class UnifiedInvoicePdfService {
343
266
  }
344
267
  else {
345
268
  if (!tr_utils_1.TrUtils.IsNull(part[column.Field])) {
346
- dataRow.push({ text: isHealthcare ? tr_utils_1.TrUtils.FixPriceValue(part[column.Field]).toString() : part[column.Field].toString(), alignment: 'right', noWrap: true });
269
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'right', noWrap: true });
347
270
  }
348
271
  else {
349
272
  dataRow.push({ text: '', noWrap: true });
@@ -392,59 +315,37 @@ class UnifiedInvoicePdfService {
392
315
  });
393
316
  SNo = 1;
394
317
  if (Labor.length !== 0) {
395
- if (isAuto) {
396
- let CGSTAMT = 0;
397
- let SGSTAMT = 0;
398
- let IGSTAMT = 0;
399
- let Taxable = 0;
400
- let FinalTotal = 0;
401
- Labor.forEach((operation) => {
402
- if (isHealthcare) {
403
- CGSTAMT = CGSTAMT + operation.CGSTAmt;
404
- SGSTAMT = SGSTAMT + operation.SGSTAmt;
405
- IGSTAMT = IGSTAMT + operation.IGSTAmt;
406
- Taxable = Taxable + operation.AfterLaborDisc;
407
- FinalTotal = FinalTotal + operation.AfterLaborTax;
408
- }
409
- else {
410
- CGSTAMT = (0, math_operations_1.Add)(CGSTAMT, tr_utils_1.TrUtils.FixedTo(operation.CGSTAmt, DecimalsNumber));
411
- SGSTAMT = (0, math_operations_1.Add)(SGSTAMT, tr_utils_1.TrUtils.FixedTo(operation.SGSTAmt, DecimalsNumber));
412
- IGSTAMT = (0, math_operations_1.Add)(IGSTAMT, tr_utils_1.TrUtils.FixedTo(operation.IGSTAmt, DecimalsNumber));
413
- Taxable = (0, math_operations_1.Add)(Taxable, tr_utils_1.TrUtils.FixedTo(operation.AfterLaborDisc, DecimalsNumber));
414
- FinalTotal = (0, math_operations_1.Add)(FinalTotal, tr_utils_1.TrUtils.FixedTo(operation.AfterLaborTax, DecimalsNumber));
415
- }
416
- });
417
- let dpartadding1 = {};
418
- dpartadding1.SNo = '';
419
- dpartadding1.Desc = laborTotalLabel;
420
- dpartadding1.UnPr = tr_utils_1.TrUtils.FixedTo(Taxable, DecimalsNumber);
421
- dpartadding1.SGSTAmt = tr_utils_1.TrUtils.FixedTo(SGSTAMT, DecimalsNumber);
422
- dpartadding1.IGSTAmt = tr_utils_1.TrUtils.FixedTo(IGSTAMT, DecimalsNumber);
423
- dpartadding1.CGSTAmt = tr_utils_1.TrUtils.FixedTo(CGSTAMT, DecimalsNumber);
424
- dpartadding1.TCode = ShowTaxColumn ? 114 : undefined;
425
- dpartadding1.bold = true;
426
- dpartadding1.LineTotal = tr_utils_1.TrUtils.FixPriceValue(FinalTotal, DecimalsNumber);
427
- Labor.push({ SNo: '' });
428
- Labor.push(dpartadding1);
429
- }
430
- if (isHealthcare && Parts.length !== 0) {
431
- let dummypartadding1 = {};
432
- dummypartadding1.SNo = '';
433
- dummypartadding1.Desc = ' ';
434
- dummypartadding1.Qty = '';
435
- dummypartadding1.UnPr = '';
436
- dummypartadding1.LineTotal = '';
437
- Labor.unshift(dummypartadding1);
438
- }
439
- else if (!isHealthcare) {
440
- let dummypartadding1 = {};
441
- dummypartadding1.SNo = '';
442
- dummypartadding1.Desc = laborLabel;
443
- dummypartadding1.Qty = '';
444
- dummypartadding1.UnPr = '';
445
- dummypartadding1.LineTotal = '';
446
- Labor.unshift(dummypartadding1);
447
- }
318
+ let CGSTAMT = 0;
319
+ let SGSTAMT = 0;
320
+ let IGSTAMT = 0;
321
+ let Taxable = 0;
322
+ let FinalTotal = 0;
323
+ Labor.forEach((operation) => {
324
+ CGSTAMT = (0, math_operations_1.Add)(CGSTAMT, tr_utils_1.TrUtils.FixedTo(operation.CGSTAmt, DecimalsNumber));
325
+ SGSTAMT = (0, math_operations_1.Add)(SGSTAMT, tr_utils_1.TrUtils.FixedTo(operation.SGSTAmt, DecimalsNumber));
326
+ IGSTAMT = (0, math_operations_1.Add)(IGSTAMT, tr_utils_1.TrUtils.FixedTo(operation.IGSTAmt, DecimalsNumber));
327
+ Taxable = (0, math_operations_1.Add)(Taxable, tr_utils_1.TrUtils.FixedTo(operation.AfterLaborDisc, DecimalsNumber));
328
+ FinalTotal = (0, math_operations_1.Add)(FinalTotal, tr_utils_1.TrUtils.FixedTo(operation.AfterLaborTax, DecimalsNumber));
329
+ });
330
+ let dpartadding1 = {};
331
+ dpartadding1.SNo = '';
332
+ dpartadding1.Desc = laborTotalLabel;
333
+ dpartadding1.UnPr = tr_utils_1.TrUtils.FixedTo(Taxable, DecimalsNumber);
334
+ dpartadding1.SGSTAmt = tr_utils_1.TrUtils.FixedTo(SGSTAMT, DecimalsNumber);
335
+ dpartadding1.IGSTAmt = tr_utils_1.TrUtils.FixedTo(IGSTAMT, DecimalsNumber);
336
+ dpartadding1.CGSTAmt = tr_utils_1.TrUtils.FixedTo(CGSTAMT, DecimalsNumber);
337
+ dpartadding1.TCode = ShowTaxColumn ? 114 : undefined;
338
+ dpartadding1.bold = true;
339
+ dpartadding1.LineTotal = tr_utils_1.TrUtils.FixPriceValue(FinalTotal, DecimalsNumber);
340
+ Labor.push({ SNo: '' });
341
+ Labor.push(dpartadding1);
342
+ let dummypartadding1 = {};
343
+ dummypartadding1.SNo = '';
344
+ dummypartadding1.Desc = laborLabel;
345
+ dummypartadding1.Qty = '';
346
+ dummypartadding1.UnPr = '';
347
+ dummypartadding1.LineTotal = '';
348
+ Labor.unshift(dummypartadding1);
448
349
  }
449
350
  if (Body === 2) {
450
351
  for (let i = 0; i < Labor.length; i++) {
@@ -454,9 +355,7 @@ class UnifiedInvoicePdfService {
454
355
  Labor.forEach((Ops) => {
455
356
  var dataRow = [];
456
357
  columns.forEach((column) => {
457
- const hasValue = isHealthcare
458
- ? (!tr_utils_1.TrUtils.IsNull(Ops[column.Field]) || (column.text === 'Line Total'))
459
- : (!tr_utils_1.TrUtils.IsFixedZero(Ops[column.Field]) && !tr_utils_1.TrUtils.IsNull(Ops[column.Field]) || (column.text === 'Line Total'));
358
+ const hasValue = !tr_utils_1.TrUtils.IsFixedZero(Ops[column.Field]) && !tr_utils_1.TrUtils.IsNull(Ops[column.Field]) || (column.text === 'Line Total');
460
359
  if (hasValue) {
461
360
  if (Ops[column.Field] === laborLabel) {
462
361
  dataRow.push({ text: Ops[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
@@ -468,13 +367,13 @@ class UnifiedInvoicePdfService {
468
367
  dataRow.push({ text: Ops[column.Field].toString(), alignment: 'center' });
469
368
  }
470
369
  else {
471
- if (column.text === 'Line Total' || column.Field === 'Price' || (isHealthcare ? column.Field === 'HSN' : false) || column.text === 'Tax' || column.Field === 'UnPr'
370
+ if (column.text === 'Line Total' || column.Field === 'Price' || column.text === 'Tax' || column.Field === 'UnPr'
472
371
  || column.Field === 'QtyAndUoM' || column.Field === 'Disc' || column.Field === 'Perc' || column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt'
473
372
  || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
474
373
  if (column.Field === 'Disc') {
475
374
  if (column.type === 'percentage') {
476
375
  if (!tr_utils_1.TrUtils.IsEmpty(Ops[column.Field])) {
477
- dataRow.push({ text: Ops[column.Field].toString(), alignment: isHealthcare ? 'right' : 'center', noWrap: true });
376
+ dataRow.push({ text: Ops[column.Field].toString(), alignment: 'center', noWrap: true });
478
377
  }
479
378
  else {
480
379
  dataRow.push({ text: '', noWrap: true });
@@ -482,7 +381,7 @@ class UnifiedInvoicePdfService {
482
381
  }
483
382
  else {
484
383
  if (!tr_utils_1.TrUtils.IsNull(Ops[column.Field])) {
485
- dataRow.push({ text: isHealthcare ? tr_utils_1.TrUtils.FixPriceValue(Ops[column.Field]).toString() : Ops[column.Field].toString(), alignment: 'right', noWrap: true });
384
+ dataRow.push({ text: Ops[column.Field].toString(), alignment: 'right', noWrap: true });
486
385
  }
487
386
  else {
488
387
  dataRow.push({ text: '', noWrap: true });
@@ -499,22 +398,7 @@ class UnifiedInvoicePdfService {
499
398
  }
500
399
  }
501
400
  else {
502
- if (isHealthcare) {
503
- if (column.Field === 'Desc') {
504
- let DescData = [];
505
- DescData.push({ text: Ops[column.Field].toString(), bold: Ops.bold });
506
- if (!tr_utils_1.TrUtils.IsEmpty(Ops['EDesc'])) {
507
- DescData.push({ text: Ops['EDesc'].toString(), color: 'grey' });
508
- }
509
- dataRow.push({ stack: DescData });
510
- }
511
- else {
512
- dataRow.push({ text: Ops[column.Field].toString(), bold: Ops.bold });
513
- }
514
- }
515
- else {
516
- dataRow.push({ text: Ops[column.Field].toString(), bold: Ops.bold });
517
- }
401
+ dataRow.push({ text: Ops[column.Field].toString(), bold: Ops.bold });
518
402
  }
519
403
  }
520
404
  }
@@ -536,17 +420,17 @@ class UnifiedInvoicePdfService {
536
420
  });
537
421
  return body;
538
422
  }
539
- static GetWithOutDiscAndTaxFieldHeader(Parts, Ops, ShowTaxColumn, PrintPartNo, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare) {
423
+ static GetWithOutDiscAndTaxFieldHeader(Parts, Ops, ShowTaxColumn, PrintPartNo, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, ROPrintData, orientation = 'portrait') {
540
424
  if (Parts.length !== 0 || Ops.length !== 0) {
541
425
  if (ShowTaxColumn) {
542
- return this.TaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare);
426
+ return this.TaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, orientation);
543
427
  }
544
428
  else {
545
429
  if (ConsolidateGST) {
546
- return this.ConsolidateDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare);
430
+ return this.ConsolidateDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, orientation);
547
431
  }
548
432
  else {
549
- return this.NoTaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare);
433
+ return this.NoTaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, orientation);
550
434
  }
551
435
  }
552
436
  }
@@ -555,96 +439,60 @@ class UnifiedInvoicePdfService {
555
439
  return a;
556
440
  }
557
441
  }
558
- static TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn) {
559
- if (PrintPartNo) {
560
- if (ShowIGST) {
561
- if (ShowDiscountColumn) {
562
- return [22, 50, 143, 35, 25, 40, 17, 35, 17, 35, 45];
563
- }
564
- else {
565
- return [22, 50, 207, 37, 25, 40, 17, 35, 51];
566
- }
567
- }
568
- else {
569
- if (ShowDiscountColumn) {
570
- return [22, 40, 90, 35, 22, 40, 17, 34, 17, 32, 17, 32, 48];
571
- }
572
- else {
573
- return [22, 50, 135, 40, 22, 40, 17, 32, 17, 32, 54];
574
- }
575
- }
576
- }
577
- else {
578
- if (ShowIGST) {
579
- if (ShowDiscountColumn) {
580
- return [22, 200, 40, 25, 40, 17, 35, 17, 35, 41];
581
- }
582
- else {
583
- return [22, 255, 40, 25, 40, 20, 40, 50];
584
- }
585
- }
586
- else {
587
- if (ShowDiscountColumn) {
588
- return [22, 135, 34, 22, 40, 17, 34, 17, 35, 17, 35, 45];
589
- }
590
- else {
591
- return [22, 195, 35, 22, 40, 17, 35, 17, 35, 50];
592
- }
593
- }
594
- }
595
- }
596
- static TaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare) {
597
- const layoutStyle = isHealthcare ? shared_print_service_1.PrintSharedService.LayOutStyle1() : shared_print_service_1.PrintSharedService.LayOutStyle();
598
- const widths = isHealthcare ? this.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn) : shared_print_service_1.PrintSharedService.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn);
442
+ static TaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, orientation = 'portrait') {
443
+ const layoutStyle = shared_print_service_1.PrintSharedService.LayOutStyle();
444
+ const widths = shared_print_service_1.PrintSharedService.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn);
599
445
  return {
600
446
  style: 'tableExample',
601
447
  table: {
602
448
  widths: widths,
603
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare)
449
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber)
604
450
  },
605
451
  layout: layoutStyle
606
452
  };
607
453
  }
608
- static ConsolidateDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare) {
609
- const layoutStyle = isHealthcare ? shared_print_service_1.PrintSharedService.LayOutStyle1() : shared_print_service_1.PrintSharedService.LayOutStyle();
454
+ static ConsolidateDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, orientation = 'portrait') {
455
+ const layoutStyle = shared_print_service_1.PrintSharedService.LayOutStyle();
610
456
  if (PrintPartNo) {
457
+ const widths = orientation === 'landscape' ? [15, 70, 263, 25, 60, 80, 10, 47] : [25, 70, 263, 25, 60, 80, 10, 40];
611
458
  return {
612
459
  style: 'tableExample',
613
460
  table: {
614
- widths: [25, 70, 263, 25, 60, 80, 10, 40],
615
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare)
461
+ widths: widths,
462
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber)
616
463
  },
617
464
  layout: layoutStyle
618
465
  };
619
466
  }
620
467
  else {
468
+ const widths = orientation === 'landscape' ? [15, 295, 50, 80, 80, 10, 47] : [25, 295, 50, 80, 80, 10, 40];
621
469
  return {
622
470
  style: 'tableExample',
623
471
  table: {
624
- widths: [25, 295, 50, 80, 80, 10, 40],
625
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare)
472
+ widths: widths,
473
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber)
626
474
  },
627
475
  layout: layoutStyle
628
476
  };
629
477
  }
630
478
  }
631
- static NoTaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare) {
632
- const layoutStyle = isHealthcare ? shared_print_service_1.PrintSharedService.LayOutStyle1() : shared_print_service_1.PrintSharedService.LayOutStyle();
479
+ static NoTaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, orientation = 'portrait') {
480
+ const layoutStyle = shared_print_service_1.PrintSharedService.LayOutStyle();
633
481
  return {
634
482
  style: 'tableExample',
635
483
  table: {
636
484
  widths: shared_print_service_1.PrintSharedService.WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo),
637
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber, isHealthcare)
485
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber)
638
486
  },
639
487
  layout: layoutStyle
640
488
  };
641
489
  }
642
- static buildTableForCustomerLabor(Parts, Ops, PrintPartNo, customerorInsurance, isHealthcare) {
490
+ static buildTableForCustomerLabor(Parts, Ops, PrintPartNo, customerorInsurance) {
643
491
  var body = [];
644
492
  let columns;
645
493
  columns = this.getSummaryHeaders(PrintPartNo);
646
494
  body.push(columns);
647
- const partsLabel = isHealthcare ? ' ' : 'Spare Parts';
495
+ const partsLabel = 'Items';
648
496
  if (Parts.length !== 0) {
649
497
  let dummypartadding1 = {};
650
498
  dummypartadding1.SNo = '';
@@ -657,17 +505,13 @@ class UnifiedInvoicePdfService {
657
505
  dummypartadding1.QtyAndUoM = '';
658
506
  dummypartadding1.HSN = '';
659
507
  dummypartadding1.MPN = '';
660
- if (!isHealthcare) {
661
- Parts.unshift(dummypartadding1);
662
- }
508
+ Parts.unshift(dummypartadding1);
663
509
  }
664
510
  let SNo = 1;
665
511
  Parts.forEach((part) => {
666
512
  var dataRow = [];
667
513
  columns.forEach((column) => {
668
- const hasValue = isHealthcare
669
- ? (!tr_utils_1.TrUtils.IsNull(part[column.Field]) || column.text === 'Line Total')
670
- : (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]) || column.text === 'Line Total');
514
+ const hasValue = !tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]) || column.text === 'Line Total';
671
515
  if (hasValue) {
672
516
  if (part[column.Field] === partsLabel) {
673
517
  dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
@@ -713,41 +557,24 @@ class UnifiedInvoicePdfService {
713
557
  body.push(dataRow);
714
558
  });
715
559
  SNo = 1;
716
- const laborLabel = isHealthcare ? 'Procedures' : 'Labor';
560
+ const laborLabel = 'Service';
717
561
  if (Ops.length !== 0) {
718
- if (isHealthcare && Parts.length !== 0) {
719
- let dummypartadding1 = {};
720
- dummypartadding1.SNo = '';
721
- dummypartadding1.Desc = ' ';
722
- dummypartadding1.Qty = '';
723
- dummypartadding1.UnPr = '';
724
- dummypartadding1.Price = '';
725
- dummypartadding1.DiscountedPrice = '';
726
- dummypartadding1.LineTotal = '';
727
- dummypartadding1.QtyAndUoM = '';
728
- dummypartadding1.HSN = '';
729
- Ops.unshift(dummypartadding1);
730
- }
731
- else if (!isHealthcare) {
732
- let dummypartadding1 = {};
733
- dummypartadding1.SNo = '';
734
- dummypartadding1.Desc = laborLabel;
735
- dummypartadding1.Qty = '';
736
- dummypartadding1.UnPr = '';
737
- dummypartadding1.Price = '';
738
- dummypartadding1.DiscountedPrice = '';
739
- dummypartadding1.LineTotal = '';
740
- dummypartadding1.QtyAndUoM = '';
741
- dummypartadding1.HSN = '';
742
- Ops.unshift(dummypartadding1);
743
- }
562
+ let dummypartadding1 = {};
563
+ dummypartadding1.SNo = '';
564
+ dummypartadding1.Desc = laborLabel;
565
+ dummypartadding1.Qty = '';
566
+ dummypartadding1.UnPr = '';
567
+ dummypartadding1.Price = '';
568
+ dummypartadding1.DiscountedPrice = '';
569
+ dummypartadding1.LineTotal = '';
570
+ dummypartadding1.QtyAndUoM = '';
571
+ dummypartadding1.HSN = '';
572
+ Ops.unshift(dummypartadding1);
744
573
  }
745
574
  Ops.forEach((labor) => {
746
575
  var dataRow = [];
747
576
  columns.forEach((column) => {
748
- const hasValue = isHealthcare
749
- ? (!tr_utils_1.TrUtils.IsNull(labor[column.Field]) || column.text === 'Line Total')
750
- : (!tr_utils_1.TrUtils.IsFixedZero(labor[column.Field]) && !tr_utils_1.TrUtils.IsNull(labor[column.Field]) || column.text === 'Line Total');
577
+ const hasValue = !tr_utils_1.TrUtils.IsFixedZero(labor[column.Field]) && !tr_utils_1.TrUtils.IsNull(labor[column.Field]) || column.text === 'Line Total';
751
578
  if (hasValue) {
752
579
  if (labor[column.Field] === laborLabel) {
753
580
  dataRow.push({ text: labor[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
@@ -763,22 +590,7 @@ class UnifiedInvoicePdfService {
763
590
  }
764
591
  }
765
592
  else {
766
- if (isHealthcare) {
767
- if (column.Field === 'Desc') {
768
- let DescData = [];
769
- DescData.push(labor[column.Field].toString());
770
- if (!tr_utils_1.TrUtils.IsEmpty(labor['EDesc'])) {
771
- DescData.push({ text: labor['EDesc'].toString(), color: 'grey' });
772
- }
773
- dataRow.push({ stack: DescData });
774
- }
775
- else {
776
- dataRow.push({ text: labor[column.Field].toString() });
777
- }
778
- }
779
- else {
780
- dataRow.push({ text: labor[column.Field].toString() });
781
- }
593
+ dataRow.push({ text: labor[column.Field].toString() });
782
594
  }
783
595
  }
784
596
  }
@@ -821,25 +633,19 @@ class UnifiedInvoicePdfService {
821
633
  }
822
634
  return headersNames;
823
635
  }
824
- static CommonTotalDetails(ROPrintData, index, numberofCopies, withPass, isAuto, moreDiscDetails, isHealthcare) {
636
+ static CommonTotalDetails(ROPrintData, index, numberofCopies, withPass, moreDiscDetails) {
825
637
  var _a;
826
- const taxSummaryData = isHealthcare ? ROPrintData.CustTaxGroupDataByPerc : ROPrintData.TaxSummary;
638
+ const taxSummaryData = ROPrintData.TaxSummary || ROPrintData.CustTaxGroupDataByPerc;
827
639
  let CommonDetails = [
828
- shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails1(ROPrintData, ROPrintData.CustLaborTotalAfterDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalAfterDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, taxSummaryData, 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((_a = ROPrintData.Settings) === null || _a === void 0 ? void 0 : _a.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, ROPrintData.Adj, taxSummaryData, ROPrintData.STotal, isAuto, moreDiscDetails),
829
- this.GetNumberInWords(ROPrintData.CustRoundedTotal, isHealthcare),
830
- isHealthcare
831
- ? this.InvoiceDueStatusHC(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, ROPrintData.isCountersale, ROPrintData.Entity.DecimalsNumber)
832
- : shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, ROPrintData.isCountersale, ROPrintData.Entity.DecimalsNumber),
640
+ shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails1(ROPrintData, ROPrintData.CustLaborTotalAfterDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalAfterDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, taxSummaryData, 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((_a = ROPrintData.Settings) === null || _a === void 0 ? void 0 : _a.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, ROPrintData.Adj, taxSummaryData, ROPrintData.STotal, false, moreDiscDetails),
641
+ this.GetNumberInWords(ROPrintData.CustRoundedTotal),
642
+ shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, ROPrintData.isCountersale, ROPrintData.Entity.DecimalsNumber),
833
643
  shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
834
- isHealthcare
835
- ? shared_pdf_service_1.SharedPDFService.GetBankDetials(ROPrintData.Entity.Bank, ROPrintData.Entity.PrBank, ROPrintData.Entity.UPIPhone)
836
- : this.GetBanckdetailswithQRCode(ROPrintData),
837
- isHealthcare ? shared_pdf_service_1.SharedPDFService.emptyObject() : shared_pdf_service_1.SharedPDFService.GetUnderLine(),
838
- isHealthcare
839
- ? shared_pdf_service_1.SharedPDFService.GetHCInvSignatures(ROPrintData.Entity.CName, ROPrintData.isCountersale)
840
- : shared_pdf_service_1.SharedPDFService.GetInvSignatures(ROPrintData.Entity.CName, ROPrintData.isCountersale),
841
- isHealthcare ? shared_pdf_service_1.SharedPDFService.emptyObject() : shared_pdf_service_1.SharedPDFService.GetUnderLine1(withPass),
842
- isHealthcare ? shared_pdf_service_1.SharedPDFService.emptyObject() : this.GetGatePass(withPass, ROPrintData)
644
+ this.GetBanckdetailswithQRCode(ROPrintData),
645
+ shared_pdf_service_1.SharedPDFService.GetUnderLine(),
646
+ shared_pdf_service_1.SharedPDFService.GetInvSignatures(ROPrintData.Entity.CName, ROPrintData.isCountersale),
647
+ shared_pdf_service_1.SharedPDFService.GetUnderLine1(withPass),
648
+ this.GetGatePass(withPass, ROPrintData)
843
649
  ];
844
650
  if (ROPrintData.Type !== 'Invoice') {
845
651
  CommonDetails.splice(2, 0, shared_pdf_service_1.SharedPDFService.GetUnderLine());
@@ -849,24 +655,6 @@ class UnifiedInvoicePdfService {
849
655
  }
850
656
  return CommonDetails;
851
657
  }
852
- static InvoiceDueStatusHC(Type, Paid, Due, Status, isCounter, DecimalsNumber) {
853
- if (Type === 'Invoice' && !isCounter) {
854
- return {
855
- fontSize: 9,
856
- marginTop: 3,
857
- marginBottom: 5,
858
- table: {
859
- widths: ['*', 'auto'],
860
- body: [[{ text: 'Paid : Rs.' + tr_utils_1.TrUtils.FixPriceValue(Paid, DecimalsNumber), marginLeft: 20 },
861
- { text: 'Due : Rs.' + tr_utils_1.TrUtils.FixPriceValue(Due, DecimalsNumber), marginRight: 20 }]]
862
- },
863
- layout: shared_pdf_service_1.SharedPDFService.LayOutLineStyle(),
864
- };
865
- }
866
- else {
867
- return shared_pdf_service_1.SharedPDFService.emptyObject();
868
- }
869
- }
870
658
  static GetBanckdetailswithQRCode(ROPrintData) {
871
659
  return {
872
660
  columns: [
@@ -875,14 +663,9 @@ class UnifiedInvoicePdfService {
875
663
  ]
876
664
  };
877
665
  }
878
- static GetNumberInWords(TotalAmount, isHealthcare) {
666
+ static GetNumberInWords(TotalAmount) {
879
667
  var rupee = shared_pdf_service_1.SharedPDFService.convertNumberToWords(TotalAmount);
880
- if (isHealthcare) {
881
- return { columns: [{ text: 'In Words :', fontSize: 7, width: 35 }, { text: rupee, fontSize: 7, width: '*' }] };
882
- }
883
- else {
884
- return { columns: [{ text: 'In Words :', fontSize: 9, width: 45 }, { text: rupee, bold: true, fontSize: 9, width: '*' }] };
885
- }
668
+ return { columns: [{ text: 'In Words :', fontSize: 9, width: 45 }, { text: rupee, bold: true, fontSize: 9, width: '*' }] };
886
669
  }
887
670
  static GetGatePass(isGatepass, ROPrintData) {
888
671
  if (isGatepass) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.5.42",
3
+ "version": "1.5.44",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",