echo _('Rapprochement');?>
$oRap=new Acc_Reconciliation($cn);
$oRap->jr_id=$jr_id;
$aRap=$oRap->get();
if ($aRap != null ) {
$tableid="tb".$div;
echo '
';
for ($e=0;$ejr_id=$aRap[$e];
$internal=$opRap->get_internal();
$array_jr=$cn->get_array('select jr_montant,jr_comment from jrn where jr_id=$1',array($aRap[$e]));
$amount=$array_jr[0]['jr_montant'];
$str="modifyOperation(".$aRap[$e].",".$gDossier.")";
$rmReconciliation=new IButton('rmr');
$rmReconciliation->label='enlever';
$rmReconciliation->javascript="if (confirm ('vous confirmez?') ) {";
$rmReconciliation->javascript.=sprintf('dropLink(\'%s\',\'%s\',\'%s\',\'%s\');deleteRowRec(\'%s\',this);}',
$gDossier,
$div,
$jr_id,
$aRap[$e],
$tableid
);
if ( $access=='W')
$remove=$rmReconciliation->input();
else
$remove='';
$comment=strip_tags($array_jr[0]['jr_comment']);
echo tr (td(''.$internal.'').td(nbm($amount)).td($comment).td($remove));
}
echo '
';
}
?>
if ( $access=='W') {
$wConcerned=new IConcerned("rapt".$div);
$wConcerned->amount_id=$obj->det->jr_montant;
echo $wConcerned->input();
}
?>
$array = Follow_Up::get_all_operation($jr_id);
if (count($array) > 0)
{
?>
Actions liƩes
/**
* show eventually action
*/
$array = Follow_Up::get_all_operation($jr_id);
echo '
';
for ($i = 0; $i < count($array); $i++)
{
if ( $div == 'popup')
{
echo '- '.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),0).'
';
}
else
{
echo '- '.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),1).'
';
}
}
echo '
';
echo '
';
}
?>
require_once('template/ledger_detail_file.php');
?>
if ( $div != 'popup' ) {
$a=new IButton('Fermer','Fermer');
$a->label="Fermer";
$a->javascript="removeDiv('".$div."')";
echo $a->input();
}
?>
/**
* if you can write
*/
if ( $access=='W') {
echo HtmlInput::submit('save',_('Sauver'),'onClick="return verify_ca(\'popup\');"');
$owner=new Own($cn);
if ($owner->MY_ANALYTIC != 'nu' && $div=='popup'){
echo '';
}
$per=new Periode($cn,$obj->det->jr_tech_per);
if ( $per->is_closed() == 0 && $owner->MY_STRICT=='N'){
$remove=new IButton('Effacer');
$remove->label=_('Effacer');
$remove->javascript="if ( confirm('Vous confirmez effacement ?')) {removeOperation('".$obj->det->jr_id."',".dossier::id().",'".$div."')}";
echo $remove->input();
}
$reverse=new IButton('bext'.$div);
$reverse->label=_('Extourner');
$reverse->javascript="g('ext".$div."').style.display='block'";
echo $reverse->input();
echo '';
echo '';
$date=new IDate('ext_date');
$r="';
echo $r;
echo '
';
}
?>