Poter inserire un Ordine anche per un altra persona... (Modalità Cassa)

This commit is contained in:
Surya Paolo
2024-01-16 23:00:10 +01:00
parent a2c9dcb38c
commit 3d1a330fa2
3 changed files with 13 additions and 4 deletions

View File

@@ -245,17 +245,20 @@ class Cart {
} else {
mypricecalc = (order.price * order.quantity) + (order.price * order.quantitypreordered);
order.TotalPriceProductCalc += mypricecalc;
if (updatecalcprice) {
order.TotalPriceProduct += mypricecalc;
}
}
// Aggiorna Totali
order.TotalPriceProductCalc += mypricecalc;
if (updatecalcprice) {
order.TotalPriceProduct += mypricecalc;
}
// Qui lo calcolo sempre, anche se lo cambio manualmente
this.totalPriceCalc += mypricecalc;
this.totalPrice += order.TotalPriceProduct;
}
this.totalPrice = parseFloat(this.totalPrice.toFixed(2))
this.totalPriceCalc = parseFloat(this.totalPriceCalc.toFixed(2))
} catch (e) {
console.error('Err: ', e);