Needed by {formatDate(end, "day")}

Horizon {#each HORIZONS as h (h.id)} {/each}
Group by
{#if status}

{status}

{:else if needs.length === 0}

No subscription is due by {formatDate(end, "day")}.

{:else}
{#each needs as need (need.id)}

{need.name}

{#each need.totals as total (total.code)}
{/each} {#if need.short && need.currency}
Short on {formatDate(need.short.date, "short")}
{/if} {#if need.balance !== null && need.currency}
{byCurrency ? "On paying cards" : "Balance"}
{/if}
    {#each need.dues as due, i (`${due.bill.id}:${due.date}:${i}`)}
  • {due.overdue ? "overdue" : formatDate(due.date, "short")} {due.bill.attributes.name}
  • {/each}
{/each}
{#if menuFor} {@const target = menuFor} goto(`/subscriptions/show/${target.id}`)} >Show goto(`/subscriptions/edit/${target.id}`)} >Edit {/if}
{/if} {#if !status && renewals.length > 0}

Annual renewals in {RENEWAL_DAYS} days: {renewals.length}, {#each renewalTotals as total, i (total.code)} {i > 0 ? " + " : ""} {/each} {#each renewals as due (due.bill.id)} {due.bill.attributes.name} {formatDate(due.date, "short")} {/each}

{/if} {#if !status && strip.length > 0}
{/if}