diff --git a/_immobilisations.html b/_immobilisations.html index 8e56aef..ab4d4d6 100644 --- a/_immobilisations.html +++ b/_immobilisations.html @@ -124,7 +124,7 @@
+
+| N° | +Date | +Libellé | +Montant | ++ + + {{#foreach from=$linked_immos item="line"}} + {{:assign url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$line.trans_id}} + |
|---|---|---|---|---|
| #{{$line.trans_id}} | +{{$line.date|date_short}} | +{{$line.label}} | +{{"%f"|math:$line.amount|money_currency_html:false|raw}} | ++ {{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}} + | +
+
+ {{if $linked_amort != null}}Aucun amortissement enregistré pour cette immobilisation ; utilisez le bouton « Enregistrer un amortissement » pour enregistrer un nouvel amortissement
{{/if}} -- {{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}} -
- -{{if $linked_immos != null}} -| N° | -Date | -Libellé | -Montant | -- - - {{#foreach from=$linked_immos item="line"}} - {{:assign url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$line.trans_id}} - |
|---|---|---|---|---|
| #{{$line.trans_id}} | -{{$line.date|date_short}} | -{{$line.label}} | -{{"%f"|math:$line.amount|money_currency_html:false|raw}} | -- {{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}} - | -