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.
smart-tag/bindTicketShelving.js

21 lines
643 B
JavaScript

const insert = require('./insertTicket');
const filter = require('./filter');
const select = require('./db/selectDB')
var barcode = "A0A3B820690F";
var shelving = "BCD";///introducida por el usuario O en leida de la bbdd?
var collectionFk = '254';
function ticketCollection(collectionFk, shelving){//parametro collectionFk
select.select(collectionFk, function(err,data){
if(filter.filterShelving(shelving)){
insert.insertTicket(data, shelving)
}
else{
console.log("¡MATRICULA INCORRECTA!")
}
});
}
////ndsafdlkjbhsakjdgf
///sdanfhasif
ticketCollection(collectionFk, shelving);