This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
2021-03-11 14:41:03 +00:00
|
|
|
|
|
|
|
const insert = require('./utilities/inserts');
|
|
|
|
|
|
|
|
var barcode = "A0A3B820690F";
|
|
|
|
var shelving = "ABC";///introducida por el usuario
|
|
|
|
var collectionFk = '254';
|
|
|
|
|
|
|
|
var consultaSql1 = [
|
|
|
|
{
|
|
|
|
id: 1025963,
|
|
|
|
ticketFk: 2516988,
|
|
|
|
level: 1,//en un futur no estaran
|
|
|
|
wagon: 0,//en un futur no estaran
|
|
|
|
nickname: 'FLORA&CO',
|
|
|
|
agencyModeFk: 'MRW',//Seria un numero
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 1025964,
|
|
|
|
ticketFk: 2542131,
|
|
|
|
level: 2,
|
|
|
|
wagon: 0,
|
|
|
|
nickname: 'MORRIS',
|
|
|
|
agencyModeFk: 'MRW'//Seria un numero
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 1025965,
|
|
|
|
ticketFk: 2542131,
|
|
|
|
level: 3,
|
|
|
|
wagon: 0,
|
|
|
|
nickname: 'MORRIS2',
|
|
|
|
agencyModeFk: 'MRW'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
function ticketCollection(){//parametro collectionFk
|
|
|
|
/// CONSULTA SQL PER A TINDRE ELS DIFERENTS ticketsColletion DE UN colletionFK (consiltaSql1) ///
|
|
|
|
/// CONSULTA SQL PER A CADA ticket DE CADA ticketCollection (consiltaSql2) ///
|
|
|
|
if(insert.filter(shelving,"shelving")){
|
|
|
|
insert.insertTicket(consultaSql1, shelving)
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
console.log("¡MATRICULA INCORRECTA!")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-11 14:44:00 +00:00
|
|
|
ticketCollection();
|
|
|
|
//proba
|