2024-12-23 12:03:00 +01:00
|
|
|
{{* -*- brindille -*- *}}
|
|
|
|
|
|
|
|
{{* Liste des immobilisations non amortissable *}}
|
|
|
|
|
|
|
|
<section class="immobilisation">
|
|
|
|
<h2 class="ruler">Immobilisations non amortissables</h2>
|
|
|
|
|
|
|
|
<table class="list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>N°</th>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Libellé</th>
|
2025-01-06 15:24:45 +01:00
|
|
|
<th class="nombre">Montant</th>
|
2024-12-23 12:03:00 +01:00
|
|
|
<th>N° compte</th>
|
|
|
|
<th>Compte</th>
|
|
|
|
<th>Projet</th>
|
|
|
|
<th class="actions"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
{{#load type="immo" where="$$.noamort = true"}}
|
|
|
|
{{:assign var="lines." value="'%s'"|args:$line}}
|
|
|
|
{{/load}}
|
|
|
|
{{:assign lines=$lines|implode:","}}
|
|
|
|
{{:assign lines="("|cat:$lines|cat:")"}}
|
|
|
|
{{:assign condition="line.id IN %s"|args:$lines}}
|
|
|
|
{{#select
|
|
|
|
trans.id as trans_id,
|
|
|
|
trans.label as trans_label,
|
|
|
|
trans.date as trans_date,
|
|
|
|
line.id as immo_id,
|
|
|
|
account.id as account_id,
|
|
|
|
account.code as account_code,
|
|
|
|
account.label as account_label,
|
|
|
|
line.debit AS debit,
|
|
|
|
project.label as project_label,
|
|
|
|
trans.id_year as trans_id_year
|
|
|
|
FROM acc_transactions AS trans
|
|
|
|
INNER JOIN acc_transactions_lines AS line ON line.id_transaction = trans.id
|
|
|
|
INNER JOIN acc_accounts AS account ON line.id_account = account.id
|
|
|
|
INNER JOIN acc_years AS years ON trans.id_year = years.id
|
|
|
|
LEFT JOIN acc_projects AS project ON line.id_project = project.id
|
|
|
|
WHERE !condition
|
|
|
|
ORDER BY trans.date DESC;
|
|
|
|
!condition=$condition
|
|
|
|
}}
|
|
|
|
{{:assign trans_url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$trans_id}}
|
|
|
|
{{:assign compte_url="%s/acc/accounts/journal.php?id=%s&year=%s"|args:$admin_url:$account_id:$trans_id_year}}
|
|
|
|
<tr>
|
|
|
|
<td class="num"><a href={{$trans_url}}>#{{$trans_id}}</a></td>
|
|
|
|
<td>{{$trans_date|date_short}}</td>
|
|
|
|
<td>{{$trans_label}}</td>
|
2025-01-06 15:24:45 +01:00
|
|
|
<td class="money">{{"%f"|math:$debit|money:false}}</td>
|
2024-12-23 12:03:00 +01:00
|
|
|
<td><a href={{$compte_url}}>{{$account_code}}</a></td>
|
|
|
|
<td>{{$account_label}}</td>
|
|
|
|
<td>{{$project_label}}</td>
|
|
|
|
<td class="actions">
|
|
|
|
{{:linkbutton
|
2024-12-26 11:32:06 +01:00
|
|
|
label="Modifier infos"
|
|
|
|
href="modif_infos.html?immo_id=%s&amort=0"|args:$immo_id
|
2024-12-23 12:03:00 +01:00
|
|
|
shape="help"
|
|
|
|
target="_dialog"
|
|
|
|
}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/select}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|