corretto bug GruppoMacro la lista veniva salvata ma anche aggiornata in memoria con solo gli ID... in questo caso TABLES_NON_AGGIORNARE_IN_MEMORIA_PERCHE_DIVERSA_STRUTTURA gli dice che alcune tabelle non devono essere aggiornate in memoria.
This commit is contained in:
@@ -10692,7 +10692,7 @@ export const tools = {
|
||||
mysize: any,
|
||||
scheda: ISchedaSingola,
|
||||
isX: boolean,
|
||||
options: any,
|
||||
options?: any,
|
||||
add: number = 0
|
||||
) {
|
||||
if (!mysize) {
|
||||
|
||||
@@ -263,34 +263,34 @@ export const useProducts = defineStore('Products', {
|
||||
isPubblicato:
|
||||
(state: IProductsState) =>
|
||||
(productInfo: IProductInfo): boolean => {
|
||||
return state.isPubblicatoById(productInfo.idStatoProdotto);
|
||||
return state.isPubblicatoById(productInfo?.idStatoProdotto);
|
||||
},
|
||||
|
||||
isNovita:
|
||||
(state: IProductsState) =>
|
||||
(productInfo: IProductInfo): boolean => {
|
||||
return state.isNovitaById(productInfo.date_pub);
|
||||
return state.isNovitaById(productInfo?.date_pub);
|
||||
},
|
||||
|
||||
isNonVendibile:
|
||||
(state: IProductsState) =>
|
||||
(productInfo: IProductInfo): boolean => {
|
||||
return (
|
||||
!state.isPubblicatoById(productInfo.idStatoProdotto) &&
|
||||
!state.isProssimaUscitaById(productInfo.idStatoProdotto)
|
||||
!state.isPubblicatoById(productInfo?.idStatoProdotto) &&
|
||||
!state.isProssimaUscitaById(productInfo?.idStatoProdotto)
|
||||
);
|
||||
},
|
||||
|
||||
isProssimaUscita:
|
||||
(state: IProductsState) =>
|
||||
(productInfo: IProductInfo): boolean => {
|
||||
return state.isProssimaUscitaById(productInfo.idStatoProdotto);
|
||||
return state.isProssimaUscitaById(productInfo?.idStatoProdotto);
|
||||
},
|
||||
|
||||
isPrevendita:
|
||||
(state: IProductsState) =>
|
||||
(productInfo: IProductInfo): boolean => {
|
||||
return state.isPrevenditaById(productInfo.idStatoProdotto);
|
||||
return state.isPrevenditaById(productInfo?.idStatoProdotto);
|
||||
},
|
||||
|
||||
getDescrStatiProdottoByIdStatoProdotto:
|
||||
|
||||
@@ -995,6 +995,9 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
const { table } = mydata;
|
||||
|
||||
try {
|
||||
if (shared_consts.TABLES_NON_AGGIORNARE_IN_MEMORIA_PERCHE_DIVERSA_STRUTTURA.includes(table))
|
||||
return;
|
||||
|
||||
const mylist = this.getListByTable(table!);
|
||||
const mykey = fieldsTable.getKeyByTable(table!);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user