7 <div id="invoice_statistic">
 
  11         <td class="listheading">[% 'Date' | $T8 %]</td>
 
  12         <td class="listheading">[% 'Subject' | $T8 %]</td>
 
  13         <td class="listheading">[% 'Letternumber' | $T8 %]</td>
 
  14         <td class="listheading">[% 'Contact' | $T8 %]</td>
 
  15         <td class="listheading">[% 'Author' | $T8 %]</td>
 
  18       [%- FOREACH row = letters %]
 
  19       [% IF row.customer_id %]
 
  20         [% SET is_sales = 1 %]
 
  22         [% SET is_sales = 0 %]
 
  24       <tr class="listrow[% loop.count % 2 %]">
 
  25         <td>[% row.date.to_kivitendo | html %]</td>
 
  27           <a href="[% SELF.url_for(controller='controller.pl', action => 'Letter/edit', 'letter.id' => row.id, is_sales=is_sales, back_to => SELF.get_callback) %]">
 
  28            [%- HTML.escape(row.subject) %]
 
  32           <a href="[% SELF.url_for(controller='controller.pl', action => 'Letter/edit', 'letter.id' => row.id, is_sales=is_sales, back_to => SELF.get_callback) %]">
 
  33           [% row.letternumber | html %]
 
  36         <td>[% row.contact.cp_givenname %] [% row.contact.cp_name %]</td>
 
  37         <td>[% row.employee.name %]</td>