Merge pull request #2532 from Safelite/feature/Digital/CASH-700
CASH-700 include decimal in total afterpay price
This commit is contained in:
commit
67f94a3fc1
1 changed files with 6 additions and 2 deletions
|
|
@ -117,6 +117,9 @@ export default {
|
||||||
);
|
);
|
||||||
return displayPrice != this.additionalButtonData.strikeThroughPrice;
|
return displayPrice != this.additionalButtonData.strikeThroughPrice;
|
||||||
},
|
},
|
||||||
|
totalAfterpayPrice() {
|
||||||
|
return parseFloat(this.buttonAuxillaryCopy.replace("$", ""));
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getRouterLinkDisplayTextFromCopy,
|
getRouterLinkDisplayTextFromCopy,
|
||||||
|
|
@ -134,11 +137,12 @@ export default {
|
||||||
.filter((lineItem) => lineItem);
|
.filter((lineItem) => lineItem);
|
||||||
},
|
},
|
||||||
afterpayPrice() {
|
afterpayPrice() {
|
||||||
const decimalPrice = parseFloat(this.buttonAuxillaryCopy.replace("$", ""));
|
const decimalPrice = this.totalAfterpayPrice;
|
||||||
return "$" + (decimalPrice / 4).toFixed(2);
|
return "$" + (decimalPrice / 4).toFixed(2);
|
||||||
},
|
},
|
||||||
truncatedSinglePayment() {
|
truncatedSinglePayment() {
|
||||||
return "$" + Math.trunc(this.buttonAuxillaryCopy.replace("$", ""));
|
const decimalPrice = this.totalAfterpayPrice;
|
||||||
|
return "$" + decimalPrice.toFixed(2);
|
||||||
},
|
},
|
||||||
hasPackageDiscount() {
|
hasPackageDiscount() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue