<ul>
    {if $user_can_edit || $allow_addi_edit_no_right}
        {include file="r_basic/functionmenuitem.tpl" title=$i.basic_edit_addi
            icon="edit_simple" action="basicForm.edit_addi.open('externalexpenses', '{$externalexpense->id}');"}
    {/if}
    
    {if $externalexpense->is_invoiced == true}   
    {elseif $user_can_edit && $externalexpense->is_invoiced == false}
       {if $externalexpense->is_transfered == false}
            {include file="r_basic/functionmenuitem.tpl" title=$i.externalexpenses_transfer
                icon="planned_to_invoiced" action="externalexpenses.transfer('{$externalexpense->id}');"}                            
        {/if}    
    {/if}

    {if $user_can_edit}
        {include file="r_basic/functionmenuitem.tpl" title=$i.externalexpenses_duplicate
            icon="copy" action="externalexpenses.duplicate('{$externalexpense->id}');"}    
    {/if}
    {include file="r_basic/functionmenuhrefitem.tpl" title=$i.externalexpenses_add_task icon="opentasks"
    action={site_url url="start/open/opentasks/index/`$xjxcookie`/add_for_external/`$externalexpense->id`"}}
</ul>
