ticket.sale split show active tickets
gitea/salix/master This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-08-06 07:36:26 +02:00
parent 4e329a4201
commit e011c120db
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;
};