bindTicket
This commit is contained in:
parent
3ff70efa99
commit
587cb72cab
|
@ -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!")
|
||||
|
|
|
@ -6,7 +6,7 @@ var con = mysql.createConnection({
|
|||
database: "vn",
|
||||
user: config.userDev,
|
||||
password: config.passwordDev,
|
||||
port: 3307,
|
||||
port: 3307
|
||||
});
|
||||
|
||||
exports.con = con;
|
|
@ -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;
|
||||
|
|
Reference in New Issue