MY_STRICT=='Y' && $g_user->check_action(UPDDATE)==0) { $date->setReadOnly(true); } $date->value=format_date($obj->det->jr_date); echo td(_('Date')).td($date->input()); ?> det->array[0]['qf_bank']); $view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()), ' class="line" '); echo td(_('Compte en banque')).td($view_card_detail).td(); ?> det->array[0]['qf_other']); $view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()), ' class="line" '); echo td(_('Tiers')).td($view_card_detail); ?> value=(!empty($obj->det->jr_comment))?strip_tags($obj->det->jr_comment):''; $itext->size=40; echo td(_('Libellé')).td($itext->input(),' colspan="2" style="width:auto"'); ?> det->array[0]['qf_amount']),' class="inum"');?> value=(!empty($obj->det->jr_pj_number))?strip_tags($obj->det->jr_pj_number):''; echo td(_('Pièce')).td($itext->input()); ?>
Note
style=' class="itextarea" style="width:90%;height:100%;"'; $inote->value = strip_tags($obj->det->note); echo $inote->input(); ?>
set_jrn_id($obj->det->jr_id); $tag_operation->tag_cell($div); ?>
det->jr_id,$div);} ?>
det->currency_id!=0) { $currency_amount=$obj->db->get_value("select oc_amount from operation_currency where j_id =$1", [$obj->det->array[0]['j_id']]); $currency_rate=$obj->db->get_value("select currency_rate from jrn where jr_id=$1",[$obj->jr_id]); $currency_code=$obj->db->get_value("select cr_code_iso from currency where id=$1",[$obj->det->currency_id]); printf (_("%s Taux utilisé %s Montant en devise %s"),$currency_code,$currency_rate,$currency_amount); } ?>
jr_id); $detail->get(); ?> 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 */ $str_anc .= ''._('Compt. Analytique').''; /* add hidden variables pa[] to hold the value of pa_id */ $str_anc .= Anc_Plan::hidden($a_anc); } bcscale(2); for ($e=0;$edet->array);$e++) { $row=''; $q=$detail->det->array; $fiche=new Fiche($cn); $fiche->get_by_qcode($q[$e]['j_qcode']); /* Analytic accountancy */ if ( $owner->MY_ANALYTIC != "nu" /*&& $div == 'popup'*/) { $poste=$fiche->get_attribute(ATTR_DEF_ACCOUNT); if ( $g_parameter->match_analytic($q[$e]['j_poste'])) { $qcode=$fiche->get_attribute(ATTR_DEF_QUICKCODE); $anc_op=new Anc_Operation($cn); $anc_op->j_id=$q[$e]['j_id']; $anc_op->in_div=$div; $str_anc.=''; $str_anc.=td($poste); $str_anc.=td($qcode); $str_anc.=td(nbm($q[$e]['j_montant'])); $str_anc.=''; $str_anc.= HtmlInput::hidden('opanc[]',$anc_op->j_id); $montant=($q[$e]['j_debit'] == "t")?$q[$e]['j_montant']:bcmul($q[$e]['j_montant'], -1); $str_anc.=$anc_op->display_table(1,$montant,$div); $str_anc.=''; $str_anc.=''; } } } ?>