Go to the documentation of this file.
30 <
table class=
"result" >
35 echo
th(_(
'Quick Code'));
36 echo
th(_(
'Description'));
39 echo
th(_(
'Taux TVA'),
'style="text-align:right"');
45 echo
th(_(
'Prix/Un.'),
'style="text-align:right"');
46 echo
th(_(
'Quantité'),
'style="text-align:right"');
47 echo
th(_(
'Personnel'),
'style="text-align:right"');
48 echo
th(_(
'Non ded'),
'style="text-align:right"');
52 echo
th(_(
'HTVA'),
'style="text-align:right"');
53 echo
th(_(
'TVA NP'),
'style="text-align:right"');
54 echo
th(_(
'TVA'),
'style="text-align:right"');
55 echo
th(_(
'TVAC'),
'style="text-align:right"');
57 echo
th(_(
'Total'),
'style="text-align:right"');
60 for (
$e = 0;
$e < count(
$obj->det->array);
$e++)
74 $sym_tva =
h($tva->get_parameter(
'label'));
80 $row.=
td($sym_tva,
'style="text-align:center"');
82 if (
$q[
'qp_quantite'] != 0)
83 $pu = bcdiv(
$q[
'qp_price'],
$q[
'qp_quantite']);
87 $no_ded =
$q[
'qp_nd_amount'];
88 $row.=
td(
nbm(
$q[
'qp_dep_priv']),
'style="text-align:right"');
89 $row.=
td(
nbm($no_ded),
' style="text-align:right"');
90 $htva =
$q[
'qp_price'];
94 $tvac = bcadd($htva,
$q[
'qp_vat']);
95 $tvac = bcadd($tvac,
$q[
'qp_nd_tva']);
96 $tvac = bcadd($tvac,
$q[
'qp_nd_tva_recup']);
101 $tva_amount = bcadd(
$q[
'qp_vat'],
$q[
'qp_nd_tva']);
102 $tva_amount = bcadd($tva_amount,
$q[
'qp_nd_tva_recup']);
104 if (
$q[
'qp_vat_sided'] <> 0)
106 $class =
' style="text-decoration:line-through"';
107 $tvac = bcsub($tvac,
$q[
'qp_vat_sided']);
118 $row =
td(_(
'Total'),
' style="font-style:italic;text-align:right;font-weight: bolder;width:auto" colspan="6"');
120 $row =
td(_(
'Total'),
' style="font-style:italic;text-align:right;font-weight: bolder;width:auto" colspan="6"');
nbm($p_number, $p_dec=2)
format the number with a sep.
h( $row[ 'oa_description'])
tr($p_string, $p_extra='')
Acc_Tva is used for to map the table tva_rate parameter are.
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
th($p_string, $p_extra='', $raw='')
td($p_string='', $p_extra='')
surround the string with td