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-11 15:38:22 +00:00
|
|
|
const insert = require('./insertTicket');
|
|
|
|
const filter = require('./filter');
|
2021-03-15 09:13:16 +00:00
|
|
|
const select = require('./db/selectDB')
|
2021-03-11 15:38:22 +00:00
|
|
|
|
2021-03-11 14:41:03 +00:00
|
|
|
var barcode = "A0A3B820690F";
|
2021-03-15 09:56:07 +00:00
|
|
|
var shelving = "BCD";///introducida por el usuario
|
2021-03-11 14:41:03 +00:00
|
|
|
var collectionFk = '254';
|
|
|
|
|
2021-03-15 09:13:16 +00:00
|
|
|
function ticketCollection(collectionFk){//parametro collectionFk
|
|
|
|
select.select(collectionFk, function(err,data){
|
|
|
|
if(filter.filterShelving(shelving)){
|
|
|
|
insert.insertTicket(data, shelving)
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
console.log("¡MATRICULA INCORRECTA!")
|
|
|
|
}
|
|
|
|
});
|
2021-03-11 14:41:03 +00:00
|
|
|
}
|
|
|
|
|
2021-03-15 09:13:16 +00:00
|
|
|
ticketCollection(collectionFk, shelving);
|