Ajout colonnes Amortissements et Valeur nette dans tables des immos

This commit is contained in:
Jean-Christophe Engel 2025-11-27 12:02:26 +01:00
parent 79d5afc147
commit a50aeb9e34
2 changed files with 7 additions and 5 deletions

View file

@ -15,13 +15,14 @@
<table class="list"> <table class="list">
<thead> <thead>
<tr> <tr>
<th></th> <th class="num"></th>
<th>Date</th> <th>Date</th>
<th>Libellé</th> <th>Libellé</th>
<th class="nombre">Montant</th> <th class="nombre">Montant</th>
<th class="nombre">Durée</th> <th class="nombre">Durée</th>
<th class="nombre">Amortissements</th>
<th class="nombre">Valeur nette</th>
<th>N° compte</th> <th>N° compte</th>
<th>Compte</th>
<th class="actions"></th> <th class="actions"></th>
</tr> </tr>
</thead> </thead>
@ -158,8 +159,9 @@
<td>{{$trans_label}}</td> <td>{{$trans_label}}</td>
<td class="money">{{$debit|money}}</td> <td class="money">{{$debit|money}}</td>
<td class="money">{{if $duration != null}}{{$duration}}{{/if}}</td> <td class="money">{{if $duration != null}}{{$duration}}{{/if}}</td>
<td class="money">{{$amort_amount|money|or:"0,00"}}</td>
<td class="money">{{"%d-%d"|math:$debit:$amort_amount|money|or:"0,00"}}</td>
<td><a href={{$compte_url}}>{{$account_code}}</a></td> <td><a href={{$compte_url}}>{{$account_code}}</a></td>
<td>{{$account_label}}</td>
<td class="actions"> <td class="actions">
{{if ! $exist_amort}} {{if ! $exist_amort}}
{{:linkbutton {{:linkbutton

View file

@ -192,9 +192,9 @@
<dd>{{$duree}} ans</dd> <dd>{{$duree}} ans</dd>
{{/if}} {{/if}}
{{if $valeur_residuelle > 0}} {{if $valeur_residuelle > 0}}
<dt>Montant déjà amorti</dt> <dt>Montant des amortissements</dt>
<dd>{{"%d-%d"|math:$ligne_immo.montant:$valeur_residuelle|money_currency:false}}</dd> <dd>{{"%d-%d"|math:$ligne_immo.montant:$valeur_residuelle|money_currency:false}}</dd>
<dt>Valeur résiduelle</dt> <dt>Valeur nette comptable</dt>
<dd>{{$valeur_residuelle|money_currency}}</dd> <dd>{{$valeur_residuelle|money_currency}}</dd>
{{/if}} {{/if}}
{{if $duree != null && $valeur_residuelle > 0}} {{if $duree != null && $valeur_residuelle > 0}}