
<body bgcolor=ffffff>

<table width="100%">
  <tr>
    <td width=10>&nbsp;</td>
    <td>
      <table width="100%">
	<tr>
	  <td>
	    <h4>
	    <?lsmb company ?>
	    <br><?lsmb address ?>
	    </h4>
	  </td>
	  <th><img src=http://www.ledger-smb.org/images/ledger-smb.png border=0 width=80 height=58></th>
	  <td align=right>
	  <h4>
	  Telefon: <?lsmb tel ?>
	  <br>Telefax: <?lsmb fax ?>
	  </h4>
	  </td>
	</tr>
	<tr>
	  <th colspan=3><h4>Ö V E R S I K T</h4></th>
	</tr>
	<tr>
	  <td colspan=3 align=right><?lsmb statementdate ?></td>
	</tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <table width="100%">
	<tr valign=top>
	  <td><?lsmb name ?>
	  <br><?lsmb address1 ?>
	  <?lsmb if address2 ?>
<br><?lsmb address2 ?>
<?lsmb end address2 ?>
	  <br><?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
	  <?lsmb if country ?>
<?lsmb country ?>
<?lsmb end country ?>
	  <br>
<?lsmb if customerphone ?>
	  <br>Telefon: <?lsmb customerphone ?>
<?lsmb end customerphone ?>
<?lsmb if customerfax ?>
	  <br>Telefax: <?lsmb customerfax ?>
<?lsmb end customerfax ?>
<?lsmb if email ?>
	  <br><?lsmb email ?>
<?lsmb end email ?>
	  </td>
	</tr>
      </table>
    </td>
  </tr>
  <tr height=10></tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <table width="100%">
        <tr>
	  <th align=left>Faktura #</th>
	  <th width="15%">Datum</th>
	  <th width="15%">Betalningsfrist</th>
	  <th width="10%">Nuvarande</th>
	  <th width="10%">30</th>
	  <th width="10%">60</th>
	  <th width="10%">90+</th>
	</tr>
<?lsmb foreach invnumber ?>
	<tr>
	  <td><?lsmb invnumber ?></td>
	  <td><?lsmb invdate ?></td>
	  <td><?lsmb duedate ?></td>
	  <td align=right><?lsmb c0 ?></td>
	  <td align=right><?lsmb c30 ?></td>
	  <td align=right><?lsmb c60 ?></td>
	  <td align=right><?lsmb c90 ?></td>
	</tr>
<?lsmb end invnumber ?>
        <tr>
	  <td colspan=7><hr size=1></td>
	</tr>
	<tr>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
	  <th align=right><?lsmb c0total ?></td>
	  <th align=right><?lsmb c30total ?></td>
	  <th align=right><?lsmb c60total ?></td>
	  <th align=right><?lsmb c90total ?></td>
	</tr>
      </table>
    </td>
  </tr>
  <tr height=10></tr>
  <tr>
    <td>&nbsp;</td>
    <td align=right>
      <table width="50%">
        <tr>
	  <th>Totalt utestående</th>
          <th align=right><?lsmb total ?></th>
	</tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><hr noshade></td>
  </tr>
  <tr height=20></tr>
</table>

