21 lines
545 B
JavaScript
21 lines
545 B
JavaScript
const insert = require('./insertTicket');
|
|
const filter = require('./filter');
|
|
const select = require('./db/selectDB')
|
|
|
|
var barcode = "A0A3B820690F";
|
|
var shelving = "ABC";///introducida por el usuario
|
|
var collectionFk = '254';
|
|
|
|
|
|
|
|
function ticketCollection(collectionFk){//parametro collectionFk
|
|
let consultaSql = select.select(collectionFk)
|
|
if(filter.filterShelving(shelving)){
|
|
insert.insertTicket(consultaSql, shelving)
|
|
}
|
|
else{
|
|
console.log("¡MATRICULA INCORRECTA!")
|
|
}
|
|
}
|
|
|
|
ticketCollection(collectionFk, shelving); |