- aggiunto note 'note_ordine_gas'

- corretto bug
This commit is contained in:
Surya Paolo
2024-03-26 15:36:49 +01:00
parent bf1e9b83ba
commit 39687265c8
10 changed files with 83 additions and 14 deletions

View File

@@ -94,6 +94,9 @@ const OrdersCartSchema = new Schema({
note_per_gestore: {
type: String
},
note_ordine_gas: {
type: String
},
note_per_admin: {
type: String
},
@@ -1079,7 +1082,8 @@ module.exports.updateOrdersCartTotals = async function (idOrdersCart, update) {
let newOrdersCart = CartClass.constructByCart(orderscart);
await newOrdersCart.updatecarttotals(false);
newOrdersCart.updatecarttotals(false);
await newOrdersCart.updateExtraOrder();
if (update) {
await OrdersCart.findOneAndUpdate({ _id: idOrdersCart }, {