Fix open lot qualification query

This commit is contained in:
gitea_admin committed 2026-09-08 16:57:56 +02:00
1 parent 8846a57b43
commit 5059bd741a
1 file changed
+1 -1
+1 -1
View File
@@ -523,7 +523,7 @@ function sync_open_lot_activation_selection(PDO $pdo, int $productId): void
"SELECT sl.id
FROM stock_lot sl
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 NULLIF(TRIM(sl.lot_number), '') IS NOT NULL
AND sl.manufacturer_party_id IS NOT NULL