";
echo "" . h($line['jr_pj_number']) . " | ";
echo "" . smaller_date($line['date']) . " | ";
echo "" . smaller_date($line['date_paid']) . " | ";
echo "" . HtmlInput::detail_op($line['jr_id'], $line['jr_internal']) . " | ";
$tiers = $Jrn->get_tiers($line['jrn_def_type'], $line['jr_id']);
echo td($tiers);
echo "" . h($line['comment']) . " | ";
$dep_priv=($line['dep_priv']==0)?"":nbm($line['dep_priv']);
$tot['dep_priv']=bcadd($tot['dep_priv'], floatval($line['dep_priv']));
$dna=($line['dna']==0)?"":nbm($line['dna']);
$tot['dna']=bcadd($tot['dna'],floatval($line['dna']));
echo "" . nbm($line['HTVA']) . " | ";
$tot['htva']=bcadd($tot['htva'], floatval($line['HTVA']));
echo "" .$dep_priv . " | ";
echo "" . $dna . " | ";
if ($own->MY_TVA_USE == 'Y' )
{
$tva_dna=($line['tva_dna']==0)?"":nbm($line['tva_dna']);
$tot['tva_nd']=bcadd($tot['tva_nd'], floatval($line['tva_dna']));
echo "" . $tva_dna. " | ";
$a_tva_amount=array();
foreach ($line['TVA'] as $lineTVA)
{
foreach ($a_Tva as $idx=>$line_tva)
{
if ($line_tva['tva_id'] == $lineTVA[1][0])
{
$a=$line_tva['tva_id'];
$a_tva_amount[$a]=$lineTVA[1][2];
}
}
}
foreach ($a_Tva as $line_tva)
{
$a=$line_tva['tva_id'];
if ( isset($a_tva_amount[$a])) {
echo ''.nb($a_tva_amount[$a]).' | ';
$tot['tva'][$a]=(isset($tot['tva'][$a]))?bcadd($tot['tva'][$a],floatval($a_tva_amount[$a])):floatval($a_tva_amount[$a]);
}
else
printf(" | ");
}
}
echo ''.$line['TVAC'].' | ';
$tot['tvac']=bcadd($tot['tvac'], floatval($line['TVAC']));
/*
* If reconcile print them
*/
echo '';
$max=Database::num_row($ret_reconcile);
if ($max > 0) {
$sep="";
for ($e=0;$e<$max;$e++) {
$row=Database::fetch_array($ret_reconcile, $e);
echo $sep.HtmlInput::detail_op($row['jr_id'],$row['jr_date'].' '. $row['jr_internal']);
$sep=' ,';
}
}
echo ' | ';
echo "
";
}
/**
* summary
*/
?>