shareneus 1.5.52 → 1.5.54

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.
@@ -226,7 +226,7 @@ export declare class InvoiceLetterheadPdfService {
226
226
  } | {
227
227
  text: any;
228
228
  alignment: string;
229
- width?: undefined;
229
+ width: string;
230
230
  })[];
231
231
  style: string;
232
232
  } | {
@@ -315,6 +315,7 @@ 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;
318
319
  const hasValue = !tr_utils_1.TrUtils.IsFixedZero(item[column.Field]) && !tr_utils_1.TrUtils.IsNull(item[column.Field]) || (column.text === 'Line Total');
319
320
  if (hasValue) {
320
321
  if (item[column.Field] === itemLabel) {
@@ -382,6 +383,8 @@ function buildItemRow(item, columns, column, itemLabel) {
382
383
  if (!tr_utils_1.TrUtils.IsEmpty(item['EDesc'])) {
383
384
  DescData.push({ text: item['EDesc'].toString(), color: 'grey' });
384
385
  }
386
+ // DescData.push({ text: item['MPN'] ? 'MPN: ' + item['MPN'] : '', color: 'grey', italics: true, marginTop: 2 });
387
+ DescData.push({ text: `B.No: ${(_a = item['Batch']) === null || _a === void 0 ? void 0 : _a.BN} | Ex.Dt: ${my_date_1.MyDate.ConvertUTCDateToReadableExDate((_b = item['Batch']) === null || _b === void 0 ? void 0 : _b.ExDt)} | MRP: ${item['MRP']}`, marginTop: 5 });
385
388
  return { stack: DescData };
386
389
  }
387
390
  else {
@@ -55,7 +55,7 @@ export declare class SharedPDFService {
55
55
  } | {
56
56
  text: any;
57
57
  alignment: string;
58
- width?: undefined;
58
+ width: string;
59
59
  })[];
60
60
  style: string;
61
61
  };
@@ -395,9 +395,10 @@ class SharedPDFService {
395
395
  }
396
396
  static GetPrintType(type) {
397
397
  return {
398
- // marginLeft: 10,
399
- columns: [{ text: '', width: 120 },
400
- { text: type, alignment: 'center' }, { text: '', width: 140 }
398
+ columns: [
399
+ { text: '', width: 120 },
400
+ { text: type, alignment: 'center', width: '*' },
401
+ { text: '', width: 120 }
401
402
  ],
402
403
  style: 'Receiptheader1'
403
404
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.5.52",
3
+ "version": "1.5.54",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",