jr_id=$jr_id; $aRap=$oRap->get(); // Detail of operation $detail = new Acc_Misc($cn, $obj->jr_id); $detail->get(); // find out exercice $periode_id=new Periode($cn,$detail->det->jr_tech_per); $exercice=$periode_id->get_exercice(); $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 = HtmlInput::history_account($q[$e]['j_poste'], $q[$e]['j_poste'], "", $exercice); $row.=td($view_history); if ($q[$e]['j_qcode'] != '') { $fiche = new Fiche($cn); $fiche->get_by_qcode($q[$e]['j_qcode']); $view_history = HtmlInput::history_card($fiche->id, $q[$e]['j_qcode'],"",$exercice); } 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();?>
det->jr_optype)->input(); ?>

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

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

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

    '; } ?>