[#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]
[#assign taxes = salesreport.groupTaxes(salesreport.invoices)]Date |
Client |
Number |
Balance |
Total |
[#list taxes?sort as tax] |
${tax.name} ${tax.defaultRate} |
[/#list] |
Taxes Total |
Grand Total |
---|---|---|---|---|---|---|---|---|---|
[#list salesreport.invoices?sort_by("date") as invoice] | |||||||||
${invoice.date?date} |
${invoice.client} |
${invoice.number} |
${invoice.balance} |
${invoice.total} |
[#list taxes?sort as tax] |
${invoice.getTaxTotal(tax)!""} |
[/#list] |
${invoice.taxesTotal} |
${invoice.grandTotal} |
[/#list] | |||||||||
Total |
${salesreport.calculateBalance(salesreport.invoices)} |
${salesreport.calculateTotal(salesreport.invoices)} |
[#list taxes?sort as tax] |
${salesreport.calculateTaxTotal(salesreport.invoices, tax)} |
[/#list] |
${salesreport.calculateTaxesTotal(salesreport.invoices)} |
${salesreport.calculateGrandTotal(salesreport.invoices)} |
[/#if]