summaryrefslogtreecommitdiff
path: root/templates/Brazilian_Portuguese-invoice.tex
blob: 67c00dcc28edc758544dd731408c294a61bc8556 (plain)
  1. \documentclass{scrartcl}
  2. \usepackage[latin1]{inputenc}
  3. \usepackage{tabularx}
  4. \usepackage[top=2cm,bottom=-1cm,left=2cm,right=1cm]{geometry}
  5. \usepackage{graphicx}
  6. \setlength{\parindent}{0pt}
  7. \begin{document}
  8. \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
  9. \newsavebox{\hdr}
  10. \sbox{\hdr}{
  11.   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  12. \parbox{\textwidth}{
  13. \parbox[b]{12cm}{
  14. <%company%>
  15. <%address%>}\hfill
  16. \begin{tabular}[b]{rr@{}}
  17. Telefone & <%tel%>\\
  18. Fax & <%fax%>
  19. \end{tabular}
  20. \rule[1.5ex]{\textwidth}{0.5pt}
  21. }
  22. }
  23. \fontfamily{cmss}\fontshape{n}\selectfont
  24. \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
  25. \pagestyle{myheadings}
  26. %\thispagestyle{empty} use this with letterhead paper
  27. <%pagebreak 65 27 37%>
  28. \end{tabular*}
  29. \rule{\textwidth}{2pt}
  30. \hfill
  31. \begin{tabularx}{7cm}{Xr@{}}
  32. \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
  33. \end{tabularx}
  34. \newpage
  35. \markright{<%company%>\hfill <%invnumber%>}
  36. \vspace*{-12pt}
  37. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  38. \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  39. \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
  40. & carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\
  41. <%end pagebreak%>
  42. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  43. \vspace*{0.5cm}
  44. \parbox[t]{1cm}{\hfill}
  45. \parbox[t]{10.5cm}{
  46. \textbf{To}
  47. \vspace{0.5cm}
  48. <%name%>
  49. <%address1%>
  50. <%if address2%>
  51. <%address2%>
  52. <%end address2%>
  53. <%city%> <%state%> <%zipcode%>
  54. <%if country%>
  55. <%country%>
  56. <%end country%>
  57. \vspace{0.3cm}
  58. %<%if contact%>
  59. %Attn: <%contact%>
  60. %\vspace{0.3cm}
  61. %<%end contact%>
  62. \vspace{0.5cm}
  63. <%if customerphone%>
  64. Tel: <%customerphone%>
  65. <%end customerphone%>
  66. <%if customerfax%>
  67. Fax: <%customerfax%>
  68. <%end customerfax%>
  69. <%email%>
  70. }
  71. \parbox[t]{7.5cm}{
  72. \textbf{Ship To}
  73. \vspace{0.5cm}
  74. <%shiptoname%>
  75. <%shiptoaddress1%>
  76. <%if shiptoaddress2%>
  77. <%shiptoaddress2%>
  78. <%end shiptoaddress2%>
  79. <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
  80. <%if shiptocountry%>
  81. <%shiptocountry%>
  82. <%end shiptocountry%>
  83. \vspace{0.3cm}
  84. \vspace{0.3cm}
  85. <%if shiptocontact%>
  86. Attn: <%shiptocontact%>
  87. \vspace{0.3cm}
  88. <%end shiptocontact%>
  89. <%if shiptophone%>
  90. Tel: <%shiptophone%>
  91. <%end shiptophone%>
  92. <%if shiptofax%>
  93. Fax: <%shiptofax%>
  94. <%end shiptofax%>
  95. <%shiptoemail%>
  96. }
  97. \hfill
  98. \vspace{1cm}
  99. \textbf{F A T U R A}
  100. \hfill
  101. \vspace{1cm}
  102. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  103. \textbf{Data} & <%invdate%> \\
  104. \textbf{Número} & <%invnumber%> \\
  105. \textbf{Pedido} & <%ordnumber%> \\
  106. \textbf{Produto} & <%employee%>
  107. \end{tabular}
  108. \vspace{1cm}
  109. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  110. \textbf{Número} & \textbf{Descrição} & \textbf{Quant.} &
  111. \textbf{Unid.} & \textbf{Preço} & \textbf{Disc.} & \textbf{Total} \\
  112. <%foreach number%>
  113. <%number%> & <%description%> & <%qty%> &
  114. <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
  115. <%end number%>
  116. \end{tabular*}
  117. \parbox{\textwidth}{
  118. \rule{\textwidth}{2pt}
  119. \vspace{0.2cm}
  120. \hfill
  121. \begin{tabularx}{7cm}{Xr@{}}
  122. \textbf{Subtotal} & \textbf{<%subtotal%>} \\
  123. <%foreach tax%>
  124. <%taxdescription%> em <%taxbase%> & <%tax%> \\
  125. <%end tax%>
  126. <%if paid%>
  127. \textbf{Pago} & - <%paid%> \\
  128. <%end paid%>
  129. \hline
  130. \textbf{Pendente} & \textbf{<%total%>} \\
  131. \end{tabularx}
  132. \vspace{0.3cm}
  133. \hfill
  134. Preços em \textbf{<%currency%>}.
  135. \vspace{12pt}
  136. <%if notes%>
  137. <%notes%>
  138. <%end if%>
  139. }
  140. \vfill
  141. <%if paid%>
  142. \begin{tabularx}{10cm}{@{}lXlr@{}}
  143. \textbf{Pagamentos} & & & \\
  144. \hline
  145. \textbf{Data} & \textbf{Conta} & \textbf{Origem} & \textbf{Total} \\
  146. <%end paid%>
  147. <%foreach payment%>
  148. <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
  149. <%end payment%>
  150. <%if paid%>
  151. \end{tabularx}
  152. <%end paid%>
  153. \vspace{1cm}
  154. \centerline{\textbf{Obrigado por estarmos fazendo negócio!}}
  155. \end{document}