mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Clean code
This commit is contained in:
@@ -505,7 +505,7 @@ if ($search_status <> '') {
|
||||
if ($search_status == 1 && empty($conf->expedition->enabled)) {
|
||||
$sql .= ' AND c.fk_statut IN (1,2)'; // If module expedition disabled, we include order with status 'sending in process' into 'validated'
|
||||
} else {
|
||||
$sql .= ' AND c.fk_statut = '.$search_status; // brouillon, validee, en cours, annulee
|
||||
$sql .= ' AND c.fk_statut = '.((int) $search_status); // brouillon, validee, en cours, annulee
|
||||
}
|
||||
}
|
||||
if ($search_status == 4) {
|
||||
@@ -585,7 +585,7 @@ if ($search_warehouse != '' && $search_warehouse > 0) {
|
||||
$sql .= natural_search('c.fk_warehouse', $search_warehouse, 1);
|
||||
}
|
||||
if ($search_multicurrency_code != '') {
|
||||
$sql .= ' AND c.multicurrency_code = "'.$db->escape($search_multicurrency_code).'"';
|
||||
$sql .= " AND c.multicurrency_code = '".$db->escape($search_multicurrency_code)."'";
|
||||
}
|
||||
if ($search_multicurrency_tx != '') {
|
||||
$sql .= natural_search('c.multicurrency_tx', $search_multicurrency_tx, 1);
|
||||
|
||||
Reference in New Issue
Block a user