Umbrella – {t('documents')}
{selected_company ? t( 'docs_of_company',{company:selected_company.name}) : t('document_list')} {#if error}
{error}
{/if}
{t('select_company')} {#each Object.entries(companies) as [id,company]} {/each}
{#if documents} {#each Object.entries(documents).reverse() as [id,document]} {/each}
{t('number')} {t('date')} {t('customer')} {t('gross_sum')} {t('type')} {t('state')} {t('actions')}
show(id)}>{document.number} show(id)}>{document.date} show(id)}>{document.customer.name.split('\n')[0]} show(id)}>{document.sum/100 + document.currency} show(id)}>{t('type_'+document.type)} show(id)}>{t('state_'+document.state.name)} {#if document.state.id == 1} {/if}
{/if}