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