shareneus 1.7.326 → 1.7.328

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.
@@ -167,9 +167,9 @@ class DebitNotePrintService {
167
167
  Items.forEach((Item) => {
168
168
  if (Consolidate) {
169
169
  let AfterDiscForEach = (0, math_operations_1.Divide)(Item.AfterPartDisc, Item.Qty);
170
- let CTaxAmtPerItem = (0, math_operations_1.Divide)(Item.CGST, Item.Qty);
171
- let STaxAmtPerItem = (0, math_operations_1.Divide)(Item.SGST, Item.Qty);
172
- let ITaxAmtPerItem = (0, math_operations_1.Divide)(Item.IGST, Item.Qty);
170
+ let CTaxAmtPerItem = (0, math_operations_1.Divide)(this.GetTaxAmountFromTaxes(Item, 'CGST'), Item.Qty);
171
+ let STaxAmtPerItem = (0, math_operations_1.Divide)(this.GetTaxAmountFromTaxes(Item, 'SGST'), Item.Qty);
172
+ let ITaxAmtPerItem = (0, math_operations_1.Divide)(this.GetTaxAmountFromTaxes(Item, 'IGST'), Item.Qty);
173
173
  Item.UnPr = tr_utils_1.TrUtils.FixedTo((0, math_operations_1.Add)(AfterDiscForEach, CTaxAmtPerItem, STaxAmtPerItem, ITaxAmtPerItem), DecimalsNumber);
174
174
  }
175
175
  else {
@@ -237,10 +237,10 @@ class DebitNotePrintService {
237
237
  static GetBillNameForInvoicePrint(OriginalInvoiceData, InvoicePrintData, IsBillTo) {
238
238
  let Customer = {};
239
239
  if (IsBillTo) {
240
- Customer.Name = OriginalInvoiceData.BillTo.Name;
240
+ Customer.Name = !tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo) ? OriginalInvoiceData.BillTo.Name : OriginalInvoiceData.BFrom.Name;
241
241
  Customer.Adrs = [];
242
242
  Customer.Cons = [];
243
- if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo.Adrs)) {
243
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo) && !tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo.Adrs)) {
244
244
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.A1);
245
245
  if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Adrs.A2)) {
246
246
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.A2);
@@ -249,8 +249,17 @@ class DebitNotePrintService {
249
249
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.Ct);
250
250
  }
251
251
  }
252
- Customer.GSTIN = OriginalInvoiceData.BillTo.GSTIN;
253
- if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Ph)) {
252
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BFrom) && !tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BFrom.Adrs)) {
253
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.A1);
254
+ if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Adrs.A2)) {
255
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.A2);
256
+ }
257
+ if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Adrs.Ct)) {
258
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.Ct);
259
+ }
260
+ }
261
+ Customer.GSTIN = !tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo) ? OriginalInvoiceData.BillTo.GSTIN : OriginalInvoiceData.BFrom.GSTIN;
262
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo) && !tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Ph)) {
254
263
  Customer.Cons = [
255
264
  {
256
265
  Type: 'M',
@@ -258,6 +267,14 @@ class DebitNotePrintService {
258
267
  }
259
268
  ];
260
269
  }
270
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BFrom) && !tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Ph)) {
271
+ Customer.Cons = [
272
+ {
273
+ Type: 'M',
274
+ No: OriginalInvoiceData.BFrom.Ph
275
+ }
276
+ ];
277
+ }
261
278
  }
