@ -481,7 +481,7 @@
FROM
logpm_distribution_reservation_package ldrp
WHERE
ldrp.reservation_id = lds.reservation_id and ldrp.packet_bar_status != 2
ldrp.reservation_id = lds.reservation_id and ldrp.packet_bar_status != 2 AND ldrp.stock_article_id = ldrs.stock_article_id
) readyStock,
(
SELECT