shareneus 1.6.31 → 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.
@@ -1181,7 +1181,23 @@ class SharedPDFService {
1181
1181
  this.GetCustPhoneNumber(Customer, Type), this.GetCustomerGSTIN(Customer), this.GetCustomerDLNo(Customer),
1182
1182
  ,
1183
1183
  this.GetCustomerName(Customer.CustName)]
1184
- .filter(item => item.text !== null && item.text !== undefined && item.text !== '');
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
+ });
1185
1201
  // if(!TrUtils.IsNull(Customer.CustName)){
1186
1202
  // Data.splice(1,0,{ text: Customer.CustName, marginTop: 2 });
1187
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.31",
3
+ "version": "1.6.32",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",