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}} {{:assign nbjours="-1*%d"|math:$nbjours}}
{{/if}} {{/if}}
{{* pour simplifier : 360 jours par an *}} {{* pour simplifier : 360 jours par an *}}
{{if $nbjours > 360}} {{:assign nbjours="round(%f/365*360)"|math:$nbjours}}
{{:assign nbjours=360}}
{{/if}}

View File

@ -1,3 +1,5 @@
{{* -*- brindille -*- *}}
<nav class="tabs"> <nav class="tabs">
{{if $current == 'index'}} {{if $current == 'index'}}
<aside> <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 == '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> <li {{if $subcurrent == 'no_amort'}}class="current"{{/if}}><a href="index.html?amort=no_amort">Non amortissables</a></li>
</ul> </ul>
{{if $subsubcurrent == 'amortization'}} {{if $subsubcurrent == 'amortization'}}
<ul class="sub"> <ul class="sub">
<li class="current"><a>Amortissements</a></li> <li class="title"><strong>Amortissements</strong></li>
</ul> </ul>
{{/if}} {{/if}}
{{/if}} {{/if}}

View File

@ -101,7 +101,13 @@
{{/if}} {{/if}}
{{/select}} {{/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}} {{if $duree != null}}
{{* montant de l'annuité théorique *}} {{* montant de l'annuité théorique *}}
@ -124,12 +130,7 @@
{{:assign solde=$ligne_immo.montant}} {{:assign solde=$ligne_immo.montant}}
{{if $linked_lines != null}} {{if $linked_lines != null}}
<section class="amortissement"> <section class="amortissement">
<h3 class="ruler"> <h3 class="center-block ruler">Amortissements rattachés</h3>
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"> <table class="list">
<thead> <thead>
<tr> <tr>
@ -184,7 +185,7 @@
{{:assign nbamort="%d-%d"|math:$duree:$nbamort}} {{:assign nbamort="%d-%d"|math:$duree:$nbamort}}
{{:assign annuite_courante="min(%f,%f)"|math:$annuite_courante:$solde}} {{:assign annuite_courante="min(%f,%f)"|math:$annuite_courante:$solde}}
<section class="amortissement"> <section class="amortissement">
<h3 class="ruler">Amortissements à enregistrer</h3> <h3 class="center-block ruler">Amortissements à enregistrer</h3>
<table class="list"> <table class="list">
<thead> <thead>
<tr> <tr>
@ -273,7 +274,7 @@
{{if $autres_amortissements != null}} {{if $autres_amortissements != null}}
<section class="amortissement"> <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"> <table class="list">
<thead> <thead>
<tr> <tr>

View File

@ -1,5 +1,5 @@
name="Amortissements" 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="Jean-Christophe Engel"
author_url="https://git.roflcopter.fr/lesanges" author_url="https://git.roflcopter.fr/lesanges"
home_button=false home_button=false