a
This commit is contained in:
parent
8e662ed54d
commit
04321e8291
@ -103,7 +103,7 @@ const extraMethods = {
|
|||||||
attributes: ['id', 'name'],
|
attributes: ['id', 'name'],
|
||||||
}, {
|
}, {
|
||||||
model: models.Entity,
|
model: models.Entity,
|
||||||
include: [{ model: models.EntityType, as: 'types', where: whereType }]
|
include: [{ model: models.EntityType, as: 'types', where: whereType }]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
model: models.EventInscription,
|
model: models.EventInscription,
|
||||||
@ -124,7 +124,7 @@ const extraMethods = {
|
|||||||
data.push(["Congreso: " + reservations[0].Event.name]);
|
data.push(["Congreso: " + reservations[0].Event.name]);
|
||||||
data.push(["Fecha del listado: " + moment().toString()]);
|
data.push(["Fecha del listado: " + moment().toString()]);
|
||||||
data.push([]);
|
data.push([]);
|
||||||
data.push(["Nombre", "Apellidos", "Email", "Válido", "Vía", "N. entrada"]);
|
data.push(["Nombre", "Apellidos", "Email", "Válido", "Vía", "N. entrada", "Tipo invitación", "Código", "Partner"]);
|
||||||
|
|
||||||
var currentReservation = '';
|
var currentReservation = '';
|
||||||
var currentPartner = '';
|
var currentPartner = '';
|
||||||
@ -139,13 +139,13 @@ const extraMethods = {
|
|||||||
if (currentReservation != reserva.reservation_code) {
|
if (currentReservation != reserva.reservation_code) {
|
||||||
currentReservation = reserva.reservation_code;
|
currentReservation = reserva.reservation_code;
|
||||||
data.push([]);
|
data.push([]);
|
||||||
data.push(["Partner: " + reserva.Entity.name + " CÓDIGO: " + reserva.reservation_code, "Tipo: " + reserva.description, "Reservadas: " + reserva.confirmed, "Aforo: " + reserva.assistants]);
|
// data.push(["Partner: " + reserva.Entity.name + " CÓDIGO: " + reserva.reservation_code, "Tipo: " + reserva.description, "Reservadas: " + reserva.confirmed, "Aforo: " + reserva.assistants]);
|
||||||
|
//
|
||||||
data.push(["Nombre", "Apellidos", "Email", "Válido", "Vía", "N. entrada"]);
|
// data.push(["Nombre", "Apellidos", "Email", "Válido", "Vía", "N. entrada"]);
|
||||||
};
|
};
|
||||||
|
|
||||||
reserva.inscriptions.forEach(function (inscription) {
|
reserva.inscriptions.forEach(function (inscription) {
|
||||||
data.push([inscription.user.name, inscription.user.surname, inscription.user.email, inscription.validated ? "Confirmado" : "En lista de espera", inscription.source, inscription.code_ticket]);
|
data.push([inscription.user.name, inscription.user.surname, inscription.user.email, inscription.validated ? "Confirmado" : "En lista de espera", inscription.source, inscription.code_ticket, reserva.description, reserva.reservation_code, reserva.Entity.name]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user