{year + "-" + ("00"+(month)).slice(-2)}

{#snippet header()}
Per payment processor
{/snippet}
{#snippet header()}
Per country
{/snippet} country_name(val)}, {field: "count", label: "Count", type: FieldType.Number}, {field: "amount", label: "Amount", type: FieldType.Euro}, {field: "vat", label: "VAT", type: FieldType.Euro}, {field: "fee", label: "Fee", type: FieldType.Euro}, ]} totals />
{#snippet header()}
In European Union
{/snippet} country_name(val)}, {field: "count", label: "Count", type: FieldType.Number}, {field: "amount", label: "Amount", type: FieldType.Euro}, {field: "vat", label: "VAT", type: FieldType.Euro}, {field: "fee", label: "Fee", type: FieldType.Euro}, ]} totals />
{#snippet header()}
PayPal VAT
{/snippet}

All invoices

Status:
{#each Object.keys(status_filter) as filter}
{/each}
Gateways:
{#each Object.keys(gateway_filter) as filter}
{/each}
Methods:
{#each Object.keys(method_filter) as filter}
{/each}

Total: {invoices.length} Visible: {invoices.length-records_hidden} Hidden: {records_hidden}
formatDate(val)}, {field: "id", label: "ID", type: FieldType.Text}, {field: "amount", label: "Amount", type: FieldType.Euro}, {field: "vat", label: "VAT", type: FieldType.Euro}, {field: "processing_fee", label: "Fee", type: FieldType.Euro}, {field: "country", label: "Country", type: FieldType.Func, func: val => country_name(val)}, {field: "payment_gateway", label: "Gateway", type: FieldType.Text}, {field: "payment_method", label: "Method", type: FieldType.Text}, {field: "status", label: "Status", type: FieldType.Text}, ]} totals />