shareneus 1.4.66 → 1.4.68
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.
|
@@ -338,6 +338,9 @@ class InvPrintService {
|
|
|
338
338
|
let Customer = {};
|
|
339
339
|
if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.BillTo)) {
|
|
340
340
|
Customer.Name = argInvoiceData.BillTo.Name;
|
|
341
|
+
if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.BillTo.Sltn)) {
|
|
342
|
+
Customer.Name = argInvoiceData.BillTo.Sltn + ' ' + Customer.Name;
|
|
343
|
+
}
|
|
341
344
|
Customer.Code = (_a = argInvoiceData.Cust) === null || _a === void 0 ? void 0 : _a.Code;
|
|
342
345
|
Customer.Adrs = [];
|
|
343
346
|
Customer.Cons = [];
|
|
@@ -347,7 +350,11 @@ class InvPrintService {
|
|
|
347
350
|
Customer.Adrs.push(argInvoiceData.BillTo.Adrs.A2);
|
|
348
351
|
}
|
|
349
352
|
if (!tr_utils_1.TrUtils.IsEmpty(argInvoiceData.BillTo.Adrs.Ct)) {
|
|
350
|
-
|
|
353
|
+
let city = argInvoiceData.BillTo.Adrs.Ct;
|
|
354
|
+
if (!tr_utils_1.TrUtils.IsEmpty(argInvoiceData.BillTo.Adrs.Pin)) {
|
|
355
|
+
city = city + ', ' + argInvoiceData.BillTo.Adrs.StCode + '-' + argInvoiceData.BillTo.Adrs.Pin;
|
|
356
|
+
}
|
|
357
|
+
Customer.Adrs.push(city);
|
|
351
358
|
}
|
|
352
359
|
}
|
|
353
360
|
Customer.GSTIN = argInvoiceData.BillTo.GSTIN;
|
|
@@ -370,7 +370,7 @@ export declare class SharedPDFService {
|
|
|
370
370
|
stack: {
|
|
371
371
|
style: string;
|
|
372
372
|
table: {
|
|
373
|
-
widths: number[];
|
|
373
|
+
widths: (string | number)[];
|
|
374
374
|
headerRows: number;
|
|
375
375
|
body: any;
|
|
376
376
|
};
|
|
@@ -399,7 +399,7 @@ export declare class SharedPDFService {
|
|
|
399
399
|
static AllHSNPartCGSTTaxListTable1(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): {
|
|
400
400
|
style: string;
|
|
401
401
|
table: {
|
|
402
|
-
widths: number[];
|
|
402
|
+
widths: (string | number)[];
|
|
403
403
|
headerRows: number;
|
|
404
404
|
body: any;
|
|
405
405
|
};
|
|
@@ -487,7 +487,7 @@ export declare class SharedPDFService {
|
|
|
487
487
|
stack: {
|
|
488
488
|
style: string;
|
|
489
489
|
table: {
|
|
490
|
-
widths: number[];
|
|
490
|
+
widths: (string | number)[];
|
|
491
491
|
headerRows: number;
|
|
492
492
|
body: any;
|
|
493
493
|
};
|
|
@@ -999,10 +999,10 @@ class SharedPDFService {
|
|
|
999
999
|
if (tr_utils_1.TrUtils.IsNull(Customer)) {
|
|
1000
1000
|
return this.emptyObject();
|
|
1001
1001
|
}
|
|
1002
|
-
let Data = [{ text: CustHeader + ':',
|
|
1003
|
-
{ text: Customer.Code, fontSize:
|
|
1004
|
-
{ text: Customer.Name, fontSize:
|
|
1005
|
-
{ text: this.GetAddress(Customer), marginTop:
|
|
1002
|
+
let Data = [{ text: CustHeader + ':', fontSize: 7 },
|
|
1003
|
+
{ text: Customer.Code, fontSize: 11, bold: true },
|
|
1004
|
+
{ text: Customer.Name, fontSize: 10 },
|
|
1005
|
+
{ text: this.GetAddress(Customer), marginTop: 2 },
|
|
1006
1006
|
this.GetCustPhoneNumber(Customer, Type), this.GetCustomerGSTIN(Customer), this.GetCustomerDLNo(Customer),
|
|
1007
1007
|
,
|
|
1008
1008
|
this.GetCustomerName(Customer.CustName)];
|
|
@@ -1073,7 +1073,7 @@ class SharedPDFService {
|
|
|
1073
1073
|
if (Type !== 'Technician Copy') {
|
|
1074
1074
|
var contact = this.GetFormatContact(Customer);
|
|
1075
1075
|
if (contact.length !== 0) {
|
|
1076
|
-
return { columns: [{ text: 'Phone', width:
|
|
1076
|
+
return { columns: [{ text: 'Phone', width: 'auto', style: 'hed' }, { text: contact, width: '*' }] };
|
|
1077
1077
|
}
|
|
1078
1078
|
else {
|
|
1079
1079
|
return this.emptyObject();
|
|
@@ -1350,7 +1350,7 @@ class SharedPDFService {
|
|
|
1350
1350
|
return {
|
|
1351
1351
|
style: 'tableExample',
|
|
1352
1352
|
table: {
|
|
1353
|
-
widths: [40,
|
|
1353
|
+
widths: [40, 'auto', 50],
|
|
1354
1354
|
headerRows: 1,
|
|
1355
1355
|
body: this.CreateHSNTaxTable1(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn)
|
|
1356
1356
|
},
|
|
@@ -1361,7 +1361,7 @@ class SharedPDFService {
|
|
|
1361
1361
|
return {
|
|
1362
1362
|
style: 'tableExample',
|
|
1363
1363
|
table: {
|
|
1364
|
-
widths: [50,
|
|
1364
|
+
widths: [50, '*', 50, 50],
|
|
1365
1365
|
headerRows: 1,
|
|
1366
1366
|
body: this.CreateHSNTaxTable1(PartsTaxInfo, ShowAccParts, ShowIGST, ShowTaxColumn)
|
|
1367
1367
|
},
|