This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
2021-03-18 10:38:05 +00:00
|
|
|
// const insert = require('./methods/bindTicketShelving');
|
2021-03-17 14:27:09 +00:00
|
|
|
const filter = require('./utilities/filter');
|
2021-03-17 08:11:55 +00:00
|
|
|
const select = require('./db/selectDB');
|
|
|
|
|
2021-03-18 10:38:05 +00:00
|
|
|
// let barcode = 'A0A3B820690F';
|
|
|
|
let shelving = 'BCD';// /introducida por el usuario
|
|
|
|
let collectionFk = '274286';
|
2021-03-17 08:11:55 +00:00
|
|
|
|
2021-03-18 10:38:05 +00:00
|
|
|
function ticketCollection(collectionFk) {// parametro collectionFk
|
|
|
|
select.select(collectionFk, function(err, data) {
|
|
|
|
if (filter.isShelving(shelving)) {
|
|
|
|
// insert.insertTicket(data, shelving,)
|
|
|
|
} else
|
|
|
|
console.log('¡MATRICULA INCORRECTA!');
|
2021-03-17 08:11:55 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2021-03-18 10:38:05 +00:00
|
|
|
ticketCollection(collectionFk);
|