- il catalogo si aggiorna in base alle impostazioni del template anche per la "Stampa"

This commit is contained in:
Surya Paolo
2025-05-14 20:18:04 +02:00
parent f30cbf072a
commit 300b8434ef
9 changed files with 132 additions and 34 deletions

View File

@@ -1936,6 +1936,32 @@ export const useProducts = defineStore('Products', {
return arr
},
getOptCatalogoPrintTemplate() {
// Ottieni l'array delle pagine che in cataloghi sono dimensioni_def.isTemplate
let arr: any = [];
const globalStore = useGlobalStore();
arr.push({ label: '[Nessuna]', value: '' });
for (const myelem of globalStore.myelems) {
if (myelem.catalogo && myelem.catalogo.print_isTemplate) {
const page = globalStore.getPageById(myelem.idPage);
let pagename = page ? page.title! : '';
if (pagename) {
pagename = '[Pag: ' + pagename + '] ';
}
const mylabel = pagename;
arr.push({ label: mylabel, value: myelem._id });
}
};
return arr
},
getSchedeOpt(arrschede: ISchedaSingola[], tag?: string): any[] {
let arr: any = [];