Amélioration présentation montants

This commit is contained in:
Jean-Christophe Engel 2025-12-19 11:35:25 +01:00
parent aec5a83eef
commit 846a651008
13 changed files with 59 additions and 60 deletions

View file

@ -324,7 +324,7 @@
<legend>Données de l'imobilisation</legend>
<dl class="describe">
<dt>Montant</dt>
<dd class="money">{{$ligne_immo.montant|money_currency:false}}</dd>
<dd class="money">{{$ligne_immo.montant|money_currency_html:false|raw}}</dd>
<dt>Date d'acquisition</dt>
<dd >{{$ligne_immo.date_achat|date_short}}</dd>
{{if $_GET.date_mes != $ligne_immo.date_achat|strtotime}}
@ -336,28 +336,28 @@
<dd class="num">{{$_GET.duree_amort}} ans</dd>
{{/if}}
<dt>Montant des amortissements</dt>
<dd class="money">{{$_GET.amort_amount|money_currency:false}} <span class="help">(à la date de début de l'exercice)</span></dd>
<dd class="money">{{$_GET.amort_amount|money_currency_html:false|raw}} <span class="help">(à la date de début de l'exercice)</span></dd>
<dt>Valeur nette résiduelle</dt>
<dd class="money">{{$valeur_nette|money_currency:false}} <span class="help">(à la date de début de l'exercice)</span></dd>
<dd class="money">{{$valeur_nette|money_currency_html:false|raw}} <span class="help">(à la date de début de l'exercice)</span></dd>
<dt>Date de sortie</dt>
<dd>{{$_GET.exit_date|date:"d/m/Y"}}</dd>
{{if $amort_comp > 0}}
{{:assign valeur_nette="%f-%f"|math:$valeur_nette:$amort_comp}}
<dt>Amortissement complémentaire</dt>
<dd class="money">{{$amort_comp|money_currency:false}} <span class="help">(jusqu'à la date de sortie)</span></dd>
<dd class="money">{{$amort_comp|money_currency_html:false|raw}} <span class="help">(jusqu'à la date de sortie)</span></dd>
<dt>Total des amortissements</dt>
<dd class="money">{{"%f+%f"|math:$_GET.amort_amount:$amort_comp|money_currency:false}} <span class="help">(à la date de sortie)</span></dd>
<dd class="money">{{"%f+%f"|math:$_GET.amort_amount:$amort_comp|money_currency_html:false|raw}} <span class="help">(à la date de sortie)</span></dd>
<dt>Valeur nette résiduelle</dt>
<dd class="money">{{$valeur_nette|money_currency:false}} <span class="help">(à la date de sortie)</span></dd>
<dd class="money">{{$valeur_nette|money_currency_html:false|raw}} <span class="help">(à la date de sortie)</span></dd>
{{/if}}
{{if $montant_cession == 0}}
{{if $amort_except > 0}}
<dt>Amortissement exceptionnel</dt>
<dd class="money">{{$amort_except|money_currency:false}}</dd>
<dd class="money">{{$amort_except|money_currency_html:false|raw}}</dd>
{{/if}}
{{else}}
<dt>Montant de la cession</dt>
<dd class="money">{{$montant_cession|money_currency:false}}</dd>
<dd class="money">{{$montant_cession|money_currency_html:false|raw}}</dd>
{{/if}}
</dl>
</div>
@ -389,7 +389,7 @@
default=$comp_account
}}
</td>
<td>{{$amort_comp|money_currency:false}}</td>
<td>{{$amort_comp|money_currency_html:false|raw}}</td>
<td></td>
</tr>
<tr>
@ -402,7 +402,7 @@
}}
</td>
<td></td>
<td>{{$amort_comp|money_currency:false}}</td>
<td>{{$amort_comp|money_currency_html:false|raw}}</td>
</tr>
</tbody>
</table>
@ -433,7 +433,7 @@
default=$except_account
}}
</td>
<td>{{$amort_except|money_currency:false}}</td>
<td>{{$amort_except|money_currency_html:false|raw}}</td>
<td></td>
</tr>
<tr>
@ -446,7 +446,7 @@
}}
</td>
<td></td>
<td>{{$amort_except|money_currency:false}}</td>
<td>{{$amort_except|money_currency_html:false|raw}}</td>
</tr>
</tbody>
</table>
@ -476,7 +476,7 @@
{{else}}
{{:assign montant="%f+%f"|math:$_GET.amort_amount:$amort_comp}}
{{/if}}
<td>{{$montant|money_currency:false}}</td>
<td>{{$montant|money_currency_html:false|raw}}</td>
<td></td>
</tr>
{{if $montant_cession > 0 && $valeur_nette > 0}}
@ -489,7 +489,7 @@
default=$vnc_account
}}
</td>
<td>{{$valeur_nette|money_currency:false}}</td>
<td>{{$valeur_nette|money_currency_html:false|raw}}</td>
<td></td>
</tr>
{{/if}}
@ -503,7 +503,7 @@
}}
</td>
<td></td>
<td>{{$ligne_immo.montant|money_currency:false}}</td>
<td>{{$ligne_immo.montant|money_currency_html:false|raw}}</td>
</tr>
</tbody>
</table>
@ -528,7 +528,7 @@
default=$creance_account
}}
</td>
<td>{{$montant_cession|money_currency:false}}</td>
<td>{{$montant_cession|money_currency_html:false|raw}}</td>
<td></td>
</tr>
<tr>
@ -541,7 +541,7 @@
}}
</td>
<td></td>
<td>{{$montant_cession|money_currency:false}}</td>
<td>{{$montant_cession|money_currency_html:false|raw}}</td>
</tr>
</tbody>
</table>