[#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.groupDatesByMonth(salesreport.invoices)?sort as month] [#assign invoices=salesreport.filterByDate(salesreport.invoices, month.toInterval())] | ||||||
${month.toString("MMM yyyy")} | ||||||
[#list invoices?sort_by("date") as invoice] | ||||||
${invoice.date?date} |
${invoice.client} |
${invoice.number} |
${invoice.balance} |
${invoice.total} |
${invoice.taxesTotal} |
${invoice.grandTotal} |
[/#list] | ||||||
Subtotal |
${salesreport.calculateBalance(invoices)} |
${salesreport.calculateTotal(invoices)} |
${salesreport.calculateTaxesTotal(invoices)} |
${salesreport.calculateGrandTotal(invoices)} |
||
[/#list] | ||||||
Total |
${salesreport.calculateBalance(salesreport.invoices)} |
${salesreport.calculateTotal(salesreport.invoices)} |
${salesreport.calculateTaxesTotal(salesreport.invoices)} |
${salesreport.calculateGrandTotal(salesreport.invoices)} |
[/#if]