Fix order in printing

This commit is contained in:
sparkyx 2004-04-13 12:37:50 +00:00
parent 9c76f276e4
commit ec77e903e2
2 changed files with 3 additions and 3 deletions

View file

@ -430,7 +430,7 @@ function GetDataJrnPdf($p_cn,$p_array,$p_limit,$p_offset)
"jr_grpt_id=j_grpt ".
" left join tmp_pcmn on pcm_val=j_poste ".
" where j_jrn_def=".$p_array['p_id'].
" and ".$cond." order by j_id,j_date::date,j_grpt,j_debit desc".
" and ".$cond." order by j_date::date asc,jr_internal,j_debit desc".
" limit ".$p_limit." offset ".$p_offset);
}else {
// Journaux centralisés

View file

@ -133,9 +133,9 @@ if ( $action == 'voir_jrn' ) {
if ( $action == 'voir_jrn_non_paye' ) {
// Show list of unpaid sell
// Date - date of payment - Customer - amount
$sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=$g_jrn" ;
$sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=$g_jrn " ;
$list=ListJrn($cn,$g_jrn,$sql);
$sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=$g_jrn" ;
$sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=$g_jrn " ;
$list2=ListJrn($cn,$g_jrn,$sql);
echo '<div class="u_redcontent">';
echo '<h2 class="info"> Echeance dépassée </h2>';