- newsletter: prende la lista utenti (flag news_on)
- Abilita a Tutti la Newsletter news_on - isCommerciale - JobsInProgress - PCB: Corretto Totali che era a zero
This commit is contained in:
@@ -96,7 +96,7 @@ export default defineComponent({
|
||||
|
||||
const generatinglist = ref(false)
|
||||
|
||||
const optrigenera = ref<IOptRigenera>({ visibilitaDisp: costanti.DISP.DISPONIBILI, stato: costanti.STATO.IN_COMMERCIO, rig_mod: false })
|
||||
const optrigenera = ref<IOptRigenera>({ visibilitaDisp: costanti.DISP.DISPONIBILI, stato: costanti.STATO.IN_COMMERCIO, rig_mod: costanti.RIGENERAMOD.SOVRASCRIVI })
|
||||
|
||||
const optcatalogo = ref(<IOptCatalogo>{ ...props.modelValue });
|
||||
|
||||
@@ -567,6 +567,13 @@ export default defineComponent({
|
||||
|
||||
const trovatocatalogo = getCatalogoByMyPage.value
|
||||
|
||||
if (boolfiltroVuotoProductTypes && boolfiltroVuotoExcludeProductTypes && boolfiltroVuotoidTipologie && boolfiltroVuotoidTipoFormato && boolfiltroVuotoEditore && boolfiltroVuotoCollane && boolfiltroVuotoArgomenti
|
||||
&& (catstr === '' )
|
||||
) {
|
||||
// Nessun filtro selezionato, pertanto non mostrare niente!
|
||||
return []
|
||||
}
|
||||
|
||||
const arrris = products
|
||||
.filter((product: IProduct) => {
|
||||
if (!product || !product.productInfo) {
|
||||
@@ -580,7 +587,7 @@ export default defineComponent({
|
||||
|
||||
if (!(optrigenera.value.visibilitaDisp === costanti.DISP.TUTTI ||
|
||||
(optrigenera.value.visibilitaDisp === costanti.DISP.ESAURITI && productStore.isEsaurito(product)) ||
|
||||
(optrigenera.value.visibilitaDisp === costanti.DISP.DISPONIBILI && (productStore.isDisponibile(product) || productStore.isPrevendita(product))))) {
|
||||
(optrigenera.value.visibilitaDisp === costanti.DISP.DISPONIBILI && (productStore.isDisponibile(product) || productStore.isPrevendita(product.productInfo))))) {
|
||||
return false;
|
||||
}
|
||||
if (!(optrigenera.value.stato === costanti.STATO.TUTTI ||
|
||||
@@ -608,9 +615,12 @@ export default defineComponent({
|
||||
if (!optcatalogo.value.showListaArgomenti) {
|
||||
|
||||
} else {
|
||||
hasCategoria = (catstr === costanti.NO_CATEGORY)
|
||||
? (boolfiltroVuotoCat ? se_tutti_veri : product.productInfo.idCatProds.length === 0)
|
||||
: !catstr || (product.productInfo.idCatProds || []).includes(catstr);
|
||||
const isCatVuoto = boolfiltroVuotoCat || (product.productInfo.idCatProds || []).length === 0;
|
||||
const isCatSenzaArgomento = catstr === costanti.NO_CATEGORY;
|
||||
const isCatCorretto = !catstr || (product.productInfo.idCatProds || []).includes(catstr);
|
||||
hasCategoria = (isCatSenzaArgomento && isCatVuoto)
|
||||
? true
|
||||
: isCatCorretto;
|
||||
|
||||
hasArgomentiCat = boolfiltroVuotoArgomenti
|
||||
? se_tutti_veri
|
||||
@@ -1098,11 +1108,13 @@ export default defineComponent({
|
||||
// console.log('indadded', indadded)
|
||||
if (optcatalogo.value.maxnumlibri! > 0) {
|
||||
if (indtotale > optcatalogo.value.maxnumlibri!)
|
||||
return
|
||||
break
|
||||
|
||||
//} else {
|
||||
// if (indtotale > 5000)
|
||||
// return
|
||||
|
||||
|
||||
} else {
|
||||
// if (indtotale > 1000)
|
||||
// break
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1207,7 +1219,8 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
optrigenera.value.visibilitaDisp = tools.getCookie((showListaArgomenti.value ? 'INC_ES_' : '') + 'VIS_DISP', costanti.DISP.DISPONIBILI)
|
||||
optrigenera.value.rig_mod = tools.getCookie((showListaArgomenti.value ? 'INC_ES_' : '') + 'RIG_MOD', costanti.RIGENERAMOD.AGGIUNGI_SOLO)
|
||||
if (!showListaArgomenti.value)
|
||||
optrigenera.value.rig_mod = tools.getCookie((showListaArgomenti.value ? 'INC_ES_' : '') + 'RIG_MOD', costanti.RIGENERAMOD.AGGIUNGI_SOLO)
|
||||
optrigenera.value.stato = tools.getCookie((showListaArgomenti.value ? 'INC_ES_' : '') + 'VIS_STATO', costanti.STATO.IN_COMMERCIO)
|
||||
|
||||
loadpage.value = false
|
||||
|
||||
Reference in New Issue
Block a user