From 8df64013eee4072f5cc0770ee08fa3b8a5d43647 Mon Sep 17 00:00:00 2001 From: sergiodt Date: Mon, 15 Jul 2024 13:00:16 +0200 Subject: [PATCH] Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix into 6861_reservas_retro --- modules/ticket/back/methods/ticket/saveSign.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ticket/back/methods/ticket/saveSign.js b/modules/ticket/back/methods/ticket/saveSign.js index ae06d84ba..a751bd93a 100644 --- a/modules/ticket/back/methods/ticket/saveSign.js +++ b/modules/ticket/back/methods/ticket/saveSign.js @@ -143,7 +143,7 @@ module.exports = Self => { const [{stateCode}] = await Self.rawSql(` SELECT IF((SUM(CASE WHEN est.code = 'DELIVERED' THEN 1 ELSE 0 END) = COUNT(*)), - 'DELIVERED','PARTIAL_DELIVERED') stateForTicket + 'DELIVERED','PARTIAL_DELIVERED') stateCode FROM vn.expedition e JOIN vn.expeditionStateType est ON est.id = e.stateTypeFk WHERE e.ticketFk = ?;