shareneus 1.6.30 → 1.6.32

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.
@@ -1180,7 +1180,24 @@ class SharedPDFService {
1180
1180
  { text: this.GetAddress(Customer), marginTop: 2 },
1181
1181
  this.GetCustPhoneNumber(Customer, Type), this.GetCustomerGSTIN(Customer), this.GetCustomerDLNo(Customer),
1182
1182
  ,
1183
- this.GetCustomerName(Customer.CustName)];
1183
+ this.GetCustomerName(Customer.CustName)]
1184
+ .filter(item => {
1185
+ if (item === null || item === undefined) {
1186
+ return false;
1187
+ }
1188
+ if (typeof item === 'string') {
1189
+ return item.trim() !== '';
1190
+ }
1191
+ if (typeof item === 'object') {
1192
+ if (Object.keys(item).length === 0) {
1193
+ return false;
1194
+ }
1195
+ if (Object.prototype.hasOwnProperty.call(item, 'text')) {
1196
+ return !tr_utils_1.TrUtils.IsEmpty(item.text);
1197
+ }
1198
+ }
1199
+ return true;
1200
+ });
1184
1201
  // if(!TrUtils.IsNull(Customer.CustName)){
1185
1202
  // Data.splice(1,0,{ text: Customer.CustName, marginTop: 2 });
1186
1203
  // Data.splice(2,0,{ text: 'Bill To :', style: 'hed', marginTop: 2 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.6.30",
3
+ "version": "1.6.32",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",