Masquer bouton Attacher amortissement si vnr = 0
This commit is contained in:
parent
d0807b2c9c
commit
428aa1be28
1 changed files with 3 additions and 2 deletions
|
|
@ -43,6 +43,7 @@
|
||||||
|
|
||||||
{{* lister les amortissements liés à l'immobilisation *}}
|
{{* lister les amortissements liés à l'immobilisation *}}
|
||||||
{{:include file="./_get_amort_lines.html" immo_doc_id=$_GET.immo_doc_id keep="linked_amort, total_amort"}}
|
{{:include file="./_get_amort_lines.html" immo_doc_id=$_GET.immo_doc_id keep="linked_amort, total_amort"}}
|
||||||
|
{{:assign vnr="%d-%d"|math:$solde:$total_amort}}
|
||||||
|
|
||||||
{{* déterminer le compte d'amortissement en fonction du compte d'immobilisation *}}
|
{{* déterminer le compte d'amortissement en fonction du compte d'immobilisation *}}
|
||||||
{{:include
|
{{:include
|
||||||
|
|
@ -132,12 +133,12 @@
|
||||||
<dt>Montant des amortissements</dt>
|
<dt>Montant des amortissements</dt>
|
||||||
<dd>{{$total_amort|money_currency_html:false|raw}}</dd>
|
<dd>{{$total_amort|money_currency_html:false|raw}}</dd>
|
||||||
<dt>Valeur nette résiduelle</dt>
|
<dt>Valeur nette résiduelle</dt>
|
||||||
<dd>{{"%d-%d"|math:$solde:$total_amort|money_currency_html:false|raw}}</dd>
|
<dd>{{$vnr|money_currency_html:false|raw}}</dd>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if $free_amort_lines}}
|
{{if $free_amort_lines && $vnr > 0}}
|
||||||
<nav class="actions">
|
<nav class="actions">
|
||||||
{{:linkbutton
|
{{:linkbutton
|
||||||
label="Attacher une écriture d'amortissement"
|
label="Attacher une écriture d'amortissement"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue