From 6c0706cc566dab7c846897a13e54aed7c1854693 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 15 Mar 2024 09:33:06 +0100 Subject: [PATCH] refs #6321 perf: query to retrieve results --- modules/ticket/back/methods/ticket/itemLackDetail.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/ticket/back/methods/ticket/itemLackDetail.js b/modules/ticket/back/methods/ticket/itemLackDetail.js index c7671c2e7..082163392 100644 --- a/modules/ticket/back/methods/ticket/itemLackDetail.js +++ b/modules/ticket/back/methods/ticket/itemLackDetail.js @@ -37,19 +37,20 @@ module.exports = Self => { st.code, t.id ticketFk, t.nickname, + t.shipped, t.hour, s.quantity, - ag.name, + ag.name agName, ts.alertLevel alertLevel, st.name stateName, st.id stateId, s.itemFk itemFk, al.code alertLevelCode, - z.name, + z.name zoneName, z.hour theoreticalhour, cn.isRookie, - sc.saleClonedFk turno, - tr.saleFk peticionCompra, + IF(sc.saleClonedFk, 1, 0 ) as turno, + IF(tr.saleFk , 1, 0 ) as peticionCompra, t.hour minTimed FROM vn.sale s