Invoices by month of payment

[#if salesreport.paidDateIntervalStart??] [#if salesreport.paidDateIntervalEnd??] ${salesreport.paidDateIntervalStart?date} - ${salesreport.paidDateIntervalEnd?date} [#else] After ${salesreport.paidDateIntervalStart?date} [/#if] [#else] [#if salesreport.paidDateIntervalEnd??] Before ${salesreport.paidDateIntervalEnd?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

Paid Date

Balance

Total

Taxes Total

Grand Total

[#list salesreport.groupPaidDatesByMonth(salesreport.paidInvoices)?sort as month] [#assign invoices=salesreport.filterByPaidDate(salesreport.paidInvoices, month)]
${month?date("yyyy-MM")?string("MMM yyyy")}
[#list invoices?sort_by("date") as invoice]

${invoice.date?date}

${invoice.client}

${invoice.number}

${invoice.paymentDate?date}

${invoice.balance}

${invoice.total}

${invoice.taxesTotal}

${invoice.grandTotal}

[/#list]
[/#list]

Total

${salesreport.calculateBalance(salesreport.paidInvoices)}

${salesreport.calculateTotal(salesreport.paidInvoices)}

${salesreport.calculateTaxesTotal(salesreport.paidInvoices)}

${salesreport.calculateGrandTotal(salesreport.paidInvoices)}

[/#if]