<body bgcolor=ffffff>

<table width=100%>
<tr valign=bottom>
  <td width=10>&nbsp;</td>
  <td>
  
  <table width=100%>
  <tr>
    <td>
      <h4>
      <%company%>
      <br><%address%>
      </h4>
    </td>

    <td align=right>
      <h4>
      Telefono: <%tel%>
      <br>Fax: <%fax%>
      </h4>
    </td>
  </tr>

  <tr>
    <th colspan=3>
      <h4>ORDINE DI ACQUISTO</h4>
    </th>
  </tr>

  </table>


  <table width=100% callspacing=0 cellpadding=0>
    
  <tr>
    <td align=right>
    <table>
    <tr>
      <th align=right>Data ordine</th><td width=10>&nbsp;</td><td><%orddate%></td>
    </tr>
  
    <tr>
      <th align=right>Consegna</th><td width=10>&nbsp;</td><td><%reqdate%></td>
    </tr>

    <tr>
      <th align=right>Ordine numero</th><td>&nbsp;</td><td><%ordnumber%></td></tr>
    </tr>
  
    <tr>
      <td>&nbsp;</td>
    </tr>
    </td>
    </table>
  </tr>

  <tr>
    <td>
    <table width=100%>
    <tr bgcolor=000000>
      <th align=left width=50%><font color=ffffff>Ordinare a:</th>
      <th align=left width=50%><font color=ffffff>Recapito:</th>
    </tr>

    <tr valign=top>
      <td><%name%>
      <br><%address1%>
      <%if address2%>
<br><%address2%>
<%end address2%>
      <br><%city%> <%state%> <%zipcode%>
      <%if country%>
<%country%>
<%end country%>

<br>
<%if contact%>
<br>All'attenzione di: <%contact%>
<%end contact%>
<%if vendorphone%>
<br>Telefono: <%vendorphone%>
<%end vendorphone%>
<%if vendorfax%>
<br>Fax: <%vendorfax%>
<%end vendorfax%>
      </td>

      <td><%shiptoname%>
      <br><%shiptoaddress1%>
      <%if shiptoaddress2%>
<br><%shiptoaddress2%>
<%end shiptoaddress2%>
      <br><%shiptocity%> <%shiptostate%> <%shiptozipcode%>
      <%if shiptocountry%>
<%shiptocountry%>
<%end shiptocountry%>

<br>
<%if shiptocontact%>
<br>All'attenzione di: <%shiptocontact%>
<%end shiptocontact%>
<%if shiptophone%>
<br>Telefono: <%shiptophone%>
<%end shiptophone%>
<%if shiptofax%>
<br>Fax: <%shiptofax%>
<%end shiptofax%>

    </tr>
    </table>
    </td>
  </tr>

  <tr>
    <td>&nbsp;</td>
  </tr>
  
  <tr>
    <td>
    <table width=100%>
    <tr bgcolor=000000>
<!--      <th align=right><font color=ffffff>No.</th>  -->
      <th align=left><font color=ffffff>Codice</th>
      <th align=left><font color=ffffff>Descrizione</th>
      <th><font color=ffffff>Quantit&agrave;</th>
      <th>&nbsp;</th>
      <th><font color=ffffff>Prezzo</th>
      <th><font color=ffffff>Totale riga</th>
    </tr>

<%foreach number%>
    <tr valign=top>
<!--      <td align=right><%runningnumber%>.</td>
adjust the colspan if you include this to shift subtotal one to the right
-->
      <td><%number%></td>
      <td><%description%></td>
      <td align=right><%qty%></td>
      <td><%unit%></td>
      <td align=right><%sellprice%></td>
      <td align=right><%linetotal%></td>
    </tr>
<%end number%>

    <tr>
      <td colspan=6><hr noshade></td>
    </tr>
    
    <tr>
      <th colspan=4 align=right>Totale righe</th>
      <td colspan=2 align=right><%subtotal%></td>
    </tr>

<%foreach tax%>
    <tr>
      <th colspan=4 align=right><%taxdescription%>: <%taxrate%>% su <%taxbase%></th>
      <td colspan=2 align=right><%tax%></td>
    </tr>
<%end tax%>

    <tr>
      <td colspan=2>&nbsp;</td>
      <td colspan=4><hr noshade></td>
    </tr>

    <tr>
      <td colspan=2><!--Termine di pagamento: <b><%terms%></b> giorni--></td>
      <th colspan=2 align=right>Totale ordine</th>
      <th colspan=2 align=right><%ordtotal%></th>
    </tr>

    <tr>
      <td>&nbsp;</td>
    </tr>

    </table>
    </td>
  </tr>

<tr>
  <td>
  <table width=100%>
    <tr valign=top>
<%if notes%>
      <td>Note</td>
      <td><pre><%notes%></pre></td>
<%end notes%>
      <td align=right>
      Tutti i prezzi sono espressi in valuta <b><%currency%></b>
      <br><%shippingpoint%>
      </td>
    </tr>

  </table>
  </td>
</tr>

<tr><td>&nbsp;</td></tr>
  
<tr>
  <td>
  <table width=100%>
  <tr valign=top>
    <td><!--<font size=-3>
    Payment due NET <%terms%> Days from date of Invoice.
    Interest on overdue amounts will acrue at the rate of 1.5% per month
    from due date until paid in full. Items returned are subject to
    a 10% restocking charge. A return authorization must be obtained
    from <%company%> before goods are returned. Returns must be shipped
    prepaid and properly insured. <%company%> will not be responsible
    for damages during transit.-->
    </font>
    </td>
    <td width=150>
    X <hr noshade>
    </td>
  </tr>
  </table>
  </td>
</tr>

</table>

</td>
</tr>
</table>

</body>
</html>