shareneus 1.5.53 → 1.5.55
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,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, _c, _d, _e;
|
|
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,23 @@ 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
|
+
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
|
+
}
|
|
385
403
|
return { stack: DescData };
|
|
386
404
|
}
|
|
387
405
|
else {
|