build_search_sql($_GET); $order=" order by jr_date_order asc,substring(jr_pj_number,'[0-9]+$')::numeric asc "; $res=$cn->get_array($sql.$order); printf('"%s";',"Internal"); printf('"%s";',"Journal"); printf('"%s";',"Date"); printf('"%s";',"Echeance"); printf('"%s";',"Paiement"); printf('"%s";',"Piece"); printf('"%s";"";',"Tiers"); printf('"%s";',"Description"); printf('"%s";',"Note"); printf('"%s"',"Montant opération"); printf("\r\n"); for ($i=0;$iget_value("select qf_amount from quant_fin where jr_id=$1",array($res[$i]['jr_id'])); if ( $positive !='' ) $amount=$positive; } printf('%s',nb($amount)); printf("\r\n"); }