diff --git a/bindTicketShelving.js b/bindTicketShelving.js index 0c3b42d..2c9684d 100644 --- a/bindTicketShelving.js +++ b/bindTicketShelving.js @@ -3,12 +3,12 @@ const filter = require('./filter'); const select = require('./db/selectDB') var barcode = "A0A3B820690F"; -var shelving = "BCD";///introducida por el usuario +var shelving = "BCD";///introducida por el usuario O en leida de la bbdd? var collectionFk = '254'; -function ticketCollection(collectionFk){//parametro collectionFk +function ticketCollection(collectionFk, shelving){//parametro collectionFk select.select(collectionFk, function(err,data){ if(filter.filterShelving(shelving)){ insert.insertTicket(data, shelving) diff --git a/insertTicket.js b/insertTicket.js index 34824fc..4d1008b 100644 --- a/insertTicket.js +++ b/insertTicket.js @@ -20,7 +20,7 @@ function insertTicket(consultaSql, shelving){ { attrCategory: "verdnatura", attrName: "conTicket", - barCode: shelving + consultaSql[i].Level.toString().charAt(j),//consultaSql[i].level,//Matricula + nivel + barCode: shelving + consultaSql[i].Level.toString().charAt(j),//Matricula + nivel itemTitle: "Etiqueta Con ticket", productCode: consultaSql[i].Ticket, //Ticket custFeature1: consultaSql[i].Client, //Client