mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-22 14:38:10 +02:00
fix: exclude suspended products from supplier grid
Add WHERE NOT COALESCE(af.suspendu::boolean, false) AND NOT COALESCE(a.suspendu::boolean, false) to pgGetArticlesByFournisseur — products flagged as suspended in artfou1 or articles table are no longer shown in the grid. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
6b26676836
commit
a60e21eb04
1 file changed
+2
@@ -151,6 +151,8 @@ export async function pgGetArticlesByFournisseur(codefou: string): Promise<PgArt
|
|||||||
) last_fournisseur ON true
|
) last_fournisseur ON true
|
||||||
WHERE af.code = ${codefou}
|
WHERE af.code = ${codefou}
|
||||||
AND a.codein IS NOT NULL
|
AND a.codein IS NOT NULL
|
||||||
|
AND NOT COALESCE(af.suspendu::boolean, false)
|
||||||
|
AND NOT COALESCE(a.suspendu::boolean, false)
|
||||||
ORDER BY a.no_id, af.no_id
|
ORDER BY a.no_id, af.no_id
|
||||||
`);
|
`);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user