Invoices by year

[#if salesreport.dateIntervalStart??] [#if salesreport.dateIntervalEnd??] ${salesreport.dateIntervalStart?date} - ${salesreport.dateIntervalEnd?date} [#else] After ${salesreport.dateIntervalStart?date} [/#if] [#else] [#if salesreport.dateIntervalEnd??] Before ${salesreport.dateIntervalEnd?date} [#else] All dates [/#if] [/#if]



[#if salesreport.invoices?size == 0]

There is no data available for the selected report settings.

[#else]

Date

Client

Number

Balance

Total

Taxes Total

Grand Total

[#list salesreport.groupDatesByYear(salesreport.invoices)?sort as year] [#assign invoices=salesreport.filterByDate(salesreport.invoices, year.toInterval())]
${year}
[#list invoices?sort_by("date") as invoice]

${invoice.date?date}

${invoice.client}

${invoice.number}

${invoice.balance}

${invoice.total}

${invoice.taxesTotal}

${invoice.grandTotal}

[/#list]
[/#list]

Total

${salesreport.calculateBalance(salesreport.invoices)}

${salesreport.calculateTotal(salesreport.invoices)}

${salesreport.calculateTaxesTotal(salesreport.invoices)}

${salesreport.calculateGrandTotal(salesreport.invoices)}

[/#if]