Corretto incongruenze OrdersCart

This commit is contained in:
Surya Paolo
2023-12-21 01:34:33 +01:00
parent 7af909d2be
commit 2ab4bd4e2a
4 changed files with 110 additions and 18 deletions

View File

@@ -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;