From 6983a2fbd918fd3057a0a8cf26e636f03fbac5e4 Mon Sep 17 00:00:00 2001 From: Pako Date: Mon, 16 Sep 2024 08:38:06 +0200 Subject: [PATCH] fix: refs #7969 no agency restriction removed --- db/routines/vn/procedures/productionControl.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/routines/vn/procedures/productionControl.sql b/db/routines/vn/procedures/productionControl.sql index 76d24c7dd..e6e14e2db 100644 --- a/db/routines/vn/procedures/productionControl.sql +++ b/db/routines/vn/procedures/productionControl.sql @@ -276,7 +276,8 @@ proc: BEGIN JOIN productionConfig pc SET hasPlantTray = TRUE WHERE ic.code = 'plant' - AND p.`depth` >= pc.minPlantTrayLength; + AND p.`depth` >= pc.minPlantTrayLength + AND pb.isOwn; DROP TEMPORARY TABLE tmp.productionTicket,