
<body bgcolor=ffffff>

<table width=100%>

  <%include letterhead.html%>
  
  <tr>
    <td width=10>&nbsp;</td>
    
    <th colspan=3><h4>A R U A N N E</h4></th>
    
  </tr>

  <tr>
    <td>&nbsp;</td>
    
    <td colspan=3 align=right><%statementdate%></td>
  </tr>
  
  <tr>
    <td>&nbsp;</td>
    
    <td>
      <table width=100%>
	<tr valign=top>
	  <td><%name%>
	  <br><%address1%>
	  <%if address2%>
	  <br><%address2%>
	  <%end address2%>
	  <br><%city%>
	  <%if state%>
	  , <%state%>
	  <%end state%>
	  <%zipcode%>
	  <%if country%>
	  <br><%country%>
	  <%end country%>
	  <br>
          <%if customerphone%>
	  <br>Tel: <%customerphone%>
          <%end customerphone%>
          <%if customerfax%>
	  <br>Faks: <%customerfax%>
          <%end customerfax%>
          <%if email%>
	  <br><%email%>
          <%end email%>
	  </td>
	</tr>
      </table>
    </td>
  </tr>
  
  <tr height=10></tr>
  
  <tr>
    <td>&nbsp;</td>
    
    <td>
      <table width=100%>
        <tr>
	  <th align=left>Arve NR. #</th>
          <th align=left>Tellimus NR.#</th>
	  <th width=10%>Kuupäev</th>
	  <th width=10%>Võlg</th>
	  <th width=10%>Hetkeseis</th>
	  <th width=10%>30</th>
	  <th width=10%>60</th>
	  <th width=10%>90</th>
	</tr>
        
	<%foreach invnumber%>
	<tr>
	  <td><%invnumber%></td>
          <td><%ordnumber%></td>
	  <td><%invdate%></td>
	  <td><%duedate%></td>
	  <td align=right><%c0%></td>
	  <td align=right><%c30%></td>
	  <td align=right><%c60%></td>
	  <td align=right><%c90%></td>
	</tr>
        <%end invnumber%>
	
        <tr>
	  <td colspan=8><hr size=1></td>
	</tr>
	
	<tr>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
	  <th align=right><%c0total%></td>
	  <th align=right><%c30total%></td>
	  <th align=right><%c60total%></td>
	  <th align=right><%c90total%></td>
	</tr>
      </table>
    </td>
  </tr>
  
  <tr height=10></tr>
  
  <tr>
    <td>&nbsp;</td>
    
    <td align=right>
      <table width=50%>
        <tr>
	  <th>Kokku Laekumata</th>
          <th align=right><%total%></th>
	</tr>
      </table>
    </td>
  </tr>
  
  <tr>
    <td>&nbsp;</td>
    
    <td><hr noshade></td>
  </tr>
  
  <tr>
    <td>&nbsp;</td>
    <td>Kõik summad toodud <b><%currency%></b> vääringus.
    <br>Palume tasuda <b><%company%></b>.
    </td>
  </tr>

</table>

</body>
</html>








