diff --git a/_immobilisations_autres.html b/_immobilisations_autres.html
index 781940a..992e20c 100644
--- a/_immobilisations_autres.html
+++ b/_immobilisations_autres.html
@@ -170,7 +170,7 @@
{{:linkbutton
label="Paramètres"
- href="add_infos.html?immo_line_id=%s&type_immo=other"|args:$immo_line_id
+ href="add_infos.html?immo_line_id=%s"|args:$immo_line_id
shape="settings"
}}
{{* target="_dialog"*}}
diff --git a/_unfinished.html b/_unfinished.html
index 37ab4c9..ab561a9 100644
--- a/_unfinished.html
+++ b/_unfinished.html
@@ -126,7 +126,13 @@
{{:continue}}
{{/if}}
- {{* voir s'il existe une écriture qui solde l'immobilisation *}}
+ {{*
+ TODO cas où :
+ - il y a (au moins) une écriture d'avoir
+ - il y a une écriture dui solde l'immo (montant = montant immo - avoir
+ *}}
+
+ {{* voir s'il existe une écriture qui solde l'immobilisation (voir ci-dessus) *}}
{{#select
count(*) AS count
FROM acc_transactions AS trans
diff --git a/add_infos.html b/add_infos.html
index e8efb82..e06b6bb 100644
--- a/add_infos.html
+++ b/add_infos.html
@@ -2,9 +2,8 @@
{{*
@param immo_line_id
- @param type_immo : managed, amortized, archived, other
- TODO :
+ TODO ? :
- séparer les cas des immo simples et complexes (BOI)
par exemple pour la durée d'amort par défaut {{:input ...}}
- prise en charge immo => param = immo_line_id
@@ -36,17 +35,8 @@
{{else}}
{{:error message="Immobilisation non trouvée"}}
{{/select}}
-
{{:assign reste="%d-%d"|math:$ligne_immo.montant:$montant_affecte}}
-{{*
-{{if $info_immo != null}}
- {{:assign date_defaut=$info_immo.date}}
- {{:assign duree_defaut=$info_immo.duration}}
- {{:assign choix_defaut=$info_immo.status}}
-{{else}}
- {{:assign duree_defaut=null}}
-{{/if}}
-*}}
+
{{#form on="save"}}
@@ -145,12 +135,10 @@
{{:admin_header title="Classer l'immobilisation" custom_css="./style.css" current="module_amortization"}}
{{* barre de navigation *}}
{{if ! $dialog}}
- {{:include file="_nav.html" current="index" subcurrent="%s"|args:$_GET.type_immo subsubcurrent="parameter"}}
+ {{:include file="_nav.html" current="index" subcurrent="other" subsubcurrent="parameter"}}
{{/if}}
{{:form_errors}}
-{{:assign choix_defaut=$_GET.type_immo}}
-
{{*
- classer l'immobilisation
- renseigner ou modifier la date de mise en service, les écritures associées ou la durée d'amortissement
diff --git a/modify_infos.html b/modify_infos.html
index 826a106..7ee2501 100644
--- a/modify_infos.html
+++ b/modify_infos.html
@@ -1,11 +1,9 @@
{{* -*- brindille -*- *}}
-{{:admin_header title="Modifier l'immobilisation" custom_css="./style.css" current="module_amortization"}}
{{*
@param immo_doc_id
- ¿ @param type_immo : managed, amortized, archived, other ?
- TODO :
+ TODO ? :
- séparer les cas des immo simples et complexes (BOI)
par exemple pour la durée d'amort par défaut {{:input ...}}
- prise en charge immo => param = immo_line_id
@@ -214,12 +212,12 @@
{{:redirect force="index.html?ok=1&msg=infos&type_immo=%s"|args:$type_immo}}
{{/form}}
-{{:form_errors}}
-{{* barre de navigation *}}
+{{:admin_header title="Modifier l'immobilisation" custom_css="./style.css" current="module_amortization"}}
{{if ! $dialog}}
{{:include file="_nav.html" current="index" subcurrent="%s"|args:$_GET.type_immo subsubcurrent="parameter"}}
{{/if}}
+{{:form_errors}}
{{:assign choix_defaut=$_GET.type_immo}}
|