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