- aggiornamento cataloghi.

possibilità di estrapolare i dati da GM direttamente
- migrazione delle tabelle di GM in locale
- corretto l'ordinamento del Catalogo
This commit is contained in:
Surya Paolo
2025-04-18 13:23:52 +02:00
parent 14375d6b15
commit 6d0efaadb9
16 changed files with 452 additions and 73 deletions

View File

@@ -441,6 +441,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
else if (table === 'catprods_gas') ris = Products.catprods_gas
else if (table === 'authors') ris = Products.authors
else if (table === 'publishers') ris = Products.publishers
else if (table === 't_web_statiprodottos') ris = Products.stati_prodotto
else if (table === 'catais') ris = state.catAI
else if (table === 'queryais') ris = state.queryAIList
else if (table === 'sharewithus') ris = state.sharewithus
@@ -1827,6 +1828,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
Products.catprtotali = (res.data.catprtotali) ? [...res.data.catprtotali] : []
Products.collane = (res.data.collane) ? [...res.data.collane] : []
Products.subcatprods = (res.data.subcatprods) ? [...res.data.subcatprods] : []
Products.stati_prodotto = (res.data.stati_prodotto) ? [...res.data.stati_prodotto] : []
Products.catprods_gas = (res.data.catprods_gas) ? [...res.data.catprods_gas] : []
Products.authors = (res.data.authors) ? [...res.data.authors] : []
Products.publishers = (res.data.publishers) ? [...res.data.publishers] : []
@@ -2607,12 +2609,12 @@ export const useGlobalStore = defineStore('GlobalStore', {
return null
},
async updateLocalDbFromGM_T_Web_Articoli(sku: string) {
async updateLocalDbFromGM_T_Web_Articoli(sku: string, isbn: string) {
const options: IOptQueryGM = {
nameTable: 'T_Web_Articoli',
query: '',
where: 'T.IdArticolo =' + sku,
where: 'T.IdArticolo =' + sku + ' AND T.Ean13 = ' + isbn,
showQtaDisponibile: false,
outhtml: false,
cmd: shared_consts.CmdQueryMs.UPDATE,
@@ -2623,9 +2625,9 @@ export const useGlobalStore = defineStore('GlobalStore', {
return !!valueris
},
async updateAllBookFromGM_T_Web_Articoli(sku: string) {
async updateAllBookFromGM_T_Web_Articoli(options: any) {
const valueris = await this.updateAllBookTableContent({ sku });
const valueris = await this.updateAllBookTableContent(options);
return valueris
},