Correction détermination dates achat et mise en service
This commit is contained in:
parent
e4a637c652
commit
b15eab168c
3 changed files with 36 additions and 21 deletions
|
|
@ -31,6 +31,9 @@
|
|||
|
||||
{{#load id=$_GET.immo_doc_id|intval assign="info_immo"}}
|
||||
{{:assign duree=$duration}}
|
||||
{{if $date_achat != null}}
|
||||
{{:assign date_debut=$date_achat}}
|
||||
{{/if}}
|
||||
{{if $date_mes != null}}
|
||||
{{:assign date_debut=$date_mes}}
|
||||
{{/if}}
|
||||
|
|
@ -42,6 +45,7 @@
|
|||
{{else}}
|
||||
{{:error message="Informations de l'immobilisation « %s » non trouvées ; vous devez d'abord les renseigner"|args:$ligne_immo.label}}
|
||||
{{/load}}
|
||||
|
||||
{{if $ligne_immo.line_label != null && $ligne_immo.line_label != $amort_label}}
|
||||
{{:assign amort_label=$amort_label|cat:" — "|cat:$ligne_immo.line_label}}
|
||||
{{/if}}
|
||||
|
|
@ -83,6 +87,7 @@
|
|||
{{#select
|
||||
line.credit,
|
||||
trans.date as amort_date,
|
||||
COALESCE(trans.label, line.label) as amort_label,
|
||||
account.code as account_code,
|
||||
account.label as account_label
|
||||
FROM acc_transactions_lines AS line
|
||||
|
|
@ -106,6 +111,7 @@
|
|||
{{:assign date_debut=$line.amort_date}}
|
||||
{{:assign code_amort=$line.account_code}}
|
||||
{{:assign amort_account_label=$line.account_label}}
|
||||
{{:assign amort_label=$amort_label}}
|
||||
{{/foreach}}
|
||||
|
||||
{{if $valeur_residuelle == 0}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue