Amélioration présentation page amortissements
This commit is contained in:
parent
a69737c429
commit
f69b5a0ee8
2 changed files with 40 additions and 40 deletions
|
|
@ -124,7 +124,7 @@
|
||||||
<td><a href="{{$compte_url}}">{{$account_code}}</a></td>
|
<td><a href="{{$compte_url}}">{{$account_code}}</a></td>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
{{:linkbutton
|
{{:linkbutton
|
||||||
label="Voir"
|
label="Détails"
|
||||||
href="amortization.html?immo_doc_id=%s&type_immo=%s"|args:$immo_doc_id:$type_immo shape="eye"
|
href="amortization.html?immo_doc_id=%s&type_immo=%s"|args:$immo_doc_id:$type_immo shape="eye"
|
||||||
}}
|
}}
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -113,14 +113,14 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<h3 class="ruler">Immobilisation</h3>
|
<h3 class="ruler">Immobilisation</h3>
|
||||||
<p class="actions-center">
|
<nav class="actions">
|
||||||
{{if $total_amort == 0}}
|
{{if $total_amort == 0}}
|
||||||
{{:linkbutton label="Modifier les paramètres" href="modify_infos.html?immo_doc_id=%s"|args:$_GET.immo_doc_id shape="edit" target="_dialog"}}
|
{{:linkbutton label="Modifier les paramètres" href="modify_infos.html?immo_doc_id=%s"|args:$_GET.immo_doc_id shape="edit" target="_dialog"}}
|
||||||
{{if ! $info_immo.created}}
|
{{if ! $info_immo.created}}
|
||||||
{{:linkbutton label="Supprimer les paramètres" href="delete_infos.html?immo_doc_id=%s"|args:$_GET.immo_doc_id shape="delete" target="_dialog"}}
|
{{:linkbutton label="Supprimer les paramètres" href="delete_infos.html?immo_doc_id=%s"|args:$_GET.immo_doc_id shape="delete" target="_dialog"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</p>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
<div class="informations">
|
<div class="informations">
|
||||||
|
|
@ -156,8 +156,43 @@
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h3 class="ruler">Avoirs</h3>
|
||||||
|
<nav class="actions">
|
||||||
|
{{if $total_amort == 0}}
|
||||||
|
{{:linkbutton label="Attacher une écriture d'avoir" href="link_immo.html?immo_doc_id=%s"|args:$_GET.immo_doc_id shape="link" target="_dialog"}}
|
||||||
|
{{/if}}
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{if $linked_immos != null}}
|
||||||
|
<table class="list">
|
||||||
|
<thead>
|
||||||
|
<th class="num">N°</th>
|
||||||
|
<th>Date</th>
|
||||||
|
<th>Libellé</th>
|
||||||
|
<th class="nombre">Montant</th>
|
||||||
|
<th class="actions"></th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{{#foreach from=$linked_immos item="line"}}
|
||||||
|
{{:assign url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$line.trans_id}}
|
||||||
|
<tr>
|
||||||
|
<td class="num"><a href="{{$url}}">#{{$line.trans_id}}</a></td>
|
||||||
|
<td>{{$line.date|date_short}}</td>
|
||||||
|
<td>{{$line.label}}</td>
|
||||||
|
<td class="money">{{"%f"|math:$line.amount|money_currency_html:false|raw}}</td>
|
||||||
|
<td>
|
||||||
|
{{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}}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<h3 class="ruler">Amortissements</h3>
|
<h3 class="ruler">Amortissements</h3>
|
||||||
<p class="actions-center">
|
<nav class="actions">
|
||||||
{{if $free_amort_lines && ! $created_amort}}
|
{{if $free_amort_lines && ! $created_amort}}
|
||||||
{{:linkbutton
|
{{:linkbutton
|
||||||
label="Attacher un amortissement"
|
label="Attacher un amortissement"
|
||||||
|
|
@ -172,7 +207,7 @@
|
||||||
href="save_amort.html?immo_doc_id=%s"|args:$_GET.immo_doc_id target="_dialog"
|
href="save_amort.html?immo_doc_id=%s"|args:$_GET.immo_doc_id target="_dialog"
|
||||||
shape="plus"
|
shape="plus"
|
||||||
}}
|
}}
|
||||||
</p>
|
</nav>
|
||||||
|
|
||||||
{{if $linked_amort != null}}
|
{{if $linked_amort != null}}
|
||||||
<section class="amortissement">
|
<section class="amortissement">
|
||||||
|
|
@ -231,40 +266,5 @@
|
||||||
<p class="block alert">Aucun amortissement enregistré pour cette immobilisation ; utilisez le bouton « Enregistrer un amortissement » pour enregistrer un nouvel amortissement</p>
|
<p class="block alert">Aucun amortissement enregistré pour cette immobilisation ; utilisez le bouton « Enregistrer un amortissement » pour enregistrer un nouvel amortissement</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<h3 class="ruler">Avoirs</h3>
|
|
||||||
<p class="actions-center">
|
|
||||||
{{if $total_amort == 0}}
|
|
||||||
{{:linkbutton label="Attacher une écriture d'avoir" href="link_immo.html?immo_doc_id=%s"|args:$_GET.immo_doc_id shape="link" target="_dialog"}}
|
|
||||||
{{/if}}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
{{if $linked_immos != null}}
|
|
||||||
<table class="list">
|
|
||||||
<thead>
|
|
||||||
<th class="num">N°</th>
|
|
||||||
<th>Date</th>
|
|
||||||
<th>Libellé</th>
|
|
||||||
<th class="nombre">Montant</th>
|
|
||||||
<th class="actions"></th>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{#foreach from=$linked_immos item="line"}}
|
|
||||||
{{:assign url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$line.trans_id}}
|
|
||||||
<tr>
|
|
||||||
<td class="num"><a href="{{$url}}">#{{$line.trans_id}}</a></td>
|
|
||||||
<td>{{$line.date|date_short}}</td>
|
|
||||||
<td>{{$line.label}}</td>
|
|
||||||
<td class="money">{{"%f"|math:$line.amount|money_currency_html:false|raw}}</td>
|
|
||||||
<td>
|
|
||||||
{{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}}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{:form_errors}}
|
{{:form_errors}}
|
||||||
{{:admin_footer}}
|
{{:admin_footer}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue