Go to the documentation of this file.00001 <?php
00002
00003
00004 ?><table class="result">
00005 <tr>
00006 <th>
00007 <?php echo _("N°")?>
00008 </th>
00009 <th>
00010 <?php echo _("Date")?>
00011 </th>
00012 <th>
00013 <?php echo _("N° op")?>
00014 </th>
00015 <th>
00016 <?php echo _("n° pièce")?>
00017 </th>
00018 <th>
00019 <?php echo _("Libellé")?>
00020 </th>
00021 <th style="text-align:right">
00022 <?php echo _("Montant")?>
00023 </th>
00024 </tr>
00025 <?php
00026 for ($i=0;$i<count($array);$i++) {
00027 $tot=$array[$i]['first']['jr_montant'];
00028 $r='';
00029 $r.=td($i);
00030 $r.=td(format_date($array[$i]['first']['jr_date']));
00031 $detail = HtmlInput::detail_op($array[$i]['first']['jr_id'], $array[$i]['first']['jr_internal']);
00032 $r.=td($detail);
00033 $r.=td($array[$i]['first']['jr_pj_number']);
00034 $r.=td($array[$i]['first']['jr_comment']);
00035 $r.=td(nbm($array[$i]['first']['jr_montant']),'style="text-align:right"');
00036 echo tr($r);
00037
00038 $ret=$acc_reconciliation->db->execute('detail_quant',array($array[$i]['first']['jr_id']));
00039 $acc_reconciliation->show_detail($ret);
00040 if ( isset($array[$i]['depend']) )
00041 {
00042 $tot2=0;
00043 $limit=count($array[$i]['depend'])-1;
00044 for ($e=0;$e<count($array[$i]['depend']);$e++) {
00045 $r='';
00046 $r.=td($i);
00047 $r.=td(format_date($array[$i]['depend'][$e]['jr_date']));
00048 $detail = HtmlInput::detail_op($array[$i]['depend'][$e]['jr_id'], $array[$i]['depend'][$e]['jr_internal']);
00049 $r.=td($detail);
00050 $r.=td($array[$i]['depend'][$e]['jr_pj_number']);
00051 $r.=td($array[$i]['depend'][$e]['jr_comment']);
00052 $r.=td(nbm($array[$i]['depend'][$e]['jr_montant']),'style="text-align:right"');
00053 $tot2=bcadd($tot2,$array[$i]['depend'][$e]['jr_montant']);
00054 if ( $e==$limit)
00055 echo '<tr>'.$r.'</tr>';
00056 else
00057 echo tr($r);
00058 $ret=$acc_reconciliation->db->execute('detail_quant',array($array[$i]['depend'][$e]['jr_id']));
00059 $acc_reconciliation->show_detail($ret);
00060 }
00061 echo tr(td(_('Total ')).td('operation').td(nbm($tot)).td('operations dépendantes').td(nbm($tot2)).td('Delta').td(bcsub($tot,$tot2)),' class="highlight"');
00062 echo tr(td('<hr>',' colspan="6" style="witdh:auto"'));
00063
00064 }
00065 }
00066 ?>
00067 </table>