shareneus 1.4.1 → 1.4.2
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.
|
@@ -618,52 +618,54 @@ class PurchaseOrderPDFService {
|
|
|
618
618
|
});
|
|
619
619
|
body.push(dataRow);
|
|
620
620
|
});
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
else {
|
|
631
|
-
if (column.text === 'Line Total' || column.Field === 'QtyAndUoM'
|
|
632
|
-
|| column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt') {
|
|
633
|
-
dataRow.push({ text: (_b = part[column.Field]) === null || _b === void 0 ? void 0 : _b.toString(), alignment: 'right', nowrap: true });
|
|
634
|
-
}
|
|
635
|
-
else if (column.Field1 === 'UnCo') {
|
|
636
|
-
dataRow.push({ text: (_c = part[column.Field1]) === null || _c === void 0 ? void 0 : _c.toString(), alignment: 'right', nowrap: true });
|
|
621
|
+
if (!tr_utils_1.TrUtils.IsNull(Ops)) {
|
|
622
|
+
Ops === null || Ops === void 0 ? void 0 : Ops.forEach((part) => {
|
|
623
|
+
var dataRow = [];
|
|
624
|
+
columns.forEach((column) => {
|
|
625
|
+
var _a, _b, _c, _d;
|
|
626
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field])
|
|
627
|
+
|| column.text === 'Line Total' || column.text === 'Unit Price') {
|
|
628
|
+
if (part[column.Field] === 'Spare Items') {
|
|
629
|
+
dataRow.push({ text: (_a = part[column.Field]) === null || _a === void 0 ? void 0 : _a.toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
637
630
|
}
|
|
638
631
|
else {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
646
|
-
dataRow.push({ stack: DescData });
|
|
632
|
+
if (column.text === 'Line Total' || column.Field === 'QtyAndUoM'
|
|
633
|
+
|| column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt') {
|
|
634
|
+
dataRow.push({ text: (_b = part[column.Field]) === null || _b === void 0 ? void 0 : _b.toString(), alignment: 'right', nowrap: true });
|
|
635
|
+
}
|
|
636
|
+
else if (column.Field1 === 'UnCo') {
|
|
637
|
+
dataRow.push({ text: (_c = part[column.Field1]) === null || _c === void 0 ? void 0 : _c.toString(), alignment: 'right', nowrap: true });
|
|
647
638
|
}
|
|
648
639
|
else {
|
|
649
|
-
dataRow.push(
|
|
640
|
+
// dataRow.push(part[column.Field].toString());
|
|
641
|
+
if (column.Field === 'Desc') {
|
|
642
|
+
let DescData = [];
|
|
643
|
+
DescData.push((_d = part[column.Field]) === null || _d === void 0 ? void 0 : _d.toString());
|
|
644
|
+
if (!tr_utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
645
|
+
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
646
|
+
}
|
|
647
|
+
dataRow.push({ stack: DescData });
|
|
648
|
+
}
|
|
649
|
+
else {
|
|
650
|
+
dataRow.push({ text: part[column.Field].toString() });
|
|
651
|
+
}
|
|
650
652
|
}
|
|
651
653
|
}
|
|
652
654
|
}
|
|
653
|
-
}
|
|
654
|
-
else {
|
|
655
|
-
if (column.Field === 'SNo') {
|
|
656
|
-
part[column.Field] = SNo;
|
|
657
|
-
SNo = SNo + 1;
|
|
658
|
-
}
|
|
659
655
|
else {
|
|
660
|
-
|
|
656
|
+
if (column.Field === 'SNo') {
|
|
657
|
+
part[column.Field] = SNo;
|
|
658
|
+
SNo = SNo + 1;
|
|
659
|
+
}
|
|
660
|
+
else {
|
|
661
|
+
part[column.Field] = '';
|
|
662
|
+
}
|
|
663
|
+
dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
|
|
661
664
|
}
|
|
662
|
-
|
|
663
|
-
|
|
665
|
+
});
|
|
666
|
+
body.push(dataRow);
|
|
664
667
|
});
|
|
665
|
-
|
|
666
|
-
});
|
|
668
|
+
}
|
|
667
669
|
return body;
|
|
668
670
|
}
|
|
669
671
|
static PartsTableBody(Items, Ops, PrintPartNo) {
|
|
@@ -41,7 +41,9 @@ class PurchaseOrderPrintService {
|
|
|
41
41
|
}
|
|
42
42
|
PurchaseOrderPDFData.Items = tr_utils_1.TrUtils.Stringify(PurchaseOrderData.Items);
|
|
43
43
|
PurchaseOrderPDFData.Ops = tr_utils_1.TrUtils.Stringify(PurchaseOrderData.Ops);
|
|
44
|
-
|
|
44
|
+
if (!tr_utils_1.TrUtils.IsNull(PurchaseOrderPDFData.Ops)) {
|
|
45
|
+
PurchaseOrderPDFData.Ops = this.GetLaborPrintInfo(PurchaseOrderPDFData.Ops, TaxCodes, 'AT');
|
|
46
|
+
}
|
|
45
47
|
// PurchaseOrderPDFData.Items = this.GetPartsDescription(PurchaseOrderPDFData.Items);
|
|
46
48
|
PurchaseOrderPDFData.Items = this.GetQtyWithUoM(PurchaseOrderPDFData.Items);
|
|
47
49
|
let DetailedTotalsInfo;
|