bindTicket

This commit is contained in:
alexmorenograu 2021-03-12 16:58:15 +01:00
parent 3ff70efa99
commit 587cb72cab
3 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@ var collectionFk = '254';
function ticketCollection(collectionFk){//parametro collectionFk
let consultaSql = select.select(collectionFk)
if(filter.filterShelving(shelving)){
insert.insertTicket(consultaSql, shelving)
// insert.insertTicket(consultaSql, shelving)
}
else{
console.log("¡MATRICULA INCORRECTA!")

View File

@ -6,7 +6,7 @@ var con = mysql.createConnection({
database: "vn",
user: config.userDev,
password: config.passwordDev,
port: 3307,
port: 3307
});
exports.con = con;

View File

@ -3,7 +3,7 @@ const con = require('./connect')
//ticket
//cliente
//agencia
var x;
function select(collectionFk){
con.con.connect(function(err) {
let consSql = `SELECT t.id, t.clientFk, am.name
@ -15,8 +15,10 @@ function select(collectionFk){
con.con.query(consSql, function (err, result, fields) {
if (err) throw err;
console.log(result);
x = result;
});
});
console.log("RESULT FUERA "+x);
}
exports.select = select;