ajout lien vers comptes sur pages immobilisation et amortissement
This commit is contained in:
parent
00071437ef
commit
0e3a9669ec
2 changed files with 16 additions and 11 deletions
|
|
@ -68,6 +68,7 @@
|
|||
trans.date as amort_date,
|
||||
trans.label as trans_label,
|
||||
trans.id_year as amort_year,
|
||||
acc.id as account_id,
|
||||
acc.code as account_code,
|
||||
acc.label as account_name,
|
||||
"vrai" as linked
|
||||
|
|
@ -123,7 +124,7 @@
|
|||
<th>N°</th>
|
||||
<th>Date</th>
|
||||
<th class="nombre">Montant</th>
|
||||
<th class="nombre"">Solde</th>
|
||||
<th class="nombre">Solde</th>
|
||||
<th>Libellé</th>
|
||||
<th>N° compte</th>
|
||||
<th>Compte</th>
|
||||
|
|
@ -134,6 +135,7 @@
|
|||
{{#foreach from=$linked_lines item="line"}}
|
||||
{{* données de l'écriture *}}
|
||||
{{:assign trans_url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$line.amort_trans_id}}
|
||||
{{:assign compte_url="%s/acc/accounts/journal.php?id=%s&year=%s"|args:$admin_url:$line.account_id:$line.amort_year}}
|
||||
{{:assign solde="%f-%d"|math:$solde:$line.amort_amount}}
|
||||
{{:assign date_amort=$line.amort_date}}
|
||||
{{:assign current_year=$line.amort_year}}
|
||||
|
|
@ -149,7 +151,7 @@
|
|||
{{$line.amort_label}}
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>{{$line.account_code}}</td>
|
||||
<td><a href={{$compte_url}}>{{$line.account_code}}</a></td>
|
||||
<td>{{$line.account_name}}</td>
|
||||
<td>
|
||||
{{if $line.linked == null}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue