Aggiungere un campo "Vagliato dall'Editore" e aggiungere anche il campo "chi" e delle Note
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user