- corretto la gestione degli Sconti

- Duplicare un Catalogo
This commit is contained in:
Surya Paolo
2025-06-11 01:05:20 +02:00
parent 56d1870bc1
commit d99ad47483
17 changed files with 296 additions and 147 deletions

View File

@@ -62,6 +62,7 @@ function getRecordOrdersCartEmpty(): IOrderCart {
note: '',
note_per_gestore: '',
codice_sconto:'',
descr_sconto: '',
note_per_admin: '',
note_ordine_gas: '',
};
@@ -611,8 +612,10 @@ export const useProducts = defineStore('Products', {
state.orders = res.data.orders;
}
if (res && res.data.mycart) {
state.cart = res.data.mycart;
}
if (res && res.data.cart) {
// console.log('RISULTANTE CATEGORIES DAL SERVER = ', res.data.categories)
state.cart = res.data.cart;
}
},
@@ -1391,6 +1394,8 @@ export const useProducts = defineStore('Products', {
let ris = null;
console.log('/cart/' + this.userActive._id + '/createorderscart', cart_id);
ris = await Api.SendReq(
'/cart/' + this.userActive._id + '/createorderscart',
'POST',