{#snippet actions()} {/snippet} {#snippet tools()} {/snippet} {#if query.isPending}

Loading recurring transactions

{:else if query.error}

{errorText(query.error)}

{:else} item.id} {nav} > {#snippet head()} Title Type Amount From → to Repetitions Next Active {/snippet} {#snippet row( item )} {@const r = item.attributes} {@const tx = r.transactions?.[0]} {r.title} {#if r.description}
{r.description}
{/if} {TYPES[r.type ?? ""] ?? r.type} {#each r.transactions ?? [] as split, i (split.id ?? i)}
{/each} {#if tx} {tx.source_name} → {tx.destination_name} {/if} {#each r.repetitions ?? [] as rep, i (rep.id ?? i)}
{describe(rep)}
{/each}
{stopped(r) ? `Stopped repeating on ${formatDate(dateOnly(r.repeat_until))}` : endsText(r)}
{#each upcoming(r, 2) as date (date)}
{formatDate(date)}
{/each} {r.active ? "Yes" : "No"} {#if arm.key === item.id} Press D again to delete {:else if notes[item.id]} {notes[item.id]} {/if} {/snippet} {#snippet menu( item )} open(item)}> Show ↵ edit(item)}> Edit in the old interface e remove(item)} /> {/snippet}
{/if}