summaryrefslogtreecommitdiff
path: root/templates/Brazilian_Portuguese-invoice.tex
blob: 1328d9c69a1b8887c609eef4dd2f0aeffa0d9ae8 (plain)
  1. \documentclass{scrartcl}
  2. \usepackage[latin1]{inputenc}
  3. \usepackage{tabularx}
  4. \usepackage[top=2cm,bottom=1.5cm,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. <?lsmb company ?>
  15. <?lsmb address ?>}\hfill
  16. \begin{tabular}[b]{rr@{}}
  17. Telefone & <?lsmb tel ?>\\
  18. Fax & <?lsmb fax ?>
  19. \end{tabular}
  20. \rule[1.5ex]{\textwidth}{0.5pt}
  21. }
  22. }
  23. \fontfamily{cmss}\fontshape{n}\selectfont
  24. \markboth{<?lsmb company ?>\hfill <?lsmb invnumber ?>}{\usebox{\hdr}}
  25. \pagestyle{myheadings}
  26. %\thispagestyle{empty} use this with letterhead paper
  27. <?lsmb pagebreak 65 27 37 ?>
  28. \end{tabular*}
  29. \rule{\textwidth}{2pt}
  30. \hfill
  31. \begin{tabularx}{7cm}{Xr@{}}
  32. \textbf{Subtotal} & \textbf{<?lsmb sumcarriedforward ?>} \\
  33. \end{tabularx}
  34. \newpage
  35. \markright{<?lsmb company ?>\hfill <?lsmb 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 <?lsmb lastpage ?> & & & & & <?lsmb sumcarriedforward ?> \\
  41. <?lsmb 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. <?lsmb name ?>
  49. <?lsmb address1 ?>
  50. <?lsmb if address2 ?>
  51. <?lsmb address2 ?>
  52. <?lsmb end address2 ?>
  53. <?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
  54. <?lsmb if country ?>
  55. <?lsmb country ?>
  56. <?lsmb end country ?>
  57. \vspace{0.3cm}
  58. %<?lsmb if contact ?>
  59. %Attn: <?lsmb contact ?>
  60. %\vspace{0.3cm}
  61. %<?lsmb end contact ?>
  62. \vspace{0.5cm}
  63. <?lsmb if customerphone ?>
  64. Tel: <?lsmb customerphone ?>
  65. <?lsmb end customerphone ?>
  66. <?lsmb if customerfax ?>
  67. Fax: <?lsmb customerfax ?>
  68. <?lsmb end customerfax ?>
  69. <?lsmb email ?>
  70. }
  71. \parbox[t]{7.5cm}{
  72. \textbf{Ship To}
  73. \vspace{0.5cm}
  74. <?lsmb shiptoname ?>
  75. <?lsmb shiptoaddress1 ?>
  76. <?lsmb if shiptoaddress2 ?>
  77. <?lsmb shiptoaddress2 ?>
  78. <?lsmb end shiptoaddress2 ?>
  79. <?lsmb shiptocity ?> <?lsmb shiptostate ?> <?lsmb shiptozipcode ?>
  80. <?lsmb if shiptocountry ?>
  81. <?lsmb shiptocountry ?>
  82. <?lsmb end shiptocountry ?>
  83. \vspace{0.3cm}
  84. \vspace{0.3cm}
  85. <?lsmb if shiptocontact ?>
  86. Attn: <?lsmb shiptocontact ?>
  87. \vspace{0.3cm}
  88. <?lsmb end shiptocontact ?>
  89. <?lsmb if shiptophone ?>
  90. Tel: <?lsmb shiptophone ?>
  91. <?lsmb end shiptophone ?>
  92. <?lsmb if shiptofax ?>
  93. Fax: <?lsmb shiptofax ?>
  94. <?lsmb end shiptofax ?>
  95. <?lsmb 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} & <?lsmb invdate ?> \\
  104. \textbf{Número} & <?lsmb invnumber ?> \\
  105. \textbf{Pedido} & <?lsmb ordnumber ?> \\
  106. \textbf{Produto} & <?lsmb 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. <?lsmb foreach number ?>
  113. <?lsmb number ?> & <?lsmb description ?> & <?lsmb qty ?> &
  114. <?lsmb unit ?> & <?lsmb sellprice ?> & <?lsmb discount ?> & <?lsmb linetotal ?> \\
  115. <?lsmb 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{<?lsmb subtotal ?>} \\
  123. <?lsmb foreach tax ?>
  124. <?lsmb taxdescription ?> em <?lsmb taxbase ?> & <?lsmb tax ?> \\
  125. <?lsmb end tax ?>
  126. <?lsmb if paid ?>
  127. \textbf{Pago} & - <?lsmb paid ?> \\
  128. <?lsmb end paid ?>
  129. \hline
  130. \textbf{Pendente} & \textbf{<?lsmb total ?>} \\
  131. \end{tabularx}
  132. \vspace{0.3cm}
  133. \hfill
  134. Preços em \textbf{<?lsmb currency ?>}.
  135. \vspace{12pt}
  136. <?lsmb if notes ?>
  137. <?lsmb notes ?>
  138. <?lsmb end if ?>
  139. }
  140. \vfill
  141. <?lsmb if paid ?>
  142. \begin{tabularx}{10cm}{@{}lXlr@{}}
  143. \textbf{Pagamentos} & & & \\
  144. \hline
  145. \textbf{Data} & \textbf{Conta} & \textbf{Origem} & \textbf{Total} \\
  146. <?lsmb end paid ?>
  147. <?lsmb foreach payment ?>
  148. <?lsmb paymentdate ?> & <?lsmb paymentaccount ?> & <?lsmb paymentsource ?> & <?lsmb payment ?> \\
  149. <?lsmb end payment ?>
  150. <?lsmb if paid ?>
  151. \end{tabularx}
  152. <?lsmb end paid ?>
  153. \vspace{1cm}
  154. \centerline{\textbf{Obrigado por estarmos fazendo negócio!}}
  155. \end{document}