- ordinamento aggiornare la pagina "templates" per Fatturati ultimo anno

- bestseller
This commit is contained in:
Surya Paolo
2025-05-02 10:10:04 +02:00
parent 721d2ac38c
commit 8a20186e59
21 changed files with 131 additions and 62 deletions

View File

@@ -533,6 +533,11 @@ export const costanti = {
ESAURITI: '2',
},
RIGENERAMOD: {
SOVRASCRIVI: '0',
AGGIUNGI_SOLO: '1',
},
STATO: {
TUTTI: '0',
IN_COMMERCIO: '1',

View File

@@ -1926,7 +1926,7 @@ export const useProducts = defineStore('Products', {
},
bestseller: {
show: false,
primiNInClassifica: 20
quantiFattRaggiunti: 50
}
}
}

View File

@@ -216,7 +216,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
getters: {
sovrascriviSchedaFromTemplate: (state: IGlobalState) => (idTemplate: string, origScheda: ISchedaSingola) => {
sovrascriviSchedaFromTemplate: (state: IGlobalState) => (idTemplate: string, origScheda: ISchedaSingola, optcatalogo: IOptCatalogo) => {
const arrschede: ISchedaSingola[] = state.myschedas
const myfindscheda = arrschede.find((recscheda: ISchedaSingola) => recscheda.scheda?._id === idTemplate)