This commit is contained in:
alexmorenograu 2021-03-15 11:00:05 +01:00
parent 1ef83438fb
commit c39570d6fc
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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