[#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 allInvoices=salesreport.invoices]
[#assign clients=salesreport.groupClients(allInvoices)]
Client |
Balance |
Total |
Taxes Total |
Grand Total |
---|---|---|---|---|
[#list clients?sort as client] | ||||
${client.name}[#assign clientInvoices=salesreport.filterByClient(allInvoices, client)] |
${salesreport.calculateBalance(clientInvoices)} |
${salesreport.calculateTotal(clientInvoices)} |
${salesreport.calculateTaxesTotal(clientInvoices)} |
${salesreport.calculateGrandTotal(clientInvoices)} |
[/#list] | ||||
Total |
${salesreport.calculateBalance(allInvoices)} |
${salesreport.calculateTotal(allInvoices)} |
${salesreport.calculateTaxesTotal(allInvoices)} |
${salesreport.calculateGrandTotal(allInvoices)} |
[/#if]