FIX not possible to search for billed and not billed supplier orders in the list (#35680)

* FIX not possible to search for billed and not billed supplier orders in the list

as the current implemenation the $billed var can be either 0 or 1 but  cannot be empty if both should be searched. This prevents searching an supplier order through the general search functionality as it finds only not yet billed orders.

* Update list.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
splohmer 2025-10-08 10:39:18 +02:00 committed by GitHub
parent 16929b4d89
commit 87c4ed00a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,7 +134,7 @@ $search_multicurrency_montant_ht = GETPOST('search_multicurrency_montant_ht', 'a
$search_multicurrency_montant_tva = GETPOST('search_multicurrency_montant_tva', 'alpha');
$search_multicurrency_montant_ttc = GETPOST('search_multicurrency_montant_ttc', 'alpha');
$optioncss = GETPOST('optioncss', 'alpha');
$billed = GETPOSTINT('billed');
$billed = GETPOST('billed', 'int'); // Value '' must be possible
$search_project_ref = GETPOST('search_project_ref', 'alpha');
$search_btn = GETPOST('button_search', 'alpha');
$search_remove_btn = GETPOST('button_removefilter', 'alpha');