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: {
type: Date,
},
username_lista_generata: {
type: String,
},
data_lista_generata: {
type: Date,
},
pdf_online: String,
data_online: {
type: Date,

View File

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

View File

@@ -69,6 +69,7 @@ class Macro {
$or: [
{ DescrizioneStatoProdotto: 'In commercio' },
{ DescrizioneStatoProdotto: 'Prossima uscita/pubblicazione' },
{ DescrizioneStatoProdotto: 'Prossima uscita' },
{ DescrizioneStatoProdotto: 'In prevendita' },
{ DescrizioneStatoProdotto: 'Vendita sito' },
{ DescrizioneStatoProdotto: '2023 in commercio' }
@@ -100,10 +101,10 @@ class Macro {
} else {
options.where = `
(DescrizioneStatoProdotto = 'In commercio' OR
DescrizioneStatoProdotto = 'Prossima uscita/pubblicazione' OR
DescrizioneStatoProdotto = 'Prossima uscita/pubblicazione' OR
DescrizioneStatoProdotto = 'Prossima uscita' OR
DescrizioneStatoProdotto = 'In prevendita' OR
DescrizioneStatoProdotto = '2023 in commercio' OR
DescrizioneStatoProdotto = 'Prossima uscita')
DescrizioneStatoProdotto = '2023 in commercio')
AND
(DescrizioneTipologia = 'Libri' 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;
let idapp = req.user.idapp;
let idapp = req.body.idapp;
let mytable = globalTables.getTableByTableName(params.table);
// console.log('mytable', mytable);
if (!mytable) {