shareneus 1.5.61 → 1.5.62

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.
@@ -315,7 +315,6 @@ function addLaborHeaderAndTotalRows(Labor, laborLabel, laborTotalLabel, ShowTaxC
315
315
  Labor.unshift(dummypartadding1);
316
316
  }
317
317
  function buildItemRow(item, columns, column, itemLabel) {
318
- var _a, _b, _c, _d, _e;
319
318
  const hasValue = !tr_utils_1.TrUtils.IsFixedZero(item[column.Field]) && !tr_utils_1.TrUtils.IsNull(item[column.Field]) || (column.text === 'Line Total');
320
319
  if (hasValue) {
321
320
  if (item[column.Field] === itemLabel) {
@@ -384,22 +383,22 @@ function buildItemRow(item, columns, column, itemLabel) {
384
383
  DescData.push({ text: item['EDesc'].toString(), color: 'grey' });
385
384
  }
386
385
  // DescData.push({ text: item['MPN'] ? 'MPN: ' + item['MPN'] : '', color: 'grey', italics: true, marginTop: 2 });
387
- const isItemRow = itemLabel === 'Items';
388
- const hasBatchOrMrp = !tr_utils_1.TrUtils.IsNull((_a = item['Batch']) === null || _a === void 0 ? void 0 : _a.BN) || !tr_utils_1.TrUtils.IsNull((_b = item['Batch']) === null || _b === void 0 ? void 0 : _b.ExDt) || !tr_utils_1.TrUtils.IsNull(item['MRP']);
389
- if (isItemRow && hasBatchOrMrp) {
390
- const exDate = !tr_utils_1.TrUtils.IsNull((_c = item['Batch']) === null || _c === void 0 ? void 0 : _c.ExDt) ? my_date_1.MyDate.ConvertUTCDateToReadableExDate((_d = item['Batch']) === null || _d === void 0 ? void 0 : _d.ExDt) : '';
391
- DescData.push({
392
- marginTop: 5,
393
- text: [
394
- { text: 'B.No: ', bold: true },
395
- { text: (((_e = item['Batch']) === null || _e === void 0 ? void 0 : _e.BN) || '') + '' },
396
- { text: ' | Ex.Dt: ', bold: true },
397
- { text: exDate + '' },
398
- { text: ' | MRP: ', bold: true },
399
- { text: (tr_utils_1.TrUtils.IsNull(item['MRP']) ? '' : item['MRP']) + '' }
400
- ]
401
- });
402
- }
386
+ // const isItemRow = itemLabel === 'Items';
387
+ // const hasBatchOrMrp = !TrUtils.IsNull(item['Batch']?.BN) || !TrUtils.IsNull(item['Batch']?.ExDt) || !TrUtils.IsNull(item['MRP']);
388
+ // if (isItemRow && hasBatchOrMrp) {
389
+ // const exDate = !TrUtils.IsNull(item['Batch']?.ExDt) ? MyDate.ConvertUTCDateToReadableExDate(item['Batch']?.ExDt) : '';
390
+ // DescData.push({
391
+ // marginTop: 5,
392
+ // text: [
393
+ // { text: 'B.No: ', bold: true },
394
+ // { text: (item['Batch']?.BN || '') + '' },
395
+ // { text: ' | Ex.Dt: ', bold: true },
396
+ // { text: exDate + '' },
397
+ // { text: ' | MRP: ', bold: true },
398
+ // { text: (TrUtils.IsNull(item['MRP']) ? '' : item['MRP']) + '' }
399
+ // ]
400
+ // });
401
+ // }
403
402
  return { stack: DescData };
404
403
  }
405
404
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.5.61",
3
+ "version": "1.5.62",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",