ticket.sale split show active tickets
gitea/salix/dev There was a failure building this commit Details

This commit is contained in:
Joan Sanchez 2019-08-06 07:36:26 +02:00
parent 2c71a983e3
commit e52a0ac5da
1 changed files with 3 additions and 2 deletions

View File

@ -25,9 +25,10 @@ module.exports = Self => {
JOIN vn.ticketState ts ON t.id = ts.ticketFk
JOIN vn.agencyMode a ON t.agencyModeFk = a.id
JOIN vn.warehouse w ON t.warehouseFk = w.id
WHERE t.shipped > CURDATE() AND t.clientFk = ? AND ts.alertLevel = 0 AND t.id <> ?
WHERE t.shipped >= CURDATE() AND t.clientFk = ?
AND ts.alertLevel = 0 AND t.id <> ?
ORDER BY t.shipped
LIMIT 3`;
LIMIT 5`;
let tickets = await Self.rawSql(query, [params.clientFk, params.ticketFk]);
return tickets;
};