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