{include file="admin/_head.tpl" title="Saisie d'une opération" current="compta/saisie" js=1} {if $error}

{$error|escape}

{/if} {if $ok}

L'opération numéro {$ok|escape} a été ajoutée. (Voir l'opération)

{/if}
Informations sur l'opération
obligatoire
obligatoire
obligatoire
{$config.monnaie|escape}
{if is_null($type)}
obligatoire
{select_compte comptes=$comptes name="compte_debit"}
obligatoire
{select_compte comptes=$comptes name="compte_credit"}
{elseif $type === 'virement'}
{elseif $type === 'dette'}
{else}
obligatoire
{/if}
{if $type == Garradin\Compta_Categories::DEPENSES || $type == Garradin\Compta_Categories::RECETTES || $type == 'dette'}
Catégorie
{foreach from=$categories item="cat"}
{if !empty($cat.description)}
{$cat.description|escape}
{/if} {/foreach}
{/if}

{csrf_field key="compta_saisie"}

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