'writing_div'.$div,'label'=>_('Ecriture Comptable'),'display'=>'none'); $a_tab['info_operation_div']=array('id'=>'info_operation_div'.$div,'label'=>_('Information'),'display'=>'none'); $a_tab['linked_operation_div']=array('id'=>'linked_operation_div'.$div,'label'=>_('Opérations liées'),'display'=>'none'); $a_tab['document_operation_div']=array('id'=>'document_operation_div'.$div,'label'=>_('Document'),'display'=>'block'); $a_tab['linked_action_div']=array('id'=>'linked_action_div'.$div,'label'=>_('Actions liées'),'display'=>'none'); // show tabs if ( $div != "popup") : $a_tab['document_operation_div']['display']='block'; ?> $a_value): $a_tab[$idx]['display']='block'; endforeach; endif; ?> info->command); $other=new IText('OTHER',$obj->info->other); ?>

jr_id); $detail->get(); ?> '; for ($e = 0; $e < count($detail->det->array); $e++) { $row = ''; $q = $detail->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); if ($q[$e]['j_text']=="") { if ($q[$e]['j_qcode'] != '') { // nom de la fiche $ff = new Fiche($cn); $ff->get_by_qcode($q[$e]['j_qcode']); $row.=td($ff->strAttribut(h(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'])); $row.=td(h($name)); } } else $row.=td(h($q[$e]['j_text'])); $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(''); $class=($e%2==0)?' class="even"':'class="odd"'; echo tr($row,$class); } ?>

: input(); ?>
: input();?>

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 '
'; } ?> amount_id=$obj->det->jr_montant; echo $wConcerned->input(); } ?>

'; for ($i = 0; $i < count($array); $i++) { $remove=''; if ( $access=='W') $remove=HtmlInput::button_action_remove_operation($array[$i]['ago_id']); if ( $div == 'popup') { echo '
  • '.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),0).$remove.'
  • '; } else { echo '
  • '.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),1).$remove.'
  • '; } } echo ''; $related=new IRelated_Action('related'); $related->id='related'.$div; if ( $access=='W') echo $related->input(); echo '
    '; ?>
    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'){ $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 ''; } ?>