shareneus 1.7.14 → 1.7.16

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.
@@ -1235,10 +1235,10 @@ class SharedPDFService {
1235
1235
  }
1236
1236
  }
1237
1237
  static GetCustomerGSTIN(Customer) {
1238
- var _a;
1238
+ var _a, _b;
1239
1239
  const customerTaxId = tr_utils_1.TrUtils.IsEmpty((_a = Customer === null || Customer === void 0 ? void 0 : Customer.TaxId) === null || _a === void 0 ? void 0 : _a.Value) ? Customer === null || Customer === void 0 ? void 0 : Customer.GSTIN : Customer.TaxId.Value;
1240
1240
  if (!tr_utils_1.TrUtils.IsEmpty(customerTaxId)) {
1241
- let GSTIN = { columns: [{ text: 'GSTIN :', width: 33, style: 'hed' }, { text: customerTaxId, marginTop: 1.5 }] };
1241
+ let GSTIN = { columns: [{ text: ((_b = Customer === null || Customer === void 0 ? void 0 : Customer.TaxId) === null || _b === void 0 ? void 0 : _b.Label) || 'GSTIN :', width: 33, style: 'hed' }, { text: customerTaxId, marginTop: 1.5 }] };
1242
1242
  return GSTIN;
1243
1243
  }
1244
1244
  else {
@@ -249,6 +249,7 @@ class PrintSharedService {
249
249
  let Customer = {
250
250
  Name: customer.Sltn + ' ' + customer.Name,
251
251
  GSTIN: customer.GSTIN,
252
+ TaxId: customer.TaxId,
252
253
  Ph: customer.Ph,
253
254
  Cons: [
254
255
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.14",
3
+ "version": "1.7.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1325,7 +1325,7 @@ export class SharedPDFService {
1325
1325
  static GetCustomerGSTIN(Customer: any) {
1326
1326
  const customerTaxId = TrUtils.IsEmpty(Customer?.TaxId?.Value) ? Customer?.GSTIN : Customer.TaxId.Value;
1327
1327
  if (!TrUtils.IsEmpty(customerTaxId)) {
1328
- let GSTIN = { columns: [{ text: 'GSTIN :', width: 33, style: 'hed' }, { text: customerTaxId, marginTop: 1.5 }] };
1328
+ let GSTIN = { columns: [{ text: Customer?.TaxId?.Label ||'GSTIN :', width: 33, style: 'hed' }, { text: customerTaxId, marginTop: 1.5 }] };
1329
1329
  return GSTIN;
1330
1330
  } else {
1331
1331
  return this.emptyObject();
@@ -250,6 +250,7 @@ export class PrintSharedService {
250
250
  let Customer: any = {
251
251
  Name: customer.Sltn + ' ' + customer.Name,
252
252
  GSTIN: customer.GSTIN,
253
+ TaxId: customer.TaxId,
253
254
  Ph: customer.Ph,
254
255
  Cons: [
255
256
  {