- il catalogo si aggiorna in base alle impostazioni del template anche per la "Stampa"
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user