45 lines
1.2 KiB
HTML
45 lines
1.2 KiB
HTML
{{* -*- brindille -*- *}}
|
|
{{:admin_header title="Immobilisations et amortissements" custom_css="./style.css" current="module_amortization"}}
|
|
|
|
{{* barre de navigation *}}
|
|
{{if $_GET.type_immo == null}}
|
|
{{:assign type_immo="encours"}}
|
|
{{else}}
|
|
{{:assign type_immo=$_GET.type_immo}}
|
|
{{/if}}
|
|
|
|
{{:include file="_nav.html" current="index" subcurrent="%s"|args:$type_immo}}
|
|
|
|
{{if $_GET.ok}}
|
|
{{if $_GET.msg|match:"immobilisation"}}
|
|
{{:assign msg="Immobilisation enregistrée"}}
|
|
{{elseif $_GET.msg|match:"infos"}}
|
|
{{:assign msg="Informations enregistrées"}}
|
|
{{/if}}
|
|
<p class="block confirm">{{$msg}}</p>
|
|
{{elseif $_GET.err}}
|
|
<p class="block error">Échec enregistrement immobilisation</p>
|
|
{{/if}}
|
|
|
|
{{#load type="immo"}}
|
|
{{* supprimer les documents sans écriture associée *}}
|
|
{{#select
|
|
line.id as line_id
|
|
FROM acc_transactions_lines as line
|
|
WHERE line.id = :line_id;
|
|
:line_id = $line
|
|
}}
|
|
{{else}}
|
|
{{:delete key=$key}}
|
|
{{/select}}
|
|
{{/load}}
|
|
|
|
{{if $type_immo == "autres"}}
|
|
{{:include file="_immobilisations_autres.html"}}
|
|
{{elseif $type_immo == "archive"}}
|
|
{{:include file="_archives.html"}}
|
|
{{elseif $type_immo == "encours" || $type_immo == "fini"}}
|
|
{{:include file="_immobilisations.html"}}
|
|
{{/if}}
|
|
|
|
{{:admin_footer}}
|