update
This commit is contained in:
parent
77bcc90325
commit
8dfe2f7d3e
|
@ -1,14 +1,15 @@
|
|||
const insertShelving = require('./insertShelving');
|
||||
const bindShelving = require('./bindShelving');
|
||||
const filter = require('./filter');
|
||||
const filter = require('./utilities/filter');
|
||||
const insertDB = require('./db/insertDB')
|
||||
|
||||
function bindShelvingTag(barcode, shelving, level){
|
||||
if(filter.isBarcode(barcode)){
|
||||
if(filter.isShelving(shelving)){
|
||||
bindShelving.bindShelving(barcode, shelving, level);
|
||||
insertShelving.insertShelving(shelving, level);
|
||||
//insertDB.insertDB(barcode, shelving, level);
|
||||
let shelvingId = shelving + level;
|
||||
insertShelving.insertShelving(shelvingId);
|
||||
bindShelving.bindShelving(barcode, shelvingId);
|
||||
insertDB.insertDB(barcode, shelving, level);
|
||||
}else{
|
||||
console.log("¡MATRICULA INCORRECTA!")
|
||||
}
|
||||
|
@ -17,7 +18,7 @@ function bindShelvingTag(barcode, shelving, level){
|
|||
}
|
||||
}
|
||||
///DATOS INTRODUCIDOS POR EL USUARIO////
|
||||
var barcode = "A0A3B8224DFF"; //valido = "A0A3B82"+ 4 CARACTERES HEXADECIMALES (0-F)
|
||||
var barcode = "A0A3B8224DBF"; //valido = "A0A3B82"+ 4 CARACTERES HEXADECIMALES (0-F)
|
||||
var shelving = "ABC"; //valido = 3 CARACTERES LETRAS (A-Z)
|
||||
var level = "4";
|
||||
//////////////////////////////////////
|
||||
|
|
|
@ -10,12 +10,7 @@
|
|||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"atob": "^2.1.2",
|
||||
"express": "^4.17.1",
|
||||
"got": "^11.8.2",
|
||||
"mariadb": "^2.5.3",
|
||||
"mysql": "^2.18.1",
|
||||
"node-rsa": "^1.1.1",
|
||||
"xmlhttprequest": "^1.8.0"
|
||||
"mysql": "^2.18.1"
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue