summaryrefslogtreecommitdiff
path: root/templates/Italian-invoice.tex
blob: a436e355809791d3cb506afceb476fa7afbc73a9 (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. <?lsmb company ?>
  26. <?lsmb address ?>}\hfill
  27. \begin{tabular}[b]{rr@{}}
  28. Tel & <?lsmb tel ?>\\
  29. Fax & <?lsmb fax ?>
  30. \end{tabular}
  31. \rule[1.5ex]{\textwidth}{0.5pt}
  32. }
  33. }
  34. \fontfamily{cmss}\fontshape{n}\selectfont
  35. \markboth{<?lsmb company ?>\hfill <?lsmb invnumber ?>}{\usebox{\hdr}}
  36. \pagestyle{myheadings}
  37. %\thispagestyle{empty} use this with letterhead paper
  38. <?lsmb pagebreak 65 27 48 ?>
  39. \end{tabular*}
  40. \rule{\textwidth}{2pt}
  41. \hfill
  42. \begin{tabularx}{7cm}{Xr@{}}
  43. \textbf{Totale riga} & \textbf{<?lsmb sumcarriedforward ?>} \\
  44. \end{tabularx}
  45. \newpage
  46. \markright{<?lsmb company ?>\hfill <?lsmb 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 <?lsmb lastpage ?> & & & & & <?lsmb sumcarriedforward ?> \\
  52. <?lsmb 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. <?lsmb name ?>
  60. <?lsmb address1 ?>
  61. <?lsmb if address2 ?>
  62. <?lsmb address2 ?>
  63. <?lsmb end address2 ?>
  64. <?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
  65. <?lsmb if country ?>
  66. <?lsmb country ?>
  67. <?lsmb end country ?>
  68. \vspace{0.3cm}
  69. %<?lsmb if contact ?>
  70. %Attn: <?lsmb contact ?>
  71. %\vspace{0.3cm}
  72. %<?lsmb end contact ?>
  73. \vspace{0.5cm}
  74. <?lsmb if customerphone ?>
  75. Telefono: <?lsmb customerphone ?>
  76. <?lsmb end customerphone ?>
  77. <?lsmb if customerfax ?>
  78. Fax: <?lsmb customerfax ?>
  79. <?lsmb end customerfax ?>
  80. <?lsmb email ?>
  81. }
  82. \parbox[t]{7.5cm}{
  83. \textbf{Inviare fatttura a:}
  84. \vspace{0.5cm}
  85. <?lsmb shiptoname ?>
  86. <?lsmb shiptoaddress1 ?>
  87. <?lsmb if shiptoaddress2 ?>
  88. <?lsmb shiptoaddress2 ?>
  89. <?lsmb end shiptoaddress2 ?>
  90. <?lsmb shiptocity ?> <?lsmb shiptostate ?> <?lsmb shiptozipcode ?>
  91. <?lsmb if shiptocountry ?>
  92. <?lsmb shiptocountry ?>
  93. <?lsmb end shiptocountry ?>
  94. \vspace{0.3cm}
  95. \vspace{0.3cm}
  96. <?lsmb if shiptocontact ?>
  97. Attn: <?lsmb shiptocontact ?>
  98. \vspace{0.3cm}
  99. <?lsmb end shiptocontact ?>
  100. <?lsmb if shiptophone ?>
  101. Tel: <?lsmb shiptophone ?>
  102. <?lsmb end shiptophone ?>
  103. <?lsmb if shiptofax ?>
  104. Fax: <?lsmb shiptofax ?>
  105. <?lsmb end shiptofax ?>
  106. <?lsmb 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} & <?lsmb invdate ?> \\
  115. \textbf{Numero fattura} & <?lsmb invnumber ?> \\
  116. \textbf{Ordine} & <?lsmb 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. <?lsmb foreach number ?>
  123. <?lsmb number ?> & <?lsmb description ?> & <?lsmb qty ?> &
  124. <?lsmb unit ?> & <?lsmb sellprice ?> & <?lsmb discount ?> & <?lsmb linetotal ?> \\
  125. <?lsmb 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{<?lsmb subtotal ?>} \\
  133. <?lsmb foreach tax ?>
  134. <?lsmb taxdescription ?>: <?lsmb taxrate ?>\% & <?lsmb tax ?>\\
  135. <?lsmb end tax ?>
  136. <?lsmb if paid ?>
  137. \textbf{Pagato} & - <?lsmb paid ?> \\
  138. <?lsmb end paid ?>
  139. \hline
  140. \textbf{Totale da pagare} & \textbf{<?lsmb total ?>} \\
  141. \end{tabularx}
  142. \vspace{0.3cm}
  143. \hfill
  144. Tutti i prezzi sono espressi in valuta \textbf{<?lsmb currency ?>}.
  145. \vspace{12pt}
  146. <?lsmb if notes ?>
  147. <?lsmb notes ?>
  148. <?lsmb end if ?>
  149. }
  150. \vfill
  151. <?lsmb if paid ?>
  152. \begin{tabularx}{10cm}{@{}lXlr@{}}
  153. \textbf{Pagamenti} & & & \\
  154. \hline
  155. \textbf{Data} & \textbf{Conto} & \textbf{Documento di riferimento} & \textbf{Importo} \\
  156. <?lsmb end paid ?>
  157. <?lsmb foreach payment ?>
  158. <?lsmb paymentdate ?> & <?lsmb paymentaccount ?> & <?lsmb paymentsource ?> & <?lsmb payment ?> \\
  159. <?lsmb end payment ?>
  160. <?lsmb if paid ?>
  161. \end{tabularx}
  162. <?lsmb 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}