From db6314ce9b5b4e7a50ecbecb54dcc0a93fe26e2a Mon Sep 17 00:00:00 2001 From: Eric - CAP-REL <1468823+rycks@users.noreply.github.com> Date: Fri, 12 Jun 2026 23:57:34 +0200 Subject: [PATCH] =?UTF-8?q?remove=20suppliers=20from=20list=20as=20fichint?= =?UTF-8?q?er=20is=20displayed=20only=20on=20customer=E2=80=A6=20(#38657)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * remove suppliers from list as fichinter is displayed only on customer/prospect card * add client = 2 as accepted values * QUAL: switch to constants --- htdocs/fichinter/card.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php index 261b5e4ffaa..da5b55860b1 100644 --- a/htdocs/fichinter/card.php +++ b/htdocs/fichinter/card.php @@ -1063,7 +1063,9 @@ if ($action == 'create') { } print ''; print ''; print '
'.$langs->trans("ThirdParty").''; - print $form->select_company('', 'socid', '', 'SelectThirdParty', 1, 0, null, 0, 'minwidth300'); + $filter = '((s.client:IN:'.Societe::CUSTOMER.', '.Societe::PROSPECT.', '.Societe::CUSTOMER_AND_PROSPECT.') AND (s.status:=:1))'; + + print $form->select_company('', 'socid', $filter, 'SelectThirdParty', 1, 0, null, 0, 'minwidth300'); print ' '; print '
';