{include file="admin/_head.tpl" title="Grand livre" current="compta/exercices" body_id="rapport"}

{$config.nom_asso|escape}

Exercice comptable {if $exercice.cloture}clôturé{else}en cours{/if} du {$exercice.debut|date_fr:'d/m/Y'} au {$exercice.fin|date_fr:'d/m/Y'}, généré le {$cloture|date_fr:'d/m/Y'}

{foreach from=$livre.classes key="classe" item="comptes"}

{$classe|get_nom_compte|escape}

{foreach from=$comptes item="compte" key="code"} {foreach from=$compte.comptes item="souscompte" key="souscode"} {foreach from=$souscompte.journal item="ligne"} {/foreach}

{$souscode|escape} — {$souscode|get_nom_compte|escape}

Date Intitulé Débit Crédit
{$ligne.id|escape} {$ligne.date|date_fr:'d/m/Y'|escape} {$ligne.libelle|escape} {if $ligne.compte == $souscode && $ligne.montant > 0}{$ligne.montant|html_money}{/if} {if $ligne.compte == $souscode && $ligne.montant < 0}{$ligne.montant|abs|html_money}{/if}
Solde final {if $souscompte.debit != 0}{$souscompte.debit|html_money}{/if} {if $souscompte.credit != 0}{$souscompte.credit|html_money}{/if}
{/foreach}
Total {$code|escape} — {$code|get_nom_compte|escape} {if $compte.total > 0}{$compte.total|abs|html_money}{/if} {if $compte.total < 0}{$compte.total|abs|html_money}{/if}
{/foreach} {/foreach}
Total {$livre.debit|html_money} {$livre.credit|html_money}

Toutes les opérations sont libellées en {$config.monnaie|escape}.

{include file="admin/_foot.tpl"}