Sales Report

Invoices by client


[#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]

Date

Client

Number

Balance

Total

Taxes Total

Grand Total

[#list salesreport.groupClients(salesreport.invoices)?sort as client]
[#assign invoices=salesreport.filterByClient(salesreport.invoices, client)]
${client.name}
[#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)}