CSR-1384: quick fixes for dev on add vaps modal feature, in progress
This commit is contained in:
parent
73557f4c0f
commit
d8a9596aca
2 changed files with 4 additions and 5 deletions
|
|
@ -59,7 +59,7 @@ export default {
|
||||||
return item.partType === "RAIN DEFENSE";
|
return item.partType === "RAIN DEFENSE";
|
||||||
});
|
});
|
||||||
|
|
||||||
const price = lineItem.laborAmount + lineItem.sellingPrice + lineItem.kitPrice;
|
const price = lineItem?.laborAmount + lineItem?.sellingPrice + lineItem?.kitPrice;
|
||||||
return parseFloat(price).toFixed(2);
|
return parseFloat(price).toFixed(2);
|
||||||
},
|
},
|
||||||
wipersPrice() {
|
wipersPrice() {
|
||||||
|
|
@ -68,7 +68,7 @@ export default {
|
||||||
return item.partType.includes(" WIPER");
|
return item.partType.includes(" WIPER");
|
||||||
});
|
});
|
||||||
lineItems?.forEach((item) => {
|
lineItems?.forEach((item) => {
|
||||||
price += item.laborAmount + item.sellingPrice + item.kitPrice;
|
price += item?.laborAmount + item?.sellingPrice + item?.kitPrice;
|
||||||
});
|
});
|
||||||
return parseFloat(price).toFixed(2);
|
return parseFloat(price).toFixed(2);
|
||||||
},
|
},
|
||||||
|
|
@ -87,12 +87,12 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.showAddWipers) {
|
if (this.showAddWipers) {
|
||||||
const answer = getAnswer("ADD WIPER BLADES", this.answersCmsData);
|
const answer = getAnswer("WipersModal", this.answersCmsData);
|
||||||
answer.SubText = "+$" + this.wipersPrice;
|
answer.SubText = "+$" + this.wipersPrice;
|
||||||
answers.push(answer);
|
answers.push(answer);
|
||||||
}
|
}
|
||||||
if (this.showAddRainDefense) {
|
if (this.showAddRainDefense) {
|
||||||
const answer = getAnswer("ADD RAIN DEFENSE", this.answersCmsData);
|
const answer = getAnswer("RainDefenseModal", this.answersCmsData);
|
||||||
answer.SubText = "+$" + this.rainDefensePrice;
|
answer.SubText = "+$" + this.rainDefensePrice;
|
||||||
answers.push(answer);
|
answers.push(answer);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,6 @@ export default {
|
||||||
null,
|
null,
|
||||||
"payment-method"
|
"payment-method"
|
||||||
);
|
);
|
||||||
console.log("rainDefensePromise: ", rainDefensePromise);
|
|
||||||
|
|
||||||
const supportingItemsPromise = baseMixin.methods.dispatchStoreActionWithLogging(
|
const supportingItemsPromise = baseMixin.methods.dispatchStoreActionWithLogging(
|
||||||
storeActions.GET_SUPPORTING_ITEMS,
|
storeActions.GET_SUPPORTING_ITEMS,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue