Fix order in printing
This commit is contained in:
parent
9c76f276e4
commit
ec77e903e2
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue