Merge branch 'main' into aide
This commit is contained in:
commit
f701bfe39b
3 changed files with 41 additions and 17 deletions
|
|
@ -151,7 +151,7 @@
|
||||||
<h3 class="ruler">Avoirs</h3>
|
<h3 class="ruler">Avoirs</h3>
|
||||||
<nav class="actions">
|
<nav class="actions">
|
||||||
{{if $total_amort == 0 || ! $created_amort}}
|
{{if $total_amort == 0 || ! $created_amort}}
|
||||||
{{:linkbutton label="Attacher une écriture d'avoir" href="link_immo.html?immo_doc_id=%s"|args:$_GET.immo_doc_id shape="link" target="_dialog"}}
|
{{:linkbutton label="Attacher une écriture d'avoir" href="link_immo.html?immo_doc_id=%s&filter=true"|args:$_GET.immo_doc_id shape="link" target="_dialog"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,11 @@
|
||||||
{{*
|
{{*
|
||||||
lister les écritures au crédit du compte de l'immobilisation
|
lister les écritures au crédit du compte de l'immobilisation
|
||||||
*}}
|
*}}
|
||||||
|
{{if $_GET.filter}}
|
||||||
{{:assign account_code=$ligne_immo.account_code|cat:"%"}}
|
{{:assign account_code=$ligne_immo.account_code|cat:"%"}}
|
||||||
|
{{else}}
|
||||||
|
{{:assign account_code=$ligne_immo.account_code|substr:0:2|cat:"%"}}
|
||||||
|
{{/if}}
|
||||||
{{#select
|
{{#select
|
||||||
line.id as credit_line_id,
|
line.id as credit_line_id,
|
||||||
line.id_transaction as credit_trans_id,
|
line.id_transaction as credit_trans_id,
|
||||||
|
|
@ -61,23 +65,32 @@
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<section class="immobilisation">
|
<nav class="tabs">
|
||||||
<fieldset>
|
<ul>
|
||||||
<legend>
|
<li {{if $_GET.filter}}class="current"{{/if}}>
|
||||||
Écritures au crédit du compte d'immobilisation « {{$ligne_immo.account_code}} » et sous-comptes
|
<a href="link_immo.html?immo_doc_id={{$_GET.immo_doc_id}}{{if $dialog}}&_dialog{{/if}}&filter=true">
|
||||||
</legend>
|
Compte {{$ligne_immo.account_code}} et sous-comptes
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li {{if ! $_GET.filter}}class="current"{{/if}}>
|
||||||
|
<a href="link_immo.html?immo_doc_id={{$_GET.immo_doc_id}}{{if $dialog}}&_dialog{{/if}}">
|
||||||
|
Compte {{$ligne_immo.account_code|substr:0:2}} et sous-comptes
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<section class="immobilisation">
|
||||||
<div class="informations">
|
<div class="informations">
|
||||||
<dl class="describe">
|
<dl class="describe">
|
||||||
<dt>Immobilisation</dt>
|
<dt>Immobilisation</dt>
|
||||||
<dd><span class="num"><a href="{{$trans_url}}">#{{$ligne_immo.trans_id}}</a></span> {{$label_immo}}</dd>
|
<dd><span class="num"><a href="{{$trans_url}}">#{{$ligne_immo.trans_id}}</a></span> {{$label_immo}}</dd>
|
||||||
<dt>Montant</dt>
|
<dt>Montant</dt>
|
||||||
<dd class="money strong">{{"%f"|math:$ligne_immo.amount|money_currency_html:false|raw}}</dd>
|
<dd class="money strong">{{"%f"|math:$ligne_immo.amount|money_currency_html:false|raw}}</dd>
|
||||||
<dt>Date de l'écriture d'immobilisation</dt>
|
<dt>Date de l'immobilisation</dt>
|
||||||
<dd>{{$ligne_immo.date_achat|date_short}}</dd>
|
<dd>{{$ligne_immo.date_achat|date_short}}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{if $other_immos != null}}
|
{{if $other_immos != null}}
|
||||||
<table class="list">
|
<table class="list">
|
||||||
|
|
@ -111,8 +124,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
|
||||||
<p class="help">Sélectionner une écriture d'avoir ou autre réduction du montant de l'acquisition pour l'associer à l'immobilisation</p>
|
<p class="help">Sélectionner une écriture d'avoir ou autre réduction du montant de l'acquisition pour l'associer à l'immobilisation</p>
|
||||||
|
</table>
|
||||||
{{else}}
|
{{else}}
|
||||||
<p class="block alert">Aucune écriture au crédit du compte « {{$ligne_immo.account_code}} »</p>
|
<p class="block alert">Aucune écriture au crédit du compte « {{$ligne_immo.account_code}} »</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,19 @@
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{{if $free_amort_lines != null}}
|
|
||||||
<section class="amortissement">
|
<section class="amortissement">
|
||||||
<h3 class="ruler">Immobilisation « {{$label_immo}} »</h3>
|
<div class="informations">
|
||||||
|
<dl class="describe">
|
||||||
|
<dt>Immobilisation</dt>
|
||||||
|
<dd><span class="num"><a href="{{$trans_url}}">#{{$ligne_immo.trans_id}}</a></span> {{$label_immo}}</dd>
|
||||||
|
<dt>Montant</dt>
|
||||||
|
<dd class="money strong">{{"%f"|math:$ligne_immo.amount|money_currency_html:false|raw}}</dd>
|
||||||
|
<dt>Date de l'immobilisation</dt>
|
||||||
|
<dd>{{$ligne_immo.date_achat|date_short}}</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{if $free_amort_lines != null}}
|
||||||
<table class="list">
|
<table class="list">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -106,11 +116,12 @@
|
||||||
</tr>
|
</tr>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<p class="help">Sélectionner une écriture d'amortissement pour l'associer à l'immobilisation</p>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<p class="block alert">Aucun amortissement pour le compte {{$code_amort}}</p>
|
<p class="block alert">Aucun amortissement pour le compte {{$code_amort}}</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
{{:form_errors}}
|
{{:form_errors}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue