Compare commits

..

No commits in common. "9ac427415a6d8b98bac586f8bd3167b6a60efbda" and "f17ccd1bc8ee7ed26a491b4ff60c8ba5e604c070" have entirely different histories.

4 changed files with 14 additions and 16 deletions

View File

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

View File

@ -1,5 +1,3 @@
{{* -*- brindille -*- *}}
<nav class="tabs">
{{if $current == 'index'}}
<aside>
@ -18,10 +16,9 @@
<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="title"><strong>Amortissements</strong></li>
<li class="current"><a>Amortissements</a></li>
</ul>
{{/if}}
{{/if}}

View File

@ -101,13 +101,7 @@
{{/if}}
{{/select}}
<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>
<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>
{{if $duree != null}}
{{* montant de l'annuité théorique *}}
@ -130,7 +124,12 @@
{{:assign solde=$ligne_immo.montant}}
{{if $linked_lines != null}}
<section class="amortissement">
<h3 class="center-block ruler">Amortissements rattachés</h3>
<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>
<table class="list">
<thead>
<tr>
@ -185,7 +184,7 @@
{{:assign nbamort="%d-%d"|math:$duree:$nbamort}}
{{:assign annuite_courante="min(%f,%f)"|math:$annuite_courante:$solde}}
<section class="amortissement">
<h3 class="center-block ruler">Amortissements à enregistrer</h3>
<h3 class="ruler">Amortissements à enregistrer</h3>
<table class="list">
<thead>
<tr>
@ -274,7 +273,7 @@
{{if $autres_amortissements != null}}
<section class="amortissement">
<h3 class="center-block ruler">Autres amortissements non rattachés</h3>
<h3 class="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.16)"
description="Gestion des amortissements pour le logiciel de comptabilité Paheko (v0.14)"
author="Jean-Christophe Engel"
author_url="https://git.roflcopter.fr/lesanges"
home_button=false