summaryrefslogtreecommitdiff
path: root/templates/Italian-invoice.tex
blob: 98598d9c74d0f26efa80e502e55bf09777ee0a54 (plain)
  1. \documentclass[twoside]{scrartcl}
  2. \usepackage[frame]{xy}
  3. \usepackage{tabularx}
  4. \usepackage[latin1]{inputenc}
  5. \setlength{\voffset}{0.5cm}
  6. \setlength{\hoffset}{-2.0cm}
  7. \setlength{\topmargin}{0cm}
  8. \setlength{\headheight}{0.5cm}
  9. \setlength{\headsep}{1cm}
  10. \setlength{\topskip}{0pt}
  11. \setlength{\oddsidemargin}{1.0cm}
  12. \setlength{\evensidemargin}{1.0cm}
  13. \setlength{\textwidth}{18cm}
  14. \setlength{\textheight}{24.5cm}
  15. \setlength{\footskip}{1cm}
  16. \setlength{\parindent}{0pt}
  17. \renewcommand{\baselinestretch}{1}
  18. \begin{document}
  19. \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
  20. \newsavebox{\hdr}
  21. \sbox{\hdr}{
  22.   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  23. \parbox{\textwidth}{
  24. \parbox[b]{12cm}{
  25. <%company%>
  26. <%address%>}\hfill
  27. \begin{tabular}[b]{rr@{}}
  28. Tel & <%tel%>\\
  29. Fax & <%fax%>
  30. \end{tabular}
  31. \rule[1.5ex]{\textwidth}{0.5pt}
  32. }
  33. }
  34. \fontfamily{cmss}\fontshape{n}\selectfont
  35. \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
  36. \pagestyle{myheadings}
  37. %\thispagestyle{empty} use this with letterhead paper
  38. <%pagebreak 65 27 48%>
  39. \end{tabular*}
  40. \rule{\textwidth}{2pt}
  41. \hfill
  42. \begin{tabularx}{7cm}{Xr@{}}
  43. \textbf{Totale riga} & \textbf{<%sumcarriedforward%>} \\
  44. \end{tabularx}
  45. \newpage
  46. \markright{<%company%>\hfill <%invnumber%>}
  47. \vspace*{-12pt}
  48. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  49. \textbf{Codice} & \textbf{Descrizione} & \textbf{Quantita'} &
  50. \textbf{Unita'} & \textbf{Prezzo} & \textbf{Sc.} & \textbf{Totale righe} \\
  51. & carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\
  52. <%end pagebreak%>
  53. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  54. \vspace*{0.5cm}
  55. \parbox[t]{1cm}{\hfill}
  56. \parbox[t]{10.5cm}{
  57. \textbf{Sede legale:}
  58. \vspace{0.5cm}
  59. <%name%>
  60. <%address1%>
  61. <%if address2%>
  62. <%address2%>
  63. <%end address2%>
  64. <%city%> <%state%> <%zipcode%>
  65. <%if country%>
  66. <%country%>
  67. <%end country%>
  68. \vspace{0.3cm}
  69. %<%if contact%>
  70. %Attn: <%contact%>
  71. %\vspace{0.3cm}
  72. %<%end contact%>
  73. \vspace{0.5cm}
  74. <%if customerphone%>
  75. Telefono: <%customerphone%>
  76. <%end customerphone%>
  77. <%if customerfax%>
  78. Fax: <%customerfax%>
  79. <%end customerfax%>
  80. <%email%>
  81. }
  82. \parbox[t]{7.5cm}{
  83. \textbf{Inviare fatttura a:}
  84. \vspace{0.5cm}
  85. <%shiptoname%>
  86. <%shiptoaddress1%>
  87. <%if shiptoaddress2%>
  88. <%shiptoaddress2%>
  89. <%end shiptoaddress2%>
  90. <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
  91. <%if shiptocountry%>
  92. <%shiptocountry%>
  93. <%end shiptocountry%>
  94. \vspace{0.3cm}
  95. \vspace{0.3cm}
  96. <%if shiptocontact%>
  97. Attn: <%shiptocontact%>
  98. \vspace{0.3cm}
  99. <%end shiptocontact%>
  100. <%if shiptophone%>
  101. Tel: <%shiptophone%>
  102. <%end shiptophone%>
  103. <%if shiptofax%>
  104. Fax: <%shiptofax%>
  105. <%end shiptofax%>
  106. <%shiptoemail%>
  107. }
  108. \hfill
  109. \vspace{1cm}
  110. \textbf{FATTURA}
  111. \hfill
  112. \vspace{1cm}
  113. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  114. \textbf{Data fattura} & <%invdate%> \\
  115. \textbf{Numero fattura} & <%invnumber%> \\
  116. \textbf{Ordine} & <%ordnumber%>
  117. \end{tabular}
  118. \vspace{1cm}
  119. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  120. \textbf{Codice} & \textbf{Descrizione} & \textbf{Qt\`a} &
  121. \textbf{Un.} & \textbf{Prezzo} & \textbf{Sc.} & \textbf{Tot. riga} \\
  122. <%foreach number%>
  123. <%number%> & <%description%> & <%qty%> &
  124. <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
  125. <%end number%>
  126. \end{tabular*}
  127. \parbox{\textwidth}{
  128. \rule{\textwidth}{2pt}
  129. \vspace{0.2cm}
  130. \hfill
  131. \begin{tabularx}{7cm}{Xr@{}}
  132. \textbf{Totale righe} & \textbf{<%subtotal%>} \\
  133. <%foreach tax%>
  134. <%taxdescription%>: <%taxrate%>\% & <%tax%>\\
  135. <%end tax%>
  136. <%if paid%>
  137. \textbf{Pagato} & - <%paid%> \\
  138. <%end paid%>
  139. \hline
  140. \textbf{Totale da pagare} & \textbf{<%total%>} \\
  141. \end{tabularx}
  142. \vspace{0.3cm}
  143. \hfill
  144. Tutti i prezzi sono espressi in valuta \textbf{<%currency%>}.
  145. \vspace{12pt}
  146. <%if notes%>
  147. <%notes%>
  148. <%end if%>
  149. }
  150. \vfill
  151. <%if paid%>
  152. \begin{tabularx}{10cm}{@{}lXlr@{}}
  153. \textbf{Pagamenti} & & & \\
  154. \hline
  155. \textbf{Data} & \textbf{Conto} & \textbf{Documento di riferimento} & \textbf{Importo} \\
  156. <%end paid%>
  157. <%foreach payment%>
  158. <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
  159. <%end payment%>
  160. <%if paid%>
  161. \end{tabularx}
  162. <%end paid%>
  163. \vspace{1cm}
  164. %\centerline{\textbf{Grazie per averci scelto!}}
  165. \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  166. \footnotetext[1]{\tiny
  167. Per i pagamenti successivi alla scadenza della fattura sara'
  168. addebitato l'interesse legale, aumentato di due punti percentuali, fino al
  169. pagamento completo.
  170. }
  171. \end{document}