Répartition opérations details/amortization

This commit is contained in:
Jean-Christophe Engel 2026-06-06 11:59:23 +02:00
parent ae63f13776
commit c7f7ead2a5
5 changed files with 16 additions and 20 deletions

View file

@ -31,25 +31,19 @@
{{:admin_header title="Détails de l'immobilisation" custom_css="./style.css" current="module_amortization"}}
{{*
{{if ! $dialog}}
{{:assign subsubcurrent=null}}
{{if $total_credits == 0 && $total_amort == 0}}
{{:assign subsubcurrent="credit"}}
{{/if}}
{{if $total_amort == 0}}
{{:assign subsubcurrent=$subsubcurrent|cat:"-modif"}}
{{:assign subsubcurrent="credit"}}
{{/if}}
{{:include file="_nav.html" current="index" subcurrent="details" subsubcurrent=$subsubcurrent}}
{{/if}}
*}}
{{:assign trans_url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$ligne_immo.trans_id}}
{{*
<nav class="tabs">
<aside>
{{*if $total_credits == 0*}}
{{:linkbutton label="Rattacher une écriture d'avoir" href="link_immo.html?immo_doc_id=%s"|args:$_GET.immo_doc_id shape="link" target="_dialog"}}
{{*/if*}}
</aside>
<nav style="margin-bottom: 1em;">
{{:linkbutton shape="left" label="Retour à la liste des immobilisations" href="index.html}}
@ -59,6 +53,7 @@
{{/if}}
</nav>
</nav>
*}}
{{if $_GET.ok}}
{{if $_GET.msg|match:"attach_amort"}}
@ -96,7 +91,9 @@
<td>{{$line.date|date_short}}</td>
<td class="money">{{"%f"|math:$line.amount|money_currency_html:false|raw}}</td>
<td>
{{:linkbutton label="Détacher" href="detach_credit.html?immo_doc_id=%s&credit_line_id=%s"|args:$_GET.immo_doc_id:$line.credit_line_id shape="minus"}}
{{if $total_amort == 0}}
{{:linkbutton label="Détacher" href="detach_credit.html?immo_doc_id=%s&credit_line_id=%s"|args:$_GET.immo_doc_id:$line.credit_line_id shape="minus"}}
{{/if}}
</td>
</tr>
{{/foreach}}