- Modifiche a ProductInfo... Continua

This commit is contained in:
Surya Paolo
2025-08-29 23:34:37 +02:00
parent 5d8e38fea6
commit 4f4297ca21
77 changed files with 3830 additions and 1281 deletions

View File

@@ -537,7 +537,6 @@ export const useGlobalStore = defineStore('GlobalStore', {
else if (table === 'producers') ris = state.producers;
else if (table === 'storehouses') ris = state.storehouses;
else if (table === 'providers') ris = state.providers;
else if (table === 'productinfos') ris = Products.productInfos;
// else if (table === 'products') ris = Products.products
else if (table === 'gasordines') ris = state.gasordines;
else if (table === 'scontisticas') ris = state.scontisticas;
@@ -2076,9 +2075,6 @@ export const useGlobalStore = defineStore('GlobalStore', {
this.gallery = res.data.gallery ? [...res.data.gallery] : [];
this.calzoom = res.data.calzoom ? [...res.data.calzoom] : [];
Products.products = res.data.products ? [...res.data.products] : [];
Products.productInfos = res.data.productInfos
? [...res.data.productInfos]
: [];
this.producers = res.data.producers ? [...res.data.producers] : [];
this.storehouses = res.data.storehouses ? [...res.data.storehouses] : [];
this.providers = res.data.providers ? [...res.data.providers] : [];
@@ -3154,7 +3150,6 @@ export const useGlobalStore = defineStore('GlobalStore', {
try {
if (table === 'products') {
await productStore.loadProductById(id, true);
} else if (table === 'productinfos') {
}
} catch (error) {
console.error("Errore durante l'aggiornamento della tabella in memoria:", error);