Simplification navigation
This commit is contained in:
parent
a99bcc1753
commit
7903afbd0c
15 changed files with 84 additions and 84 deletions
|
|
@ -65,7 +65,7 @@
|
|||
*}}
|
||||
{{:assign msg_years=""}}
|
||||
{{#years closed=false order="start_date" where="start_date <= :debut AND :debut <= end_date"
|
||||
:debut=$date_debut assign=years.}}
|
||||
:debut=$date_debut assign="years."}}
|
||||
{{if $total_amort == 0}}
|
||||
{{:assign ts_debut=$date_debut|strtotime}}
|
||||
{{else}}
|
||||
|
|
@ -178,6 +178,20 @@
|
|||
{{* enregistrer la liaison des lignes *}}
|
||||
{{#foreach from=$result.lines item="line"}}
|
||||
{{if $line.account_code == $credit_account|keys|value:0}}
|
||||
{{* TODO VOIR SI CORRECT ET UTILE *}}
|
||||
{{*
|
||||
vérifier la présence d'un doc avec cette ligne d'amortissement
|
||||
(cas de la suppression manuelle d'un amortissement)
|
||||
*}}
|
||||
|
||||
{{#load type="amort_link" where="$$.amort_line_id = :amort_line_id" :amort_line_id=$line.id debug=true assign="info_amort"}}
|
||||
{{:debug info_amort=$info_amort}}
|
||||
{{:assign uuid=$key}}
|
||||
{{:break}}
|
||||
{{else}}
|
||||
{{:assign uuid=""|uuid}}
|
||||
{{/load}}
|
||||
{{:debug uuid=$uuid}}
|
||||
{{:save
|
||||
key=""|uuid
|
||||
type="amort_link"
|
||||
|
|
@ -205,12 +219,14 @@
|
|||
|
||||
{{* barre de navigation *}}
|
||||
{{if ! $dialog}}
|
||||
{{:include file="_nav.html" current="index" subcurrent="managed" subsubcurrent="amortization"}}
|
||||
{{:include file="_nav.html" current="managed" subcurrent="amortization"}}
|
||||
{{/if}}
|
||||
|
||||
{{:form_errors}}
|
||||
|
||||
{{:assign var=selected_year value=$years.0.id}}
|
||||
{{if $years|count == 1}}
|
||||
{{:assign var=selected_year value=$years.0.id}}
|
||||
{{/if}}
|
||||
{{:assign var=date_amort value=$years.0.end_date}}
|
||||
{{:include file="_calcul_dates.html" date_debut=$date_debut date_fin=$date_amort keep="nbjours"}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue