Aggiungere un campo "Vagliato dall'Editore" e aggiungere anche il campo "chi" e delle Note

This commit is contained in:
Surya Paolo
2025-05-02 19:11:35 +02:00
parent 192fd4706c
commit 6e8d1fcff1
4 changed files with 26 additions and 19 deletions

View File

@@ -71,6 +71,12 @@ const CatalogSchema = new Schema({
data_generato: { data_generato: {
type: Date, type: Date,
}, },
username_lista_generata: {
type: String,
},
data_lista_generata: {
type: Date,
},
pdf_online: String, pdf_online: String,
data_online: { data_online: {
type: Date, type: Date,

View File

@@ -112,20 +112,6 @@ const productSchema = new Schema({
eta: { eta: {
type: String type: String
}, },
verificaprod: {
esito: {
type: Number,
},
data: {
type: Date,
},
username: {
type: String,
},
note: {
type: String,
},
},
} }
], ],
price_acquistato: { price_acquistato: {
@@ -232,6 +218,20 @@ const productSchema = new Schema({
date_updated: { date_updated: {
type: Date, type: Date,
}, },
validaprod: {
esito: {
type: Number,
},
data: {
type: Date,
},
username: {
type: String,
},
note: {
type: String,
},
},
}); });

View File

@@ -69,6 +69,7 @@ class Macro {
$or: [ $or: [
{ DescrizioneStatoProdotto: 'In commercio' }, { DescrizioneStatoProdotto: 'In commercio' },
{ DescrizioneStatoProdotto: 'Prossima uscita/pubblicazione' }, { DescrizioneStatoProdotto: 'Prossima uscita/pubblicazione' },
{ DescrizioneStatoProdotto: 'Prossima uscita' },
{ DescrizioneStatoProdotto: 'In prevendita' }, { DescrizioneStatoProdotto: 'In prevendita' },
{ DescrizioneStatoProdotto: 'Vendita sito' }, { DescrizioneStatoProdotto: 'Vendita sito' },
{ DescrizioneStatoProdotto: '2023 in commercio' } { DescrizioneStatoProdotto: '2023 in commercio' }
@@ -101,9 +102,9 @@ class Macro {
options.where = ` options.where = `
(DescrizioneStatoProdotto = 'In commercio' OR (DescrizioneStatoProdotto = 'In commercio' OR
DescrizioneStatoProdotto = 'Prossima uscita/pubblicazione' OR DescrizioneStatoProdotto = 'Prossima uscita/pubblicazione' OR
DescrizioneStatoProdotto = 'Prossima uscita' OR
DescrizioneStatoProdotto = 'In prevendita' OR DescrizioneStatoProdotto = 'In prevendita' OR
DescrizioneStatoProdotto = '2023 in commercio' OR DescrizioneStatoProdotto = '2023 in commercio')
DescrizioneStatoProdotto = 'Prossima uscita')
AND AND
(DescrizioneTipologia = 'Libri' OR (DescrizioneTipologia = 'Libri' OR
DescrizioneTipologia = 'Cartolibro' OR DescrizioneTipologia = 'Cartolibro' OR

View File

@@ -808,9 +808,9 @@ router.post('/getexp', authenticate, (req, res) => {
}); });
router.post('/pickup', authenticate, (req, res) => { router.post('/pickup', authenticate_noerror, (req, res) => {
const params = req.body; const params = req.body;
let idapp = req.user.idapp; let idapp = req.body.idapp;
let mytable = globalTables.getTableByTableName(params.table); let mytable = globalTables.getTableByTableName(params.table);
// console.log('mytable', mytable); // console.log('mytable', mytable);
if (!mytable) { if (!mytable) {