diff --git a/html/poste_search.php b/html/poste_search.php index 61cf9cb64..1d7b77152 100644 --- a/html/poste_search.php +++ b/html/poste_search.php @@ -144,7 +144,7 @@ echo '

Nombre de lignes affichées est limité

'; // if request search if ( isset($_GET['search']) || isset($_GET['filter']) ) { $Res=ExecSql($cn,"select pcm_val,html_quote(pcm_lib) as pcm_lib from tmp_pcmn $condition order by pcm_val::text ". - " limit 70"); + " limit 100"); $MaxLine=pg_NumRows($Res); if ( $MaxLine==0) { diff --git a/include/class_acc_operation.php b/include/class_acc_operation.php index 749e52ff2..60da78700 100644 --- a/include/class_acc_operation.php +++ b/include/class_acc_operation.php @@ -160,7 +160,7 @@ function get_internal() { join tmp_pcmn on (j_poste=pcm_val) left join vw_fiche_attr on (j_qcode=quick_code) where - jr_id=$1"; + jr_id=$1 order by j_debit desc"; $res=ExecSqlParam($this->db,$sql,array($this->jr_id)); if ( pg_NumRows ($res) == 0 ) return array(); $all=pg_fetch_all($res);