diff --git a/modules/ticket/back/methods/ticket/filter.js b/modules/ticket/back/methods/ticket/filter.js index 7bf4cf4de..a3c17ecc4 100644 --- a/modules/ticket/back/methods/ticket/filter.js +++ b/modules/ticket/back/methods/ticket/filter.js @@ -196,8 +196,12 @@ module.exports = Self => { ts.alertLevel as alertLevel, ts.code as alertLevelCode, u.nickname userNickname, - c.salesPersonFk + c.salesPersonFk, + z.hour zoneLanding, + HOUR(z.hour) zoneHour, + MINUTE(z.hour) zoneMinute FROM ticket t + LEFT JOIN zone z ON z.id = t.zoneFk LEFT JOIN address a ON a.id = t.addressFk LEFT JOIN province p ON p.id = a.provinceFk LEFT JOIN warehouse w ON w.id = t.warehouseFk diff --git a/modules/ticket/front/index/index.html b/modules/ticket/front/index/index.html index a438d9359..fae2cf923 100644 --- a/modules/ticket/front/index/index.html +++ b/modules/ticket/front/index/index.html @@ -2,8 +2,9 @@ vn-id="model" url="/ticket/api/Tickets/filter" limit="20" + params="::$ctrl.params" data="tickets" - order="shipped DESC, clientFk" + order="shipped DESC, zoneHour ASC, zoneMinute ASC, clientFk" auto-load="false">