<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[twoside]{scrartcl}
\usepackage[frame]{xy}
\usepackage{tabularx}
\usepackage[latin1]{inputenc}
\setlength{\voffset}{0.5cm}
\setlength{\hoffset}{-2.0cm}
\setlength{\topmargin}{0cm}
\setlength{\headheight}{0.5cm}
\setlength{\headsep}{1cm}
\setlength{\topskip}{0pt}
\setlength{\oddsidemargin}{1.0cm}
\setlength{\evensidemargin}{1.0cm}
\setlength{\textwidth}{18cm}
\setlength{\textheight}{24.5cm}
\setlength{\footskip}{1cm}
\setlength{\parindent}{0pt}
\renewcommand{\baselinestretch}{1}
\begin{document}

\newlength{\descrwidth}\setlength{\descrwidth}{10cm}

\newsavebox{\hdr}
\sbox{\hdr}{
  \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont

  \parbox{\textwidth}{
    \parbox[b]{12cm}{
      &lt;?lsmb company ?&gt;
      
      &lt;?lsmb address ?&gt;}\hfill
    \begin{tabular}[b]{rr@{}}
    Tel &amp; &lt;?lsmb tel ?&gt;\\
    Fax &amp; &lt;?lsmb fax ?&gt;
    \end{tabular}

    \rule[1.5ex]{\textwidth}{0.5pt}
  }
}
    
\fontfamily{cmss}\fontshape{n}\selectfont

\markboth{&lt;?lsmb company ?&gt;\hfill &lt;?lsmb invnumber ?&gt;}{\usebox{\hdr}}

\pagestyle{myheadings}
%\thispagestyle{empty}     use this with letterhead paper

&lt;?lsmb pagebreak 65 27 48 ?&gt;
\end{tabular*}

  \rule{\textwidth}{2pt}
  
  \hfill
  \begin{tabularx}{7cm}{Xr@{}}
  \textbf{Totale riga} &amp; \textbf{&lt;?lsmb sumcarriedforward ?&gt;} \\
  \end{tabularx}

\newpage

\markright{&lt;?lsmb company ?&gt;\hfill &lt;?lsmb invnumber ?&gt;}

\vspace*{-12pt}

