#6321 - Negative tickets #1945
|
@ -1465,7 +1465,7 @@ INSERT INTO `vn`.`itemTag`(`id`,`itemFk`,`tagFk`,`value`,`priority`)
|
|||
(103, 88, 58, 'ammo box', 2),
|
||||
(104, 88, 27, '100cm', 3),
|
||||
(105, 88, 36, 'Stark Industries', 4),
|
||||
(106, 88, 1, 'Green', 5),
|
||||
(106, 88, 1, 'White', 5),
|
||||
(107, 88, 67, 'supply', 6),
|
||||
(108, 88, 23, '13', 7);
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ module.exports = Self => {
|
|||
LEFT JOIN workerDepartment wd ON wd.workerFk = c.salesPersonFk
|
||||
LEFT JOIN department d ON d.id = wd.departmentFk
|
||||
LEFT JOIN (
|
||||
SELECT co.clientFk, IF(COUNT(*) > 0, FALSE, TRUE) hasObservation
|
||||
SELECT co.clientFk, COUNT(*) hasObservation
|
||||
jgallego marked this conversation as resolved
Outdated
|
||||
FROM clientObservation co
|
||||
JOIN observationType ot ON ot.id = co.observationTypeFk
|
||||
WHERE ot.code = 'substitution'
|
||||
|
@ -134,7 +134,7 @@ module.exports = Self => {
|
|||
LEFT JOIN workerDepartment wd ON wd.workerFk = c.salesPersonFk
|
||||
LEFT JOIN department d ON d.id = wd.departmentFk
|
||||
LEFT JOIN (
|
||||
SELECT co.clientFk, IF(COUNT(*) > 0, FALSE, TRUE) hasObservation
|
||||
SELECT co.clientFk, COUNT(*) hasObservation
|
||||
jsegarra marked this conversation as resolved
Outdated
jgallego
commented
cambiar este tb cambiar este tb
|
||||
FROM clientObservation co
|
||||
jgallego marked this conversation as resolved
Outdated
jgallego
commented
igual que arriba, comparar esto es lentitud en el select, ahi puedes poner (util) curdate o now lo que tenga que ser igual que arriba, comparar esto es lentitud en el select, ahi puedes poner (util) curdate o now lo que tenga que ser
jsegarra
commented
cambiado cambiado
|
||||
JOIN observationType ot ON ot.id = co.observationTypeFk
|
||||
WHERE ot.code = 'substitution'
|
||||
|
|
Loading…
Reference in New Issue
aqui falta el alias de la tabla, probablemente t.warehouse
, COUNT(*) hasObservation
Hemos invertido este booleano, ahora hay que mostrar el icono si aqui hay valor