| {add_quart}. Quartal {NEXT_QUART.getFullYear()} |
{month_of(month_from_quart(add_quart, 0))} |
|
|
| {month_of(month_from_quart(add_quart, 1))} |
|
| {month_of(month_from_quart(add_quart, 2))} |
|
{#each data.estimates as quarter}
{@const rowspan = (quarter.estimate_0 != null ? 1 : 0) + (quarter.estimate_1 != null ? 1 : 0) + (quarter.estimate_2 != null ? 1 : 0)}
{@const months = (() => {
let arr : { i: number, estimate: number}[] = [];
for (let i = 0; i < 3; ++i) {
if (quarter[`estimate_${i}`] != null) {
arr.push({i: i, estimate: quarter[`estimate_${i}`]});
}
}
return arr;
})()}
{#if months.length > 0}
|
{quarter.quarter}. Quartal {quarter.year}
|
{month_of(month_from_quart(quarter.quarter, months[0].i))} |
{months[0].estimate.toFixed(2)} |
Edit |
{#each months.slice(1) as month}
| {month_of(month_from_quart(quarter.quarter, month.i))} |
{month.estimate.toFixed(2)} |
{/each}
{/if}
{/each}
{#if data.estimates === undefined || data.estimates.length === 0}