feat(salix): refs #6156 #6156 add missing values

This commit is contained in:
Javier Segarra 2024-09-09 15:13:08 +02:00
parent f70f475223
commit f9a25617f0
1 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@ BEGIN
CREATE OR REPLACE TEMPORARY TABLE tmp.filter
(INDEX (id))
SELECT dest.*,
origin.*
origin.*,
IFNULL(dest.nickname, origin.nickname) nickname,
(origin.futureLines = origin.hasStock) AS isFullMovable,
origin.futureLines - origin.hasStock AS notMovableLines
FROM (
SELECT s.ticketFk futureId,
t.workerFk,