shareneus 1.4.93 → 1.4.94

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdjustmentDrugPDFService = void 0;
4
4
  const my_date_1 = require("../../utils/my-date");
5
+ const tr_utils_1 = require("../../utils/tr-utils");
5
6
  class AdjustmentDrugPDFService {
6
7
  static GetPrint(ReOrderPointData, DatesDetails) {
7
8
  // console.log('ReOrderPointData', ReOrderPointData);
@@ -135,7 +136,7 @@ class AdjustmentDrugPDFService {
135
136
  let dataRow = [];
136
137
  dataRow.push({ text: index + 1, alignment: 'center' });
137
138
  dataRow.push({ text: item.Name });
138
- dataRow.push({ text: item.Batch.BN, alignment: 'left', style: ['headerstyle'], });
139
+ dataRow.push({ text: tr_utils_1.TrUtils.IsNull(item.Batch) ? '' : item.Batch.BN, alignment: 'left', style: ['headerstyle'], });
139
140
  // dataRow.push({ text: MyDate.ConvertUTCDateToReadableExDateTxt(item.Batch.ExDt), alignment: 'center', style: ['headerstyle'], });
140
141
  dataRow.push({ text: item.Qty, alignment: 'right', style: ['headerstyle'], });
141
142
  // dataRow.push({ text: TrUtils.FixPriceValue(item.Batch.Cost, DecimalsNumber), alignment: 'right', style: ['headerstyle'], });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.4.93",
3
+ "version": "1.4.94",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",