diff --git a/immobilisations.html b/immobilisations.html
index 5f93277..545afec 100644
--- a/immobilisations.html
+++ b/immobilisations.html
@@ -31,6 +31,7 @@
{{:assign condition=$condition|cat:" account.code LIKE "|cat:$quote|cat:$code|cat:"%"|cat:$quote|cat:" OR "}}
{{/foreach}}
{{:assign condition=$condition|cat:"0)"}}
+ {{:assign condition=$condition|cat:" AND debit > 0"}}
{{#select
trans.id as trans_id,
@@ -55,6 +56,7 @@
{{:assign trans_url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$trans_id}}
{{:assign compte_url="%s/acc/accounts/journal.php?id=%s&year=%s"|args:$admin_url:$account_id:$trans_id_year}}
{{:assign duration=null}}
+ {{* voir si l'immo est prise en charge *}}
{{#load type="immo" where="$$.line = :line_id" :line_id=$immo_id|intval}}
{{:assign duration=$duration}}
{{if $noamort}}
@@ -92,6 +94,7 @@
}}
{{if $amort_amount == null}}
{{:assign exist_amort=false}}
+ {{:assign amort_amount=0}}
{{else}}
{{:assign amort_amount=$amort_amount}}
{{:assign exist_amort=true}}
diff --git a/immobilisations_achevees.html b/immobilisations_achevees.html
index b079841..d0182b4 100644
--- a/immobilisations_achevees.html
+++ b/immobilisations_achevees.html
@@ -31,6 +31,7 @@
{{:assign condition=$condition|cat:" account.code LIKE "|cat:$quote|cat:$code|cat:"%"|cat:$quote|cat:" OR "}}
{{/foreach}}
{{:assign condition=$condition|cat:"0)"}}
+ {{:assign condition=$condition|cat:" AND debit > 0"}}
{{#select
trans.id as trans_id,
@@ -55,6 +56,7 @@
{{:assign trans_url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$trans_id}}
{{:assign compte_url="%s/acc/accounts/journal.php?id=%s&year=%s"|args:$admin_url:$account_id:$trans_id_year}}
{{:assign duration=null}}
+ {{* voir si l'immo est prise en charge *}}
{{#load type="immo" where="$$.line = :line_id" :line_id=$immo_id|intval}}
{{:assign duration=$duration}}
{{if $noamort}}
@@ -92,6 +94,7 @@
}}
{{if $amort_amount == null}}
{{:assign exist_amort=false}}
+ {{:assign amort_amount=0}}
{{else}}
{{:assign amort_amount=$amort_amount}}
{{:assign exist_amort=true}}