amortization/index.html

48 lines
1.3 KiB
HTML
Raw Normal View History

2024-02-23 09:24:47 +01:00
{{* -*- brindille -*- *}}
2024-02-15 14:23:03 +01:00
{{:admin_header title="Gestion des amortissements" custom_css=$custom_css current="module_amortissement"}}
{{* barre de navigation *}}
2025-01-06 15:14:29 +01:00
{{if $_GET.amort == null || $_GET.amort == 1}}
{{:assign amort="amort"}}
2025-01-06 15:14:29 +01:00
{{elseif $_GET.amort == 2}}
{{:assign amort="fini"}}
{{else}}
{{:assign amort="no_amort"}}
{{/if}}
{{:include file="_nav.html" current="index" subcurrent="%s"|args:$amort}}
2024-02-15 14:23:03 +01:00
{{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>
2024-02-15 14:23:03 +01:00
{{elseif $_GET.err}}
<p class="block error">Échec enregistrement immobilisation</p>
2024-02-15 14:23:03 +01:00
{{/if}}
{{* supprimer les documents sans écriture associée *}}
{{#load type="immo"}}
{{#select
line.id as line_id
FROM acc_transactions_lines as line
INNER JOIN acc_transactions AS trans on line.id_transaction = trans.id
WHERE line.id = :line_id;
:line_id = $line
}}
{{else}}
{{:delete key=$key}}
{{/select}}
{{/load}}
{{if $amort == "amort"}}
{{:include file="./immobilisations.html"}}
2025-01-06 15:14:29 +01:00
{{elseif $amort == "fini"}}
{{:include file="./immobilisations_achevees.html"}}
{{else}}
{{:include file="./immobilisations_non.html"}}
{{/if}}
2024-02-15 14:23:03 +01:00
{{:admin_footer}}