CSR-1392
fix adding bug and decimal place bug
This commit is contained in:
parent
2a81d3fbe1
commit
ad8fac3c1c
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue