shareneus 1.4.66 → 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
- Customer.Adrs.push(argInvoiceData.BillTo.Adrs.Ct);
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 + ':', style: 'hed2' },
1003
- { text: Customer.Code, fontSize: 12 },
1004
- { text: Customer.Name, fontSize: 12 },
1005
- { text: this.GetAddress(Customer), marginTop: 3 },
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: 27, style: 'hed' }, contact] };
1076
+ return { columns: [{ text: 'Phone', width: 'auto', style: 'hed' }, { text: contact, width: '*' }] };
1077
1077
  }
1078
1078
  else {
1079
1079
  return this.emptyObject();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.4.66",
3
+ "version": "1.4.67",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",