65 lines
No EOL
2 KiB
PHP
65 lines
No EOL
2 KiB
PHP
<?php
|
|
//This file is part of NOALYSS and is under GPL
|
|
//see licence.txt
|
|
?><table class="result" style="width:80%;margin-left:10%">
|
|
<tr>
|
|
<th>
|
|
<?php echo _("N°")?>
|
|
</th>
|
|
<th>
|
|
<?php echo _("Date")?>
|
|
</th>
|
|
<th>
|
|
<?php echo _("N° op")?>
|
|
</th>
|
|
<th>
|
|
<?php echo _("n° pièce")?>
|
|
</th>
|
|
<th>
|
|
<?php echo _("Libellé")?>
|
|
</th>
|
|
<th style="text-align:right">
|
|
<?php echo _("Montant")?>
|
|
</th>
|
|
</tr>
|
|
<?php
|
|
for ($i=0;$i<count($array);$i++) {
|
|
|
|
$r='';
|
|
$r.=td($i);
|
|
$r.=td(format_date($array[$i]['first']['jr_date']));
|
|
$detail=sprintf('<a class="detail" href="javascript:modifyOperation(\'%s\',%d)">%s</a>',
|
|
$array[$i]['first']['jr_id'],$gDossier,$array[$i]['first']['jr_internal']);
|
|
$r.=td($detail);
|
|
$r.=td($array[$i]['first']['jr_pj_number']);
|
|
$r.=td($array[$i]['first']['jr_comment']);
|
|
$r.=td(nbm($array[$i]['first']['jr_montant']),'style="text-align:right"');
|
|
echo tr($r);
|
|
// check if operation does exist in v_detail_quant
|
|
$ret=$acc_reconciliation->db->execute('detail_quant',array($array[$i]['first']['jr_id']));
|
|
$acc_reconciliation->show_detail($ret);
|
|
if ( isset($array[$i]['depend']) )
|
|
{
|
|
$limit=count($array[$i]['depend'])-1;
|
|
for ($e=0;$e<count($array[$i]['depend']);$e++) {
|
|
$r='';
|
|
$r.=td($i);
|
|
$r.=td(format_date($array[$i]['depend'][$e]['jr_date']));
|
|
$detail=sprintf('<a class="detail" href="javascript:modifyOperation(\'%s\',%d)">%s</a>',
|
|
$array[$i]['depend'][$e]['jr_id'],$gDossier,$array[$i]['depend'][$e]['jr_internal']);
|
|
$r.=td($detail);
|
|
$r.=td($array[$i]['depend'][$e]['jr_pj_number']);
|
|
$r.=td($array[$i]['depend'][$e]['jr_comment']);
|
|
$r.=td(nbm($array[$i]['depend'][$e]['jr_montant']),'style="text-align:right"');
|
|
if ( $e==$limit)
|
|
echo '<tr style="border-bottom: 1px solid #4f4f7d;">'.$r.'</tr>';
|
|
else
|
|
echo tr($r);
|
|
$ret=$acc_reconciliation->db->execute('detail_quant',array($array[$i]['depend'][$e]['jr_id']));
|
|
$acc_reconciliation->show_detail($ret);
|
|
}
|
|
|
|
}
|
|
}
|
|
?>
|
|
</table>
|