Réorganisation sortie bilan (onglets) + contrôle cohérence montant

This commit is contained in:
Jean-Christophe Engel 2026-07-13 10:25:11 +02:00
parent 9e620c3efb
commit 24707afd31
17 changed files with 327 additions and 173 deletions

View file

@ -95,7 +95,6 @@
{{else}}
{{:assign current="archived"}}
{{/if}}
{{*:include file="_nav.html" current=$current subcurrent="exit"*}}
{{if $_GET.ok}}
{{if $_GET.msg|match:"attach_amort"}}
@ -129,6 +128,15 @@
</dl>
</div>
{{if $free_amort_lines}}
<nav class="actions">
{{:linkbutton
label="Attacher une écriture d'amortissement"
href="other_amortizations.html?immo_doc_id=%s&filter=true&from=%s"|args:$_GET.immo_doc_id:$_GET.from shape="link"
target="_dialog"}}
</nav>
{{/if}}
<h3 class="ruler">Écritures d'amortissement attachées à l'immobilisation</h3>
{{if $linked_amort != null}}
<table class="list">
@ -181,55 +189,6 @@
</p>
{{/if}}
{{if $free_amort_lines}}
<h3 class="ruler">Autres écritures d'amortissements</h3>
<table class="list">
<thead>
<tr>
<td class="num"></td>
<td>Date</td>
<td>Libellé</td>
<td class="nombre">Montant</td>
<td>N° compte</td>
<td>Compte</td>
<td class="actions"></td>
</tr>
</thead>
<tbody>
{{#foreach from=$free_amort_lines item="line"}}
{{:assign amort_url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$line.amort_trans_id}}
{{:assign compte_url="%s/acc/accounts/journal.php?id=%s&year=%s"|args:$admin_url:$line.account_id:$line.year}}
<tr>
<td class="num"><a href="{{$amort_url}}">#{{$line.amort_trans_id}}</a></td>
<td>{{$line.date|date_short}}</td>
<td>
{{if $line.line_label != null}}
{{$line.line_label}}
{{if $line.trans_label != $line.line_label}}
— {{$line.trans_label}}
{{/if}}
{{else}}
{{$line.trans_label}}
{{/if}}
{{*
{{$line.trans_label}}
{{if $line.line_label != null && $line.line_label != $line.trans_label}} — {{$line.line_label}}{{/if}}
*}}
</td>
<td class="money">{{"%f"|math:$line.amort_amount|money_html:false|raw}}</td>
<td><a href="{{$compte_url}}">{{$line.account_code}}</a></td>
<td>{{$line.account_label}}</td>
<td class="actions">
{{:linkbutton label="Attacher" href="attach_amort.html?immo_doc_id=%s&amort_line_id=%s&from=exit"|args:$_GET.immo_doc_id:$line.amort_line_id shape="plus" target="_dialog"}}
</td>
</tr>
{{/foreach}}
</tbody>
</table>
{{/if}}
<form method="post" action="">
<p class="submit">
{{:button type="submit" name="backward" label="Revenir à l'étape précédente" shape="left" class="main"}}