From 6cbc624146042d3af27c33c70d1276440a334ec7 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Tue, 12 Mar 2024 17:50:51 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20erreur=20num=C3=A9ro=20exercice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- amortization.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amortization.html b/amortization.html index ddca66e..0f352d2 100644 --- a/amortization.html +++ b/amortization.html @@ -245,6 +245,7 @@ {{:assign solde="%f-%d"|math:$solde:$annuite_courante}} {{#select id from acc_years where end_date = :end_date and closed = 0; :end_date=$date_amort|parse_date}} {{:assign enregistrer=1}} + {{:assign current_year=$id}} {{else}} {{:assign enregistrer=0}} {{/select}} @@ -280,7 +281,6 @@ {{:assign annee=$date_amort|date:"Y"}} {{:assign annee="%d+1"|math:$annee}} {{:assign date_amort="%s/%s/%s"|args:$jour:$mois:$annee|parse_date|date_short}} - {{:assign current_year="%d+1"|math:$current_year}} {{:assign annuite_courante="min(%f,%f)"|math:$annuite:$solde}} {{if $solde == 0}}{{:break}}{{/if}} {{/foreach}}