Compare commits
2 commits
a105e554ce
...
79d5afc147
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79d5afc147 | ||
|
|
3e9f215816 |
1 changed files with 18 additions and 0 deletions
|
|
@ -72,6 +72,7 @@
|
||||||
{{*:debug condition=$condition*}}
|
{{*:debug condition=$condition*}}
|
||||||
|
|
||||||
{{:assign nb_immo=0}}
|
{{:assign nb_immo=0}}
|
||||||
|
{{:assign total_immo = 0}}
|
||||||
{{#select
|
{{#select
|
||||||
trans.id as trans_id,
|
trans.id as trans_id,
|
||||||
trans.label as trans_label,
|
trans.label as trans_label,
|
||||||
|
|
@ -122,6 +123,9 @@
|
||||||
{{:assign trans_url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$trans_id}}
|
{{: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}}
|
{{:assign compte_url="%s/acc/accounts/journal.php?id=%s&year=%s"|args:$admin_url:$account_id:$trans_id_year}}
|
||||||
{{:assign nb_immo="%d+1"|math:$nb_immo}}
|
{{:assign nb_immo="%d+1"|math:$nb_immo}}
|
||||||
|
{{:assign total_immo="%d+%d"|math:$total_immo:$debit}}
|
||||||
|
{{:assign var="montant" from="sommes_immo.%s"|args:$account_code}}
|
||||||
|
{{:assign var="sommes_immo.%s"|args:$account_code value="%d+%d"|math:$montant:$debit}}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="check">{{:input type="checkbox" name="selected[]" value=$trans_id}}</td>
|
<td class="check">{{:input type="checkbox" name="selected[]" value=$trans_id}}</td>
|
||||||
|
|
@ -145,6 +149,20 @@
|
||||||
</table>
|
</table>
|
||||||
{{if $nb_immo == 0}}
|
{{if $nb_immo == 0}}
|
||||||
<p class="block alert">Aucune immobilisation</p>
|
<p class="block alert">Aucune immobilisation</p>
|
||||||
|
{{else}}
|
||||||
|
<aside class="describe totals">
|
||||||
|
<h3 class="ruler">Totaux</h3>
|
||||||
|
{{if $total_immo != 0}}
|
||||||
|
<dl class="describe">
|
||||||
|
{{#foreach from=$sommes_immo|ksort key="code" item="value"}}
|
||||||
|
<dt>Total du compte {{$code}}</dt>
|
||||||
|
<dd>{{$value|money}}
|
||||||
|
{{/foreach}}
|
||||||
|
<dt>Montant total des immobilisations</dt>
|
||||||
|
<dd><span class="strong">{{$total_immo|money}}</span></dd>
|
||||||
|
</dl>
|
||||||
|
{{/if}}
|
||||||
|
</aside>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue