Merge pull request #23930 from aspangaro/14p42

Supplier proposal - List - SQL error on total_ht
This commit is contained in:
Laurent Destailleur 2023-02-16 21:02:12 +01:00 committed by GitHub
commit 5d58c993bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,7 +344,7 @@ if ($search_login) {
$sql .= natural_search(array('u.lastname', 'u.firstname', 'u.login'), $search_login);
}
if ($search_montant_ht) {
$sql .= natural_search('sp.total_ht=', $search_montant_ht, 1);
$sql .= natural_search('sp.total_ht', $search_montant_ht, 1);
}
if ($search_montant_vat != '') {
$sql .= natural_search("sp.total_tva", $search_montant_vat, 1);