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