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

{$error|escape}

{/if} {if $debug}

{$debug|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
{if is_null($type)}
Flux obligatoire {foreach from=$fluxs item="flux" key="flux_n" name="fluxs"} {if !$tpl.foreach.fluxs.last} {/if} {/foreach}
{select_compte comptes=$comptes name="compte" form_name="compte_$flux_n" id="f_compte_$flux_n" data=$flux} {$config.monnaie|escape}
{elseif $type === 'virement'}
{elseif $type === 'dette'}
{else}
obligatoire
{/if}
{if is_null($type)} {elseif $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"}