Revert "Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix into 6861_reservas_retro"

This reverts commit 8df64013ee.
This commit is contained in:
Sergio De la torre 2024-07-15 16:08:11 +02:00
parent 1d66a2e752
commit fb9bf4126e
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ?;