shareneus 1.4.65 → 1.4.67
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.
|
@@ -347,7 +347,11 @@ class InvPrintService {
|
|
|
347
347
|
Customer.Adrs.push(argInvoiceData.BillTo.Adrs.A2);
|
|
348
348
|
}
|
|
349
349
|
if (!tr_utils_1.TrUtils.IsEmpty(argInvoiceData.BillTo.Adrs.Ct)) {
|
|
350
|
-
|
|
350
|
+
let city = argInvoiceData.BillTo.Adrs.Ct;
|
|
351
|
+
if (!tr_utils_1.TrUtils.IsEmpty(argInvoiceData.BillTo.Adrs.Pin)) {
|
|
352
|
+
city = city + ', ' + argInvoiceData.BillTo.Adrs.StCode + '-' + argInvoiceData.BillTo.Adrs.Pin;
|
|
353
|
+
}
|
|
354
|
+
Customer.Adrs.push(city);
|
|
351
355
|
}
|
|
352
356
|
}
|
|
353
357
|
Customer.GSTIN = argInvoiceData.BillTo.GSTIN;
|
|
@@ -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();
|
|
@@ -1397,7 +1397,7 @@ class SharedPDFService {
|
|
|
1397
1397
|
return {
|
|
1398
1398
|
style: 'tableExample',
|
|
1399
1399
|
table: {
|
|
1400
|
-
widths: [20,
|
|
1400
|
+
widths: [20, 60, 40, 40],
|
|
1401
1401
|
body: this.ALLPartsCGSTTaxListTable(PartsTaxInfo, ShowAccParts, ShowTaxColumn)
|
|
1402
1402
|
},
|
|
1403
1403
|
layout: this.HeaderLineStyle(),
|
|
@@ -1617,16 +1617,15 @@ class SharedPDFService {
|
|
|
1617
1617
|
totalDisc = tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.addition)(Number(OverAllMainLaborDiscount), Number(OverAllMainPartsDiscount)), RecordData.Entity.DecimalsNumber);
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
let serviceName;
|
|
1621
|
-
let itemName;
|
|
1622
|
-
if (isAuto) {
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
}
|
|
1620
|
+
// let serviceName: string;
|
|
1621
|
+
// let itemName: string;
|
|
1622
|
+
// if (isAuto) {
|
|
1623
|
+
// serviceName = 'Labor Tax';
|
|
1624
|
+
// itemName = 'Parts Tax';
|
|
1625
|
+
// } else {
|
|
1626
|
+
// serviceName = 'Service Tax';
|
|
1627
|
+
// itemName = 'Items Tax';
|
|
1628
|
+
// }
|
|
1630
1629
|
return {
|
|
1631
1630
|
columns: [
|
|
1632
1631
|
// this.GetTaxOnLabor(BasicLaborTotal, OverAllMainLaborDiscount, LCGST,
|
|
@@ -1636,7 +1635,7 @@ class SharedPDFService {
|
|
|
1636
1635
|
stack: [
|
|
1637
1636
|
// this.GetTaxOnParts(BasicPartsTotal, OverAllMainPartsDiscount, PCGST,
|
|
1638
1637
|
// PSGST, ShowAccParts, PIGST, ShowIGST, ShowTaxColumn, ShowDetailedPartTaxInfo, From),
|
|
1639
|
-
{ text: (istaxable && CustLaborTaxGroupDataByPerc.length !== 0) ? serviceName : '', fontSize: 7, opacity: 0.8 },
|
|
1638
|
+
// { text: (istaxable && CustLaborTaxGroupDataByPerc.length !== 0) ? serviceName : '', fontSize: 7, opacity: 0.8 },
|
|
1640
1639
|
this.PartsTaxAmounts1(CustLaborTaxGroupDataByPerc, ShowAccParts, ShowIGST, ShowTaxColumn),
|
|
1641
1640
|
// { text: (istaxable && PartsTaxInfo.length !== 0) ? itemName : '', fontSize: 7, opacity: 0.8 },
|
|
1642
1641
|
// this.PartsTaxAmounts1(PartsTaxInfo, ShowAccParts, ShowIGST,
|