value = format_date($obj->det->jr_date); echo td(_('Date')) . td($date->input()); ?> value = format_date($obj->det->jr_ech); echo td(_('Echeance')) . td($date_ech->input()); ?>
value = format_date($obj->det->jr_date_paid); echo $date_paid->input(); ?>
det->array[0]['qp_supplier']); echo td(_('Fournisseur')); $view_card_detail = HtmlInput::card_detail($bk->get_quick_code(), h($bk->getName()), ' class="line" '); echo td($view_card_detail); ?>
value = strip_tags($obj->det->jr_pj_number); echo td(_('Pièce')) . td($itext->input()); ?>
value = strip_tags($obj->det->jr_comment); $itext->size = 40; echo td(_('Libellé')) . td($itext->input(), ' colspan="2" '); ?>
Payé selected = ($obj->det->jr_rapt == 'paid'); echo $ipaid->input(); ?>
Note
style=' class="itextarea" style="width:90%;height:100%;"'; $inote->value = strip_tags($obj->det->note); echo $inote->input(); ?>
MY_TVA_USE == 'Y') { echo th(_('Taux TVA'), 'style="text-align:right"'); } else { echo th(''); } echo th(_('Prix/Un.'), 'style="text-align:right"'); echo th(_('Quantité'), 'style="text-align:right"'); echo th(_('Non ded'), 'style="text-align:right"'); if ($owner->MY_TVA_USE == 'Y') { echo th(_('HTVA'), 'style="text-align:right"'); echo th(_('TVA ND'), 'style="text-align:right"'); echo th(_('TVA'), 'style="text-align:right"'); echo th(_('TVAC'), 'style="text-align:right"'); } else echo th(_('Total'), 'style="text-align:right"'); if ($owner->MY_ANALYTIC != 'nu' ) { $anc = new Anc_Plan($cn); $a_anc = $anc->get_list(' order by pa_id '); $x = count($a_anc); /* set the width of the col */ /* add hidden variables pa[] to hold the value of pa_id */ $str_anc.=''. ''. ''. ''. ''. ''; } echo ''; for ($e = 0; $e < count($obj->det->array); $e++) { $row = ''; $q = $obj->det->array[$e]; $fiche = new Fiche($cn, $q['qp_fiche']); $qcode=$fiche->strAttribut(ATTR_DEF_QUICKCODE); $view_card_detail = HtmlInput::card_detail($qcode, "", ' class="line" '); $row = td($view_card_detail); $sym_tva = ''; if ($owner->MY_TVA_USE == 'Y' && $q['qp_vat_code'] != '') { /* retrieve TVA symbol */ $tva = new Acc_Tva($cn, $q['qp_vat_code']); $tva->load(); $sym_tva = h($tva->get_parameter('label')); } if ($owner->MY_UPDLAB == 'Y') { $l_lib = ($q['j_text'] == '') ? $fiche->strAttribut(ATTR_DEF_NAME) : $q['j_text']; $hidden = HtmlInput::hidden("j_id[]", $q['j_id']); $input = new IText("e_march" . $q['j_id'] . "_label", $l_lib); $input->css_size = "100%"; } else { $input = new ISpan("e_march" . $q['j_id'] . "_label"); $hidden = HtmlInput::hidden("j_id[]", $q['j_id']); $input->value = $fiche->strAttribut(ATTR_DEF_NAME); } $row.=td($input->input() . $hidden); $row.=td($sym_tva, 'style="text-align:center"'); $pu = $q['qp_unit']; $row.=td(nbm($pu,4), 'class="num"'); $row.=td(nbm($q['qp_quantite']), 'class="num"'); $no_ded = bcadd($q['qp_dep_priv'], $q['qp_nd_amount']); $row.=td(nbm($no_ded), ' style="text-align:right"'); $htva = $q['qp_price']; $row.=td(nbm($htva), 'class="num"'); $tvac = bcadd($htva, $q['qp_vat']); $tvac = bcadd($tvac, $q['qp_nd_tva']); $tvac = bcadd($tvac, $q['qp_nd_tva_recup']); $tvac = bcsub ($tvac,$q['qp_vat_sided']); if ($owner->MY_TVA_USE == 'Y') { $tva_amount_nd = bcadd($q['qp_nd_tva_recup'], $q['qp_nd_tva']); $class = ""; if ($q['qp_vat_sided'] <> 0) { $class = ' style="text-decoration:line-through"'; } $row.=td(nbm($tva_amount_nd), 'class="num" ' . $class); $row.=td(nbm($q['qp_vat']), 'class="num" ' . $class); $row.=td(nbm($tvac), 'class="num"'); } $total_tvac=bcadd($total_tvac,$tvac); $total_htva=bcadd($htva,$total_htva); /* Analytic accountancy */ if ($owner->MY_ANALYTIC != "nu" /*&& $div == 'popup'*/ ) { $poste = $fiche->strAttribut(ATTR_DEF_ACCOUNT); if (preg_match('/^(6|7)/', $poste)) { $anc_op = new Anc_Operation($cn); $anc_op->j_id = $q['j_id']; $anc_op->in_div=$div; $side=($q['j_debit'] == 'f')?'C':'D'; echo HtmlInput::hidden('opanc[]', $anc_op->j_id); /* compute total price */ bcscale(2); $str_anc.=''; $str_anc.=td($qcode); $str_anc.=td($poste); $str_anc.=td(nbm($htva)." {$side}"); $str_anc.=$anc_op->display_table(1, $htva, $div); } else { $row.=td(''); } } $class=($e%2==0)?' class="even"':'class="odd"'; echo tr($row,$class); } if ($owner->MY_TVA_USE == 'Y') $row = td(_('Total'), ' style="font-style:italic;text-align:right;font-weight: bolder;width:auto" colspan="6"'); else $row = td(_('Total'), ' style="font-style:italic;text-align:right;font-weight: bolder;width:auto" colspan="6"'); $row.=td(nbm($total_htva), 'class="num" style="font-style:italic;font-weight: bolder;"'); if ($owner->MY_TVA_USE == 'Y') $row.=td("") . td("").td(nbm($total_tvac), 'class="num" style="font-style:italic;font-weight: bolder;"'); echo tr($row); ?>
'. _('Code'). ''. _('Poste'). ''. _('Montant'). '' . _('Compt. Analytique') .Anc_Plan::hidden($a_anc). '