Corretto incongruenze OrdersCart
This commit is contained in:
@@ -260,7 +260,7 @@ module.exports.updateTotals = function (order) {
|
||||
let sconti_da_applicare = [];
|
||||
if (order.scontisticas) {
|
||||
|
||||
let qtadascontare = order.quantity
|
||||
let qtadascontare = order.quantity + order.quantitypreordered
|
||||
let qtanonscontata = 0
|
||||
|
||||
while (qtadascontare > 0) {
|
||||
@@ -300,7 +300,7 @@ module.exports.updateTotals = function (order) {
|
||||
}
|
||||
|
||||
} else {
|
||||
mypricecalc = order.price * order.quantity;
|
||||
mypricecalc = (order.price * order.quantity) + (order.price * order.quantitypreordered);
|
||||
}
|
||||
order.TotalPriceProduct += mypricecalc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user