19 lines
588 B
JavaScript
19 lines
588 B
JavaScript
// const insert = require('./methods/bindTicketShelving');
|
|
const filter = require('./utilities/filter');
|
|
const select = require('./db/selectDB');
|
|
|
|
// let barcode = 'A0A3B820690F';
|
|
let shelving = 'BCD';// /introducida por el usuario
|
|
let collectionFk = '274286';
|
|
|
|
function ticketCollection(collectionFk) {// parametro collectionFk
|
|
select.select(collectionFk, function(err, data) {
|
|
if (filter.isShelving(shelving)) {
|
|
// insert.insertTicket(data, shelving,)
|
|
} else
|
|
console.log('¡MATRICULA INCORRECTA!');
|
|
});
|
|
}
|
|
|
|
ticketCollection(collectionFk);
|