restructuration et complément classification immobilisations

This commit is contained in:
Jean-Christophe Engel 2025-01-10 13:53:47 +01:00
parent 3ef33e15e3
commit 5fcf510b25
5 changed files with 132 additions and 277 deletions

View file

@ -3,7 +3,11 @@
{{* Liste des immobilisations amortissable ou à définir *}}
<section class="immobilisation">
<h2 class="ruler">Immobilisations en cours</h2>
{{if $amort == "amort"}}
<h2 class="ruler">Immobilisations en cours</h2>
{{else}}
<h2 class="ruler">Immobilisations amorties</h2>
{{/if}}
<table class="list">
<thead>
@ -101,7 +105,9 @@
{{/if}}
{{/select}}
{{* immo amortie ? *}}
{{if $amort_amount >= $debit}}
{{if $amort == "amort" && $amort_amount >= $debit ||
$amort == "fini" && $amort_amount < $debit
}}
{{:continue}}
{{/if}}
<tr>
@ -114,7 +120,7 @@
<td>{{$account_label}}</td>
<td>{{$project_label}}</td>
<td class="actions">
{{if $duration == null}}
{{if ! $exist_amort && $duration == null}}
{{:linkbutton
label="Ajouter infos"
href="add_infos.html?immo_id=%s&amort=1"|args:$immo_id
@ -132,7 +138,7 @@
{{/if}}
{{:linkbutton
label="Amortissements"
href="amortization.html?immo_id=%s"|args:$immo_id
href="amortization.html?immo_id=%s&amort=%s"|args:$immo_id:$amort
shape="table"
}}
{{/if}}
@ -142,17 +148,3 @@
</tbody>
</table>
</section>
<form method="post" action="">
<fieldset>
<legend>Ajouter une immobilisation</legend>
<p class="submit">
{{:linkbutton
label="Ajouter une immobilisation"
shape="plus"
href="add_asset.html"
target="_dialog"
}}
</p>
</fieldset>
</form>