Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/smart-tag into test
This commit is contained in:
commit
15bc407801
|
@ -10,7 +10,7 @@ function bindShelvingTag(barcode, shelving, level){
|
|||
insertShelving.insertShelving(shelving, level);
|
||||
insertDB.insertDB(barcode, shelving, level);
|
||||
}else{
|
||||
console.log("¡MATRICULA INCORRECTA!")
|
||||
console.log("¡MATRICULA INCORRECTA!")
|
||||
}
|
||||
}else{
|
||||
console.log("¡CODIGO DE ETIQUETA INCORRECTO!")
|
||||
|
|
|
@ -6,9 +6,7 @@ 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
|
||||
function ticketCollection(collectionFk){//parametro collectionFk
|
||||
select.select(collectionFk, function(err,data){
|
||||
if(filter.filterShelving(shelving)){
|
||||
insert.insertTicket(data, shelving)
|
||||
|
|
|
@ -8,7 +8,6 @@ function insertTicket(consultaSql, shelving){
|
|||
|
||||
(async() => {
|
||||
for(var i=0;i<consultaSql.length;i++){
|
||||
|
||||
for(var j=0;j<consultaSql[i].Level.toString().length;j++){
|
||||
const { body } = await got.post('http://app.etiquetaselectronicas.com:9999/item/batchImportItem', {
|
||||
json: {
|
||||
|
|
Reference in New Issue