- corretto la gestione degli Sconti
- Duplicare un Catalogo
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user