Fix open lot qualification query
This commit is contained in:
1 parent
8846a57b43
commit
5059bd741a
1 file changed
+1
-1
@@ -523,7 +523,7 @@ function sync_open_lot_activation_selection(PDO $pdo, int $productId): void
|
|||||||
"SELECT sl.id
|
"SELECT sl.id
|
||||||
FROM stock_lot sl
|
FROM stock_lot sl
|
||||||
INNER JOIN v_stock_lot_balance v ON v.stock_lot_id = sl.id
|
INNER JOIN v_stock_lot_balance v ON v.stock_lot_id = sl.id
|
||||||
WHERE product_id = :product_id
|
WHERE sl.product_id = :product_id
|
||||||
AND sl.status = 'open'
|
AND sl.status = 'open'
|
||||||
AND NULLIF(TRIM(sl.lot_number), '') IS NOT NULL
|
AND NULLIF(TRIM(sl.lot_number), '') IS NOT NULL
|
||||||
AND sl.manufacturer_party_id IS NOT NULL
|
AND sl.manufacturer_party_id IS NOT NULL
|
||||||
|
|||||||
Reference in new issue
Block a user