value=format_date($obj->det->jr_date); echo td(_('Date')).td($date->input()); ?>
value=strip_tags($obj->det->jr_comment); $itext->size=40; echo td(_('Libellé')).td($itext->input()); ?>
det->jr_montant),' class="inum"');?>
value=strip_tags($obj->det->jr_pj_number); echo td(_('Pièce')).td($itext->input()); ?>
Note
width=25; $inote->heigh=5; $inote->value=strip_tags($obj->det->note); echo $inote->input(); ?>

MY_ANALYTIC != 'nu' && $div == 'popup'){ $anc=new Anc_Plan($cn); $a_anc=$anc->get_list(' order by pa_id '); $x=count($a_anc); /* set the width of the col */ echo ''; /* add hidden variables pa[] to hold the value of pa_id */ echo Anc_Plan::hidden($a_anc); } echo ''; $amount_idx=0; for ($e=0;$edet->array);$e++) { $row=''; $q=$obj->det->array; $view_history= sprintf('%s', $q[$e]['j_poste'], $gDossier, $q[$e]['j_poste']); $row.=td($view_history); if ( $q[$e]['j_qcode'] !='') { $fiche=new Fiche($cn); $fiche->get_by_qcode($q[$e]['j_qcode']); $view_history= sprintf('%s', $fiche->id, $gDossier, $q[$e]['j_qcode']); } else $view_history=''; $row.=td($view_history); $l_lib = $q[$e]['j_text'] ; if ( $l_lib!='') { $l_lib=$q[$e]['j_text']; } else if ( $q[$e]['j_qcode'] !='') { // nom de la fiche $ff=new Fiche($cn); $ff->get_by_qcode( $q[$e]['j_qcode']); $l_lib=$ff->strAttribut(ATTR_DEF_NAME); } else { // libellé du compte $name=$cn->get_value('select pcm_lib from tmp_pcmn where pcm_val=$1',array($q[$e]['j_poste'])); $l_lib=$name; } $l_lib=strip_tags($l_lib); if ($owner->MY_UPDLAB == 'Y') { $hidden = HtmlInput::hidden("j_id[]", $q[$e]['j_id']); $input = new IText("e_march" . $q[$e]['j_id'] . "_label", $l_lib); $input->css_size="100%"; } else { $input = new ISpan("e_march" . $q[$e]['j_id'] . "_label"); $input->value=$l_lib; $hidden = HtmlInput::hidden("j_id[]", $q[$e]['j_id']); } $row.=td($input->input().$hidden); $montant=td(nbm($q[$e]['j_montant']),'class="num"'); $row.=($q[$e]['j_debit']=='t')?$montant:td(''); $row.=($q[$e]['j_debit']=='f')?$montant:td(''); /* Analytic accountancy */ if ( $owner->MY_ANALYTIC != "nu" && $div=='popup'){ if ( preg_match('/^(6|7)/',$q[$e]['j_poste'])) { echo HtmlInput::hidden("amount_t".$amount_idx,$q[$e]['j_montant']); $anc_op=new Anc_Operation($cn); $anc_op->j_id=$q[$e]['j_id']; echo HtmlInput::hidden('op[]',$anc_op->j_id); $row.=$anc_op->display_table(1,$q[$e]['j_montant'],$div); $amount_idx++; } else { $row.=td(''); } } $class=($e%2==0)?' class="even"':'class="odd"'; echo tr($row,$class); } ?>
'._('Compt. Analytique').'