1
2
3
4
5
6
7
8
|
{include file="admin/_head.tpl" title="Journal : %s - %s"|args:$account.code:$account.label current="acc/accounts" body_id="rapport"}
{if empty($year)}
{include file="acc/_year_select.tpl"}
{else}
<nav class="acc-year">
<h4>Exercice sélectionné :</h4>
<h3>{$year.label} — {$year.start_date|date_fr:'d/m/Y'} au {$year.end_date|date_fr:'d/m/Y'}</h3>
|
|
|
1
2
3
4
5
6
7
8
|
{include file="admin/_head.tpl" title="Journal : %s - %s"|args:$account.code:$account.label current="acc/accounts" body_id="rapport" js=1}
{if empty($year)}
{include file="acc/_year_select.tpl"}
{else}
<nav class="acc-year">
<h4>Exercice sélectionné :</h4>
<h3>{$year.label} — {$year.start_date|date_fr:'d/m/Y'} au {$year.end_date|date_fr:'d/m/Y'}</h3>
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
<ul>
<li{if $simple} class="current"{/if}><a href="?id={$account.id}&simple=1&year={$year.id}">Vue simplifiée</a></li>
<li{if !$simple} class="current"{/if}><a href="?id={$account.id}&simple=0&year={$year.id}">Vue comptable</a></li>
</ul>
</nav>
{/if}
{include file="common/dynamic_list_head.tpl"}
{foreach from=$list->iterate() item="line"}
<tr>
<td class="num"><a href="{$admin_url}acc/transactions/details.php?id={$line.id}">#{$line.id}</a></td>
<td>{$line.date|date_fr:'d/m/Y'}</td>
{if $simple}
<td class="money">{if $line.change > 0}+{else}-{/if}{$line.change|abs|raw|html_money}</td>
{else}
<td class="money">{$line.debit|raw|html_money}</td>
<td class="money">{$line.credit|raw|html_money}</td>
|
>
>
|
>
>
>
>
>
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
<ul>
<li{if $simple} class="current"{/if}><a href="?id={$account.id}&simple=1&year={$year.id}">Vue simplifiée</a></li>
<li{if !$simple} class="current"{/if}><a href="?id={$account.id}&simple=0&year={$year.id}">Vue comptable</a></li>
</ul>
</nav>
{/if}
<form method="post" action="{$admin_url}acc/transactions/actions.php">
{include file="common/dynamic_list_head.tpl" check=$can_delete}
{foreach from=$list->iterate() item="line"}
<tr>
{if $can_delete}
<td class="check">
{input type="checkbox" name="check[]" value=$line.id default=0}
</td>
{/if}
<td class="num"><a href="{$admin_url}acc/transactions/details.php?id={$line.id}">#{$line.id}</a></td>
<td>{$line.date|date_fr:'d/m/Y'}</td>
{if $simple}
<td class="money">{if $line.change > 0}+{else}-{/if}{$line.change|abs|raw|html_money}</td>
{else}
<td class="money">{$line.debit|raw|html_money}</td>
<td class="money">{$line.credit|raw|html_money}</td>
|
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
{linkbutton href="!acc/transactions/details.php?id=%d"|args:$line.id label="Détails" shape="search"}
</td>
</tr>
{/foreach}
</tbody>
<tfoot>
<tr>
<td colspan="{if $simple}3{else}4{/if}">Solde</td>
<td class="money">{$sum|raw|html_money:false}</td>
<td colspan="{if $simple}4{else}5{/if}"></td>
</tr>
</tfoot>
</table>
{include file="admin/_foot.tpl"}
|
>
>
>
>
|
|
>
>
>
>
>
>
>
>
|
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
{linkbutton href="!acc/transactions/details.php?id=%d"|args:$line.id label="Détails" shape="search"}
</td>
</tr>
{/foreach}
</tbody>
<tfoot>
<tr>
{if $can_delete}
<td class="check"><input type="checkbox" value="Tout cocher / décocher" id="f_all2" /><label for="f_all2"></label></td>
{/if}
{if !$simple}<td></td>{/if}
<td colspan="3">Solde</td>
<td class="money">{$sum|raw|html_money:false}</td>
{if !$simple}<td></td>{/if}
<td class="actions" colspan="4">
{if $can_delete}
<input type="hidden" name="form" value="{$self_url}" />
{button type="submit" name="ask_delete" shape="delete" label="Supprimer les écritures sélectionnées"}
{/if}
</td>
</tr>
</tfoot>
</table>
</form>
{include file="admin/_foot.tpl"}
|