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 = !
|
|
389
|
-
if (isItemRow && hasBatchOrMrp) {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
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 {
|