view: fix total on summary purchase.
This commit is contained in:
parent
f6146c177b
commit
65e99b7ce2
@ -92,7 +92,7 @@
|
|||||||
calculateTotal(lines) {
|
calculateTotal(lines) {
|
||||||
let total = 0;
|
let total = 0;
|
||||||
lines.forEach(line => {
|
lines.forEach(line => {
|
||||||
total += this.calculateSubtotal(line.price, line.quantity);
|
total += this.calculateSubtotal(line.unit_price, line.quantity);
|
||||||
});
|
});
|
||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user