${reporttype}
${companyname}
Report for year: ${period}
Total rows: ${totalrows}
Date
Sale
Customer
Amount
Paid
Balance
${totals.sales}
${totals.paid}
${totals.owed}
${foreach rows row}
${row.date}
${row.saleno}
${row.customer}
${row.sales}
${row.paid}
${row.owed}
${end}
${totals.sales}
${totals.paid}
${totals.owed}