4515-addBuyCheck #1974
|
@ -16,6 +16,7 @@ BEGIN
|
|||
JOIN item i ON i.id = b.itemFk
|
||||
JOIN tmp.buysToCheck bt ON bt.id = b.id
|
||||
WHERE (i.weightByPiece IS NULL OR i.`size` IS NULL)
|
||||
pablone marked this conversation as resolved
|
||||
AND a.hasWeightVolumetric
|
||||
pablone marked this conversation as resolved
Outdated
jgallego
commented
estas segur que funciona be? estas segur que funciona be?
si el primer registre coincidira que hasWeightVolumetric es false, no miraria la resta.
Estas asumint que totes compres que et pasen son del mateix travel, pero jo posaria el a.hasWeightVolumetric en el where per a asegurar.
Altra cosa, en procesos com l'inventari, açò fara que vaja molt lento? el buy_upsert li tinguerem que posar la variable dentorno per ixe motiu
pablone
commented
bien visto, estaba realizando las pruebas con 1 sola buy bien visto, estaba realizando las pruebas con 1 sola buy
|
||||
LIMIT 1;
|
||||
|
||||
DROP TEMPORARY TABLE IF EXISTS tmp.buysToCheck;
|
||||
|
|
Loading…
Reference in New Issue
paréntesis se pueden quitar