From 9ac427415a6d8b98bac586f8bd3167b6a60efbda Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Tue, 4 Feb 2025 14:52:50 +0100 Subject: [PATCH] ajout arrondi calcul date --- _calcul_dates.html | 4 +--- module.ini | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/_calcul_dates.html b/_calcul_dates.html index 6ccc98b..6239b76 100644 --- a/_calcul_dates.html +++ b/_calcul_dates.html @@ -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}} diff --git a/module.ini b/module.ini index 3a9fb67..d04a868 100644 --- a/module.ini +++ b/module.ini @@ -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