\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  \textbf{Codice} &amp; \textbf{Descrizione} &amp; \textbf{Quantita'} &amp;
    \textbf{Unita'} &amp; \textbf{Prezzo} &amp; \textbf{Sc.} &amp; \textbf{Totale righe} \\
  &amp; carried forward from page &lt;?lsmb lastpage ?&gt; &amp; &amp; &amp; &amp; &amp; &lt;?lsmb sumcarriedforward ?&gt; \\
&lt;?lsmb end pagebreak ?&gt;


\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont

\vspace*{0.5cm}

\parbox[t]{1cm}{\hfill}
  \parbox[t]{10.5cm}{
  \textbf{Sede legale:}
  \vspace{0.5cm}

&lt;?lsmb name ?&gt;

&lt;?lsmb address1 ?&gt;

&lt;?lsmb if address2 ?&gt;
&lt;?lsmb address2 ?&gt;
&lt;?lsmb end address2 ?&gt;

&lt;?lsmb city ?&gt; &lt;?lsmb state ?&gt; &lt;?lsmb zipcode ?&gt;

&lt;?lsmb if country ?&gt;
&lt;?lsmb country ?&gt;
&lt;?lsmb end country ?&gt;

\vspace{0.3cm}

%&lt;?lsmb if contact ?&gt;
%Attn: &lt;?lsmb contact ?&gt;
%\vspace{0.3cm}
%&lt;?lsmb end contact ?&gt;
\vspace{0.5cm}

&lt;?lsmb if customerphone ?&gt;
Telefono: &lt;?lsmb customerphone ?&gt;
&lt;?lsmb end customerphone ?&gt;

&lt;?lsmb if customerfax ?&gt;
Fax: &lt;?lsmb customerfax ?&gt;
&lt;?lsmb end customerfax ?&gt;

&lt;?lsmb email ?&gt;
}
\parbox[t]{7.5cm}{
\textbf{Inviare fatttura a:}
\vspace{0.5cm}

&lt;?lsmb shiptoname ?&gt;

&lt;?lsmb shiptoaddress1 ?&gt;

&lt;?lsmb if shiptoaddress2 ?&gt;
&lt;?lsmb shiptoaddress2 ?&gt;
&lt;?lsmb end shiptoaddress2 ?&gt;

&lt;?lsmb shiptocity ?&gt; &lt;?lsmb shiptostate ?&gt; &lt;?lsmb shiptozipcode ?&gt;

&lt;?lsmb if shiptocountry ?&gt;
&lt;?lsmb shiptocountry ?&gt;
&lt;?lsmb end shiptocountry ?&gt;

\vspace{0.3cm}

\vspace{0.3cm}

&lt;?lsmb if shiptocontact ?&gt;
Attn: &lt;?lsmb shiptocontact ?&gt;
\vspace{0.3cm}
&lt;?lsmb end shiptocontact ?&gt;

&lt;?lsmb if shiptophone ?&gt;
Tel: &lt;?lsmb shiptophone ?&gt;
&lt;?lsmb end shiptophone ?&gt;

&lt;?lsmb if shiptofax ?&gt;
Fax: &lt;?lsmb shiptofax ?&gt;
&lt;?lsmb end shiptofax ?&gt;

&lt;?lsmb shiptoemail ?&gt;
}
\hfill

\vspace{1cm}

\textbf{FATTURA}
\hfill

\vspace{1cm}

\begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  \textbf{Data fattura} &amp; &lt;?lsmb invdate ?&gt; \\
  \textbf{Numero fattura} &amp; &lt;?lsmb invnumber ?&gt; \\
  \textbf{Ordine} &amp; &lt;?lsmb ordnumber ?&gt;
\end{tabular}

\vspace{1cm}

\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  \textbf{Codice} &amp; \textbf{Descrizione} &amp; \textbf{Qt\`a} &amp;
    \textbf{Un.} &amp; \textbf{Prezzo} &amp; \textbf{Sc.} &amp; \textbf{Tot. riga} \\
&lt;?lsmb foreach number ?&gt;
  &lt;?lsmb number ?&gt; &amp; &lt;?lsmb description ?&gt; &amp; &lt;?lsmb qty ?&gt; &amp;
    &lt;?lsmb unit ?&gt; &amp; &lt;?lsmb sellprice ?&gt; &amp; &lt;?lsmb discount ?&gt; &amp; &lt;?lsmb linetotal ?&gt; \\
&lt;?lsmb end number ?&gt;
\end{tabular*}


\parbox{\textwidth}{
\rule{\textwidth}{2pt}

\vspace{0.2cm}

\hfill
\begin{tabularx}{7cm}{Xr@{}}
  \textbf{Totale righe} &amp; \textbf{&lt;?lsmb subtotal ?&gt;} \\
&lt;?lsmb foreach tax ?&gt;
  &lt;?lsmb taxdescription ?&gt;: &lt;?lsmb taxrate ?&gt;\% &amp; &lt;?lsmb tax ?&gt;\\
&lt;?lsmb end tax ?&gt;
&lt;?lsmb if paid ?&gt;
  \textbf{Pagato} &amp; - &lt;?lsmb paid ?&gt; \\
&lt;?lsmb end paid ?&gt;
  \hline
  \textbf{Totale da pagare} &amp; \textbf{&lt;?lsmb total ?&gt;} \\
\end{tabularx}

\vspace{0.3cm}

\hfill
  Tutti i prezzi sono espressi in valuta \textbf{&lt;?lsmb currency ?&gt;}.

\vspace{12pt}

&lt;?lsmb if notes ?&gt;
  &lt;?lsmb notes ?&gt;
&lt;?lsmb end if ?&gt;

}

\vfill

&lt;?lsmb if paid ?&gt;
\begin{tabularx}{10cm}{@{}lXlr@{}}
  \textbf{Pagamenti} &amp; &amp; &amp; \\
  \hline
  \textbf{Data} &amp; \textbf{Conto} &amp; \textbf{Documento di riferimento} &amp; \textbf{Importo} \\
&lt;?lsmb end paid ?&gt;
&lt;?lsmb foreach payment ?&gt;
  &lt;?lsmb paymentdate ?&gt; &amp; &lt;?lsmb paymentaccount ?&gt; &amp; &lt;?lsmb paymentsource ?&gt; &amp; &lt;?lsmb payment ?&gt; \\
&lt;?lsmb end payment ?&gt;
&lt;?lsmb if paid ?&gt;
\end{tabularx}
&lt;?lsmb end paid ?&gt;

\vspace{1cm}

%\centerline{\textbf{Grazie per averci scelto!}}

\renewcommand{\thefootnote}{\fnsymbol{footnote}}

\footnotetext[1]{\tiny
Per i pagamenti successivi alla scadenza della fattura sara'
addebitato l'interesse legale, aumentato di due punti percentuali, fino al
pagamento completo.
}

\end{document}



</pre></body></html>