fix adding bug and decimal place bug
This commit is contained in:
CarlNation 2023-11-03 14:22:00 -04:00
parent 2a81d3fbe1
commit ad8fac3c1c

View file

@ -135,7 +135,7 @@ export default {
getAmountDue(lineItems) {
var amountDue = 0;
if (lineItems.glassParts) {
amountDue = this.getTotalPriceOfAllLineItemsAndChildParts(
amountDue += this.getTotalPriceOfAllLineItemsAndChildParts(
lineItems.glassParts,
true
);
@ -149,7 +149,7 @@ export default {
if (lineItems.vaps) {
amountDue += this.getTotalPriceOfAllLineItemsAndChildParts(lineItems.vaps, true);
}
return amountDue;
return ((amountDue * 100) / 100).toFixed(2);
},
scrollToPageTop() {
const container = document.getElementsByClassName("page-container-grouped-styles")[0];