le champ closed de acc_years est devenu status
This commit is contained in:
parent
0e3a9669ec
commit
ec1922e5dd
@ -7,8 +7,9 @@
|
|||||||
résultat : open_years, selected_year, selected_chart
|
résultat : open_years, selected_year, selected_chart
|
||||||
*}}
|
*}}
|
||||||
|
|
||||||
|
{{*:debug check::date=$date*}}
|
||||||
{{:assign open_years=""}}
|
{{:assign open_years=""}}
|
||||||
{{#years closed=false}}
|
{{#years status=false}}
|
||||||
{{:assign open_years=$open_years|cat:"\n"|cat:" - "|cat:$label|cat:" : "}}
|
{{:assign open_years=$open_years|cat:"\n"|cat:" - "|cat:$label|cat:" : "}}
|
||||||
{{:assign debut=$start_date|date_short}}
|
{{:assign debut=$start_date|date_short}}
|
||||||
{{:assign fin=$end_date|date_short}}
|
{{:assign fin=$end_date|date_short}}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
<li {{if $current == 'index'}} class="current"{{/if}}><a href="{{$module.url}}index.html">Immobilisations</a></li>
|
<li {{if $current == 'index'}} class="current"{{/if}}><a href="{{$module.url}}index.html">Immobilisations</a></li>
|
||||||
<li {{if $current == 'amortization'}} class="current"{{/if}}><a>Amortissements</a></li>
|
{{if $current == 'amortization'}}<li class="current"><a>Amortissements</a></li>{{/if}}
|
||||||
<li {{if $current == 'aide'}} class="current"{{/if}}><a href="{{$module.url}}aide.html">Aide</a></li>
|
<li {{if $current == 'aide'}} class="current"{{/if}}><a href="{{$module.url}}aide.html">Aide</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
{{:admin_header title="Ajout immobilisation" current="module_amortissement"}}
|
{{:admin_header title="Ajout immobilisation" current="module_amortissement"}}
|
||||||
|
|
||||||
|
|
||||||
{{* barre de navigation *}}
|
{{* barre de navigation *}}
|
||||||
{{if ! $dialog}}
|
{{if ! $dialog}}
|
||||||
{{:include file="_nav.html" current="index"}}
|
{{:include file="_nav.html" current="index"}}
|
||||||
@ -8,6 +9,7 @@
|
|||||||
|
|
||||||
{{* Traiter l'envoi du formulaire *}}
|
{{* Traiter l'envoi du formulaire *}}
|
||||||
{{#form on="add"}}
|
{{#form on="add"}}
|
||||||
|
{{*:debug add::POST=$_POST*}}
|
||||||
|
|
||||||
{{* vérifier que la date est située dans un exercice ouvert *}}
|
{{* vérifier que la date est située dans un exercice ouvert *}}
|
||||||
{{:include
|
{{:include
|
||||||
|
@ -196,7 +196,7 @@
|
|||||||
{{#foreach count="%d+1"|math:$nbamort key="num"}}
|
{{#foreach count="%d+1"|math:$nbamort key="num"}}
|
||||||
{{:assign solde_prec=$solde}}
|
{{:assign solde_prec=$solde}}
|
||||||
{{:assign solde="%f-%d"|math:$solde:$annuite_courante}}
|
{{:assign solde="%f-%d"|math:$solde:$annuite_courante}}
|
||||||
{{#select id from acc_years where :amort_date >= start_date and :amort_date <= end_date and closed = 0; :amort_date=$date_amort|parse_date}}
|
{{#select id from acc_years where :amort_date >= start_date and :amort_date <= end_date and status == 0; :amort_date=$date_amort|parse_date}}
|
||||||
{{:assign enregistrer=1}}
|
{{:assign enregistrer=1}}
|
||||||
{{:assign current_year=$id}}
|
{{:assign current_year=$id}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -119,7 +119,7 @@
|
|||||||
}}
|
}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
|
|
||||||
{{#years closed=false}}
|
{{#years status=false}}
|
||||||
{{:assign var="open_years.%d"|args:$id value=$label}}
|
{{:assign var="open_years.%d"|args:$id value=$label}}
|
||||||
{{/years}}
|
{{/years}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user