- Export Lista
- Ordinamento - PDF Risolto Salvataggio ed invio al server direttamente.
This commit is contained in:
@@ -129,6 +129,10 @@ export const useProducts = defineStore('Products', {
|
||||
|
||||
},
|
||||
|
||||
getCollane: (state: IProductsState) => (): ICollana[] => {
|
||||
return state.collane
|
||||
},
|
||||
|
||||
isDisponibile: (state: IProductsState) => (product: IProduct): boolean => {
|
||||
return product?.arrvariazioni?.[0]?.quantita > 1
|
||||
},
|
||||
@@ -365,7 +369,7 @@ export const useProducts = defineStore('Products', {
|
||||
},
|
||||
|
||||
getTotaliProdottiByIdCollana: (state: IProductsState) => (idCollana: string): number => {
|
||||
const myfirstcat = state.collanetotali!.find((rec: ICollaneTotali) => rec._id === idCollana)
|
||||
const myfirstcat = state.collane.find((rec: ICollaneTotali) => rec._id === idCollana)
|
||||
|
||||
if (myfirstcat) {
|
||||
return myfirstcat.quanti!
|
||||
@@ -1759,6 +1763,8 @@ export const useProducts = defineStore('Products', {
|
||||
|
||||
let arr: any = []
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
arr.push({ label: '[Nessuna]', value: '' })
|
||||
|
||||
if (arrschede) {
|
||||
@@ -1766,7 +1772,8 @@ export const useProducts = defineStore('Products', {
|
||||
let pagename = ''
|
||||
if (recscheda.scheda) {
|
||||
if (recscheda.idPageOrig) {
|
||||
const page = this.mypage?.find((page) => (`${page._id}`) === recscheda.idPageOrig)
|
||||
const page = globalStore.getPageById(recscheda.idPageOrig)
|
||||
// const page = this.mypage?.find((page) => (`${page._id}`) === recscheda.idPageOrig)
|
||||
pagename = page ? page.title! : ''
|
||||
}
|
||||
if (pagename)
|
||||
|
||||
Reference in New Issue
Block a user