Limite la liste des fournisseurs aux fournisseurs actifs (#28556)

This commit is contained in:
Sébastien NASSIET 2024-03-01 18:47:06 +01:00 committed by GitHub
parent 07a5a8f7dd
commit 3ac149af81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -505,7 +505,7 @@ if ($id > 0 || $ref) {
} else {
$events = array();
$events[] = array('method' => 'getVatRates', 'url' => dol_buildpath('/core/ajax/vatrates.php', 1), 'htmlname' => 'tva_tx', 'params' => array());
$filter = '(fournisseur:=:1)';
$filter = '(fournisseur:=:1) AND (status:=:1)';
print img_picto('', 'company', 'class="pictofixedwidth"').$form->select_company(GETPOST("id_fourn", 'alpha'), 'id_fourn', $filter, 'SelectThirdParty', 0, 0, $events);
$parameters = array('filter'=>$filter, 'html_name'=>'id_fourn', 'selected'=>GETPOST("id_fourn"), 'showempty'=>1, 'prod_id'=>$object->id);