262
279
  else {
263
280
  Customer.Name = OriginalInvoiceData.BFrom.Name;
@@ -196,34 +196,34 @@ class WOPrintService {
196
196
  [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
197
197
  [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
198
198
  [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
199
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
200
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
201
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
202
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
203
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
204
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
205
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
206
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
207
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
208
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
209
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
210
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
211
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
212
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
213
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
214
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
215
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
216
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
217
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
218
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
219
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
220
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
221
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
222
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
223
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
224
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
225
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
226
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
199
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
200
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
201
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
202
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
203
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
204
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
205
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
206
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
207
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
208
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
209
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
210
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
211
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
212
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
213
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
214
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
215
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
216
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
217
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
218
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
219
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
220
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
221
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
222
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
223
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
224
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
225
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
226
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
227
227
  [{ text: 'Est. Amount : Rs. ' + ROPrintData.EstTotal, opacity: 0.9, style: 'tableHeader', colSpan: 2, alignment: 'right', bold: true }]
228
228
  // [{ text: 'Customer confirmation for Add Job :', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
229
229
  // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
@@ -124,7 +124,6 @@ function negateNumericLikeValue(value) {
124
124
  return String(normalized === 0 ? 0 : -Math.abs(normalized));
125
125
  }
126
126
  function getFirstFieldValue(item, dbFields = []) {
127
- console.log('getFirstFieldValue', item, dbFields);
128
127
  for (const field of dbFields) {
129
128
  const value = readValue(item, field);
130
129
  if (value !== undefined && value !== null && value !== '') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.326",
3
+ "version": "1.7.328",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -204,9 +204,9 @@ export class DebitNotePrintService {
204
204
  Items.forEach((Item: any) => {
205
205
  if (Consolidate) {
206
206
  let AfterDiscForEach = Divide(Item.AfterPartDisc, Item.Qty);
207
- let CTaxAmtPerItem = Divide(Item.CGST, Item.Qty);
208
- let STaxAmtPerItem = Divide(Item.SGST, Item.Qty);
209
- let ITaxAmtPerItem = Divide(Item.IGST, Item.Qty);
207
+ let CTaxAmtPerItem = Divide(this.GetTaxAmountFromTaxes(Item, 'CGST'), Item.Qty);
208
+ let STaxAmtPerItem = Divide(this.GetTaxAmountFromTaxes(Item, 'SGST'), Item.Qty);
209
+ let ITaxAmtPerItem = Divide(this.GetTaxAmountFromTaxes(Item, 'IGST'), Item.Qty);
210
210
  Item.UnPr = TrUtils.FixedTo(Add(AfterDiscForEach, CTaxAmtPerItem, STaxAmtPerItem, ITaxAmtPerItem), DecimalsNumber);
211
211
  } else {
212
212
  Item.UnPr = TrUtils.FixPriceValue(Item.UnPr, DecimalsNumber);
@@ -239,7 +239,7 @@ export class DebitNotePrintService {
239
239
  }
240
240
 
241
241
  static ReverseItemsForInvoicePrint(argInvoiceData: any) {
242
- argInvoiceData.Services = argInvoiceData.Services;
242
+ argInvoiceData.Services = argInvoiceData.Services;
243
243
  argInvoiceData.Items = argInvoiceData.Items;
244
244
  return argInvoiceData;
245
245
  }
@@ -279,10 +279,10 @@ export class DebitNotePrintService {
279
279
  static GetBillNameForInvoicePrint(OriginalInvoiceData: any, InvoicePrintData: any, IsBillTo: boolean) {
280
280
  let Customer: any = {};
281
281
  if (IsBillTo) {
282
- Customer.Name = OriginalInvoiceData.BillTo.Name;
282
+ Customer.Name = !TrUtils.IsNull(OriginalInvoiceData.BillTo) ? OriginalInvoiceData.BillTo.Name : OriginalInvoiceData.BFrom.Name;
283
283
  Customer.Adrs = [];
284
284
  Customer.Cons = [];
285
- if (!TrUtils.IsNull(OriginalInvoiceData.BillTo.Adrs)) {
285
+ if (!TrUtils.IsNull(OriginalInvoiceData.BillTo) && !TrUtils.IsNull(OriginalInvoiceData.BillTo.Adrs)) {
286
286
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.A1);
287
287
  if (!TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Adrs.A2)) {
288
288
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.A2);
@@ -291,9 +291,18 @@ export class DebitNotePrintService {
291
291
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.Ct);
292
292
  }
293
293
  }
294
- Customer.GSTIN = OriginalInvoiceData.BillTo.GSTIN;
294
+ if (!TrUtils.IsNull(OriginalInvoiceData.BFrom) && !TrUtils.IsNull(OriginalInvoiceData.BFrom.Adrs)) {
295
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.A1);
296
+ if (!TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Adrs.A2)) {
297
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.A2);
298
+ }
299
+ if (!TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Adrs.Ct)) {
300
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.Ct);
301
+ }
302
+ }
303
+ Customer.GSTIN = !TrUtils.IsNull(OriginalInvoiceData.BillTo) ? OriginalInvoiceData.BillTo.GSTIN : OriginalInvoiceData.BFrom.GSTIN;
295
304
 
296
- if (!TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Ph)) {
305
+ if (!TrUtils.IsNull(OriginalInvoiceData.BillTo) && !TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Ph)) {
297
306
  Customer.Cons = [
298
307
  {
299
308
  Type: 'M',
@@ -302,6 +311,15 @@ export class DebitNotePrintService {
302
311
  ];
303
312
  }
304
313
 
314
+ if (!TrUtils.IsNull(OriginalInvoiceData.BFrom) && !TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Ph)) {
315
+ Customer.Cons = [
316
+ {
317
+ Type: 'M',
318
+ No: OriginalInvoiceData.BFrom.Ph
319
+ }
320
+ ];
321
+ }
322
+
305
323
  } else {
306
324
  Customer.Name = OriginalInvoiceData.BFrom.Name;
307
325
  }
@@ -224,34 +224,34 @@ export class WOPrintService {
224
224
  [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
225
225
  [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
226
226
  [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
227
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
228
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
229
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
230
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
231
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
232
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
233
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
234
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
235
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
236
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
237
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
238
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
239
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
240
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
241
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
242
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
243
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
244
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
245
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
246
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
247
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
248
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
249
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
250
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
251
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
252
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
253
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
254
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
227
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
228
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
229
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
230
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
231
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
232
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
233
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
234
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
235
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
236
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
237
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
238
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
239
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
240
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
241
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
242
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
243
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
244
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
245
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
246
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
247
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
248
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
249
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
250
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
251
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
252
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
253
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
254
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
255
255
  [{ text: 'Est. Amount : Rs. ' + ROPrintData.EstTotal, opacity: 0.9, style: 'tableHeader', colSpan: 2, alignment: 'right', bold: true }]
256
256
  // [{ text: 'Customer confirmation for Add Job :', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
257
257
  // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
@@ -137,7 +137,6 @@ function negateNumericLikeValue(value: string) {
137
137
  }
138
138
 
139
139
  export function getFirstFieldValue(item: any, dbFields: string[] = []) {
140
- console.log('getFirstFieldValue', item, dbFields);
141
140
  for (const field of dbFields) {
142
141
  const value = readValue(item, field);
143
142
  if (value !== undefined && value !== null && value !== '') {