From c39570d6fc79767f6aea276ab9c9a4358b8761bb Mon Sep 17 00:00:00 2001 From: alexmorenograu <61759297+alexmorenograu@users.noreply.github.com> Date: Mon, 15 Mar 2021 11:00:05 +0100 Subject: [PATCH] update --- bindTicketShelving.js | 4 ++-- insertTicket.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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