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.
|
@@ -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 {
|
|
@@ -395,9 +395,10 @@ class SharedPDFService {
|
|
|
395
395
|
}
|
|
396
396
|
static GetPrintType(type) {
|
|
397
397
|
return {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
{ text: type, alignment: 'center'
|
|
398
|
+
columns: [
|
|
399
|
+
{ text: '', width: 120 },
|
|
400
|
+
{ text: type, alignment: 'center', width: '*' },
|
|
401
|
+
{ text: '', width: 120 }
|
|
401
402
|
],
|
|
402
403
|
style: 'Receiptheader1'
|
|
403
404
|
};
|