Compare commits

...

2 Commits

Author SHA1 Message Date
9ac427415a ajout arrondi calcul date 2025-02-04 18:35:39 +01:00
17d132ffa2 améliorations cosmétiques 2025-02-04 14:50:54 +01:00
4 changed files with 16 additions and 14 deletions

View File

@ -16,6 +16,4 @@
{{:assign nbjours="-1*%d"|math:$nbjours}}
{{/if}}
{{* pour simplifier : 360 jours par an *}}
{{if $nbjours > 360}}
{{:assign nbjours=360}}
{{/if}}
{{:assign nbjours="round(%f/365*360)"|math:$nbjours}}

View File

@ -1,3 +1,5 @@
{{* -*- brindille -*- *}}
<nav class="tabs">
{{if $current == 'index'}}
<aside>
@ -16,9 +18,10 @@
<li {{if $subcurrent == 'fini'}}class="current"{{/if}}><a href="index.html?amort=fini">Terminées</a></li>
<li {{if $subcurrent == 'no_amort'}}class="current"{{/if}}><a href="index.html?amort=no_amort">Non amortissables</a></li>
</ul>
{{if $subsubcurrent == 'amortization'}}
<ul class="sub">
<li class="current"><a>Amortissements</a></li>
<li class="title"><strong>Amortissements</strong></li>
</ul>
{{/if}}
{{/if}}

View File

@ -101,7 +101,13 @@
{{/if}}
{{/select}}
<h2>Amortissement de « {{$ligne_immo.label}} » d'un montant de {{"%f"|math:$ligne_immo.montant|money_currency}} en date du {{$date_debut|date_short}}{{if $duree != null}} sur {{$duree}} ans{{/if}}</h2>
<h3>Amortissement de «
<a class="num"
href={{"%s/acc/transactions/details.php?id=%s"|args:$admin_url:$ligne_immo.trans_id}}>#{{$ligne_immo.trans_id}}</a>
{{$ligne_immo.label}} » d'un montant de
{{"%f"|math:$ligne_immo.montant|money_currency}}
en date du {{$date_debut|date_short}}{{if $duree != null}} sur {{$duree}} ans{{/if}}
</h3>
{{if $duree != null}}
{{* montant de l'annuité théorique *}}
@ -124,12 +130,7 @@
{{:assign solde=$ligne_immo.montant}}
{{if $linked_lines != null}}
<section class="amortissement">
<h3 class="ruler">
Amortissements attachés à « <a class="num"
href={{"%s/acc/transactions/details.php?id=%s"|args:$admin_url:$ligne_immo.trans_id}}>{{$ligne_immo.trans_id}}</a>
{{$ligne_immo.label}} »
({{"%f"|math:$ligne_immo.montant|money_currency}}, {{$date_debut|date_short}})
</h3>
<h3 class="center-block ruler">Amortissements rattachés</h3>
<table class="list">
<thead>
<tr>
@ -184,7 +185,7 @@
{{:assign nbamort="%d-%d"|math:$duree:$nbamort}}
{{:assign annuite_courante="min(%f,%f)"|math:$annuite_courante:$solde}}
<section class="amortissement">
<h3 class="ruler">Amortissements à enregistrer</h3>
<h3 class="center-block ruler">Amortissements à enregistrer</h3>
<table class="list">
<thead>
<tr>
@ -273,7 +274,7 @@
{{if $autres_amortissements != null}}
<section class="amortissement">
<h3 class="ruler">Autres amortissements non rattachés</h3>
<h3 class="center-block ruler">Autres amortissements non rattachés</h3>
<table class="list">
<thead>
<tr>

View File

@ -1,5 +1,5 @@
name="Amortissements"
description="Gestion des amortissements pour le logiciel de comptabilité Paheko (v0.14)"
description="Gestion des amortissements pour le logiciel de comptabilité Paheko (v0.16)"
author="Jean-Christophe Engel"
author_url="https://git.roflcopter.fr/lesanges"
home_button=false