Sales Report

Client summary


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

[#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)}