21 <h2
class=
"info">Détail de matériel</h2>
22 <span
style=
"text-align:center;display:block;font-size:2em" id=
"p_card_label" ><?php echo $card->strAttribut(ATTR_DEF_NAME)?></span>
26 <td><?php echo $card->strAttribut(ATTR_DEF_QUICKCODE)?></td>
30 <td>Date d
'acquisition</td>
31 <td><?php echo $p_date?></td>
35 <td>Montant à amortir</td>
36 <td><?php echo $p_amount?></td>
40 <td>Année comptable d'achat</td>
44 <tr
id=
"deb_use_account_tr_id">
45 <td>Poste de charge dotations amortissement (débit)</td>
46 <td><?php echo
$p_deb?></td>
49 <tr
id=
"cred_use_account_tr_id">
50 <td>Poste amortissement en contrepartie</td>
54 <tr
id=
"deb_use_card_tr_id">
55 <td>Fiche de charge pour amortissement (déb) </td>
58 <tr
id=
"cred_use_card_tr_id">
59 <td>Fiche amortissement en contrepartie</td>
62 <td>Nombre d
'années amortissement (non modifiable)</td>
63 <td><?php echo $p_number?></td>
67 if ( $p_number == 0 ) :
68 echo "Date ".date ('d.m.Y
');
69 echo HtmlInput::print_window();
73 <fieldset><legend>Annuités</legend>
74 <table class="result">
77 <th style="text-align:right" >Amortissement acté</th>
78 <th style="text-align:center">Pièce </th>
88 for ($i=0;$i<count($array);$i++):
92 <?php echo $array[$i]->ad_year?>
96 echo nbm($array[$i]->ad_amount);
101 $annuite=bcadd($annuite,$array[$i]->ad_amount);
103 $x=$cn->get_array('select
ha_id,
h_pj,
jr_internal,h_amount from amortissement.amortissement_histo where
a_id=$1 and h_year=$2
',
104 array($amort->a_id,$array[$i]->ad_year));
105 if ( count ($x) == 1)
107 $done=bcadd($done,$x[0]['h_amount
']);
109 echo td(nbm($x[0]['h_amount
']),' class=
"num"');
111 echo td($x[0]['h_pj
'],' style=
"text-align:center"');
113 if ( $x[0]['jr_internal
'] != '' ) {
114 $jr_id=$cn->get_value('select jr_id from jrn where jr_internal=$1
',array($x[0]['jr_internal
']));
115 echo td(HtmlInput::detail_op($jr_id,$x[0]['jr_internal
']));
120 echo td(nbm($array[$i]->ad_percentage).'%
');
129 <span style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%">Total = <?php echo nbm($annuite)?></span>
130 <span style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%">Amorti = <?php echo nbm($done)?></span>
131 <span style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%">Reste = <?php echo nbm($p_amount-$done)?></span>
134 if ( $annuite != $p_amount)
136 echo '<h2
class=
"error">Différence entre le montant à amortir et le montant amorti =
';
137 echo nbm($annuite - $p_amount);
142 <?php echo "Date ".date ('d.m.Y
');?>
143 <?php echo HtmlInput::print_window()?>
if($p_number->value==0) l les annuités seront recalculées et l pct[] ad_year[] select ha_id
if($p_number->value==0) l les annuités seront recalculées et l pct[] ad_year[] select h_amount from amortissement amortissement_histo where a_id