CSR-2182: add new base mixin
This commit is contained in:
parent
4dcb26b2ee
commit
b00c0bdcf6
1 changed files with 6 additions and 0 deletions
|
|
@ -102,6 +102,12 @@ export default {
|
||||||
});
|
});
|
||||||
return filteredLineItems;
|
return filteredLineItems;
|
||||||
},
|
},
|
||||||
|
filterOutRecalibration(lineItems) {
|
||||||
|
const filteredLineItems = lineItems.filter((item) => {
|
||||||
|
return item.partType != partTypeStrings.RECALIBRATION;
|
||||||
|
});
|
||||||
|
return filteredLineItems;
|
||||||
|
},
|
||||||
getTotalPriceOfAllLineItemsAndChildParts(lineItems, includeTax) {
|
getTotalPriceOfAllLineItemsAndChildParts(lineItems, includeTax) {
|
||||||
let totalPrice = 0;
|
let totalPrice = 0;
|
||||||
lineItems.forEach((lineItem) => {
|
lineItems.forEach((lineItem) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue