Compare commits

...

3 commits
v0.31 ... main

Author SHA1 Message Date
Jean-Christophe Engel
367dae5cef Petites améliorations de présentation 2026-03-13 20:27:10 +01:00
Jean-Christophe Engel
b937056a62 Ne pas afficher les amortissements d'une immobilisation non amortissable 2026-03-09 14:25:06 +01:00
Jean-Christophe Engel
a5662bf383 Correction erreur paramètres immobilisation 2026-03-09 12:14:26 +01:00
6 changed files with 14 additions and 10 deletions

View file

@ -51,6 +51,7 @@
trans.date as trans_date,
trans.id_year as trans_id_year,
line.id as immo_id,
line.label as line_label,
line.debit AS debit,
account.id as account_id,
account.code as account_code,
@ -149,7 +150,7 @@
<td class="num"><a href={{$trans_url}}>#{{$trans_id}}</a></td>
<td>{{$trans_date|date_short}}</td>
<td>{{$exit_date|date_short}}</td>
<td>{{$trans_label}}</td>
<td>{{$trans_label}}{{if $line_label != null}} — {{$line_label}}{{/if}}</td>
<td class="money">{{"%f"|math:$montant_immo|money_html:false|raw}}</td>
<td><a href={{$compte_url}}>{{$account_code}}</a></td>
<td>{{$account_label}}</td>

View file

@ -54,6 +54,7 @@
trans.date as trans_date,
line.id as immo_line_id,
line.debit AS debit,
line.label AS line_label,
account.id as account_id,
account.code as account_code,
trans.id_year as trans_id_year
@ -167,7 +168,7 @@
<tr>
<td class="num"><a href={{$trans_url}}>#{{$immo_trans_id}}</a></td>
<td>{{$trans_date|date_short}}</td>
<td>{{$trans_label}}</td>
<td>{{$trans_label}}{{if $line_label != null}} — {{$line_label}}{{/if}}</td>
<td class="money">{{$montant_immo|money_html:false|raw}}</td>
<td class="money">{{if $duration != null}}{{$duration}}{{/if}}</td>
<td class="money">{{$amort_amount|money_html:false|raw}}</td>

View file

@ -75,6 +75,7 @@
trans.label as trans_label,
trans.date as trans_date,
line.id as immo_id,
line.label as line_label,
account.id as account_id,
account.code as account_code,
account.label as account_label,
@ -154,7 +155,7 @@
<tr {{if $status == "ignored"}}class="ignored"{{/if}}>
<td class="num"><a href={{$trans_url}}>#{{$trans_id}}</a></td>
<td>{{$trans_date|date_short}}</td>
<td>{{$trans_label}}</td>
<td>{{$trans_label}}{{if $line_label != null}} — {{$line_label}}{{/if}}</td>
<td class="money">{{"%f"|math:$debit|money_html:false|raw}}</td>
<td><a href={{$compte_url}}>{{$account_code}}</a></td>
<td>{{$account_label}}</td>
@ -165,11 +166,6 @@
shape="settings"
target="_dialog"
}}
{{:linkbutton
label="Amortissements"
href="amortization.html?immo_id=%s&type_immo=other"|args:$immo_id
shape="table"
}}
</td>
</tr>
{{/select}}

View file

@ -32,7 +32,7 @@
<fieldset class="shortFormLeft">
<legend>Transférer une ou plusieurs lignes vers une immobilisation amortissable</legend>
<p class="help">
Cocher les lignes concernées ; les montants seront additionnés par numéro de compte
Cocher les lignes concernées
</p>
<div class="shortFormRight informations" id="total_amount">
<legend>Montants sélectionnés</legend>

View file

@ -152,6 +152,7 @@
{{if $info_immo != null}}
{{:assign date_defaut=$info_immo.date}}
{{:assign duree_defaut=$info_immo.duration}}
{{:assign choix_defaut=$info_immo.status}}
{{else}}
{{:assign duree_defaut=null}}
{{/if}}

View file

@ -10,6 +10,7 @@
{{#select
line.id as immo_id,
line.debit as montant,
line.label as line_label,
trans.id as trans_id,
trans.label as label,
trans.date,
@ -33,6 +34,10 @@
{{:assign status=$status}}
{{/load}}
{{if $status == 'ignored'}}
{{:error message="Cette immobilisation ne doit pas être amortie"}}
{{/if}}
{{* chercher des écritures liées à l'immo courante au crédit du même compte
et déduire leur montant de celui de l'immo
*}}
@ -237,7 +242,7 @@
<div class="informations">
<dl class="describe">
<dt>Immobilisation</dt>
<dd><span class="num"><a href={{$trans_url}}>#{{$ligne_immo.trans_id}}</a></span> {{$ligne_immo.label}}</dd>
<dd><span class="num"><a href={{$trans_url}}>#{{$ligne_immo.trans_id}}</a></span> {{$ligne_immo.label}}{{if $ligne_immo.line_label != null}} — {{$ligne_immo.line_label}}{{/if}}</dd>
<dt>Montant</dt>
<dd class="money strong">{{"%f"|math:$ligne_immo.montant|money_currency_html:false|raw}}</dd>
<dt>Début d'amortissement</dt>