det->jr_montant;
$tableid="tb".$div;
$total_rec=0;
echo '
';
for ($e=0;$ejr_id=$aRap[$e];
$internal=$opRap->get_internal();
$array_jr=$cn->get_array('select jr_date,jr_pj_number,jr_montant,jr_comment from jrn where jr_id=$1',array($aRap[$e]));
$amount=$array_jr[0]['jr_montant'];
$total_rec=bcadd($total_rec,$amount);
$str="modifyOperation(".$aRap[$e].",".$gDossier.")";
// If write access , allow to drop Reconciles operations
if ( $access=='W') {
$rmReconciliation=new IButton('rmr');
$rmReconciliation->label=SMALLX;
$rmReconciliation->class="tinybutton";
$rmReconciliation->javascript="return confirm_box(null,'"._("vous confirmez?")."',";
$rmReconciliation->javascript.=sprintf('function () { dropLink(\'%s\',\'%s\',\'%s\',\'%s\');deleteRowRec(\'%s\',$(\'row%d\'));})',
$gDossier,
$div,
$jr_id,
$aRap[$e],
$tableid,
$e
);
$remove=$rmReconciliation->input();
}
else
$remove='';
$comment=strip_tags($array_jr[0]['jr_comment']);
$pj_nb=h($array_jr[0]['jr_pj_number']);
echo tr (td(format_date($array_jr[0]['jr_date'])).
td(''.$internal.'').
td($pj_nb).
td($comment).
td(_('montant').'='.nbm($amount)).
td(_('delta').'='.nbm(bcsub($amount_tva_include,$total_rec))).
td($remove),' id = "row'.$e.'"');
}
echo '
';
}
?>
amount_id=$obj->det->jr_montant;
$wConcerned->div="search_reconcile";
echo $wConcerned->input();
}
?>
MY_ANALYTIC != "nu") :
if ( strpos($str_anc,'
') == true ):
?>
';
if ( $div != 'popup' ) {
$a=new IButton('Fermer',_('Fermer'));
$a->label=_("Fermer");
$a->javascript="removeDiv('".$div."')";
echo $a->input();
} else {
echo HtmlInput::hidden('p_jrn',$oLedger->id);
}
?>
MY_ANALYTIC != 'nu' /*&& $div=='popup' */){
echo '';
}
$per=new Periode($cn,$obj->det->jr_tech_per);
if ( $per->is_closed() == 0 && $owner->MY_STRICT=='N' && $g_user->check_action(RMOPER)==1)
{
$remove=new IButton('Effacer');
$remove->label=_('Effacer');
$remove->javascript="return confirm_box(null,'Vous confirmez effacement ?',function () {removeOperation('".$obj->det->jr_id."',".dossier::id().",'".$div."')})";
echo $remove->input();
}
//----------------------------------------------------
// Extourne
//----------------------------------------------------
$reverse=new IButton('bext'.$div);
$reverse->label=_('Extourner');
$reverse->javascript="g('ext".$div."').style.display='block'";
echo $reverse->input();
echo '';
echo '';
echo '';
$date=new IDate('ext_date');
$extourne_label=new IText("ext_label");
$extourne_label->size=40;
$r=" ';
echo $r;
echo ' ';
}else {
echo '';
}
?>
|