From fb9bf4126e20aa722554db7377bb64af05d6a876 Mon Sep 17 00:00:00 2001 From: sergiodt Date: Mon, 15 Jul 2024 16:08:11 +0200 Subject: [PATCH] Revert "Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix into 6861_reservas_retro" This reverts commit 8df64013eee4072f5cc0770ee08fa3b8a5d43647. --- 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 a751bd93a..ae06d84ba 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') stateCode + 'DELIVERED','PARTIAL_DELIVERED') stateForTicket FROM vn.expedition e JOIN vn.expeditionStateType est ON est.id = e.stateTypeFk WHERE e.ticketFk = ?;