jr_id=$jr_id; $aRap=$oRap->get(); // Detail of operation $detail = new Acc_Misc($cn, $obj->jr_id); $detail->get(); $nb_document=($detail->det->jr_pj_name != "")?1:0; // Array of tab // $a_tab['writing_div']=array('id'=>'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').'('.count($aRap).')','display'=>'none'); $a_tab['document_operation_div']=array('id'=>'document_operation_div'.$div,'label'=>_('Document').'('.$nb_document.')','display'=>'block'); $a_tab['linked_action_div']=array('id'=>'linked_action_div'.$div,'label'=>_('Actions Gestion').'('.count($a_followup).')','display'=>'none'); $a_tab['analytic_div']=array('id'=>'analytic_div'.$div,'label'=>_('Comptabilité Analytique'),'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); ?>

'; 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();?>

'; for ($e=0;$ejr_id=$aRap[$e]; $internal=$opRap->get_internal(); $array_jr=$cn->get_array('select jr_date,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=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 ); if ( $access=='W') $remove=$rmReconciliation->input(); else $remove=''; $comment=strip_tags($array_jr[0]['jr_comment']); echo tr (td(format_date($array_jr[0]['jr_date'])). td(''.$internal.''). td($comment). td(nbm($amount)). td($remove),' id = "row'.$e.'"'); } echo ''; } ?> amount_id=$obj->det->jr_montant; echo $wConcerned->input(); } ?>

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

    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(); } $reverse=new IButton('bext'.$div); $reverse->label=_('Extourner'); $reverse->javascript="g('ext".$div."').style.display='block'"; echo $reverse->input(); echo '

    '; echo ''; echo ''; }else { echo '

    '; } ?>