summaryrefslogtreecommitdiff
path: root/templates/demo/invoice.tex
blob: fa7145bf63a45c5662b4881fb142b9d4a6d874bf (plain)
  1. \documentclass{scrartcl}
  2. \usepackage[latin1]{inputenc}
  3. \usepackage{tabularx}
  4. \usepackage[letterpaper,top=2cm,bottom=-3cm,left=1.1cm,right=1.5cm]{geometry}
  5. \usepackage{graphicx}
  6. \begin{document}
  7. \pagestyle{myheadings}
  8. \thispagestyle{empty}
  9. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  10. \newsavebox{\ftr}
  11. \sbox{\ftr}{
  12.   \parbox{\textwidth}{
  13. \tiny
  14. \rule[1.5em]{\textwidth}{0.5pt}
  15. Payment due NET <%terms%> Days from date of Invoice. Interest on overdue amounts will acrue at the rate of 12\% per annum starting from <%duedate%> until paid in full. Items returned are subject to a 10\% restocking charge.
  16. A return authorization must be obtained from <%company%> before goods are returned. Returns must be shipped prepaid and properly insured.
  17. <%company%> will not be responsible for damages during transit.
  18. }
  19. }
  20. <%include letterhead.tex%>
  21. <%pagebreak 65 27 37%>
  22. \end{tabularx}
  23. \rule{\textwidth}{2pt}
  24. \vspace{0.2cm}
  25. \hfill
  26. \begin{tabularx}{\textwidth}{Xr@{\hspace{1cm}}r@{}}
  27. & Subtotal & <%sumcarriedforward%> \\
  28. \end{tabularx}
  29. \newpage
  30. \markboth{<%company%>\hfill <%invnumber%>}{<%company%>\hfill <%invnumber%>}
  31. \begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}}
  32. \textbf{Pos} & \textbf{Number} & \textbf{Description} & & \textbf{Qt'y} &
  33. \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ [0.5em]
  34. & carried forward from page <%lastpage%> & & & & & & & <%sumcarriedforward%> \\ [0.5em]
  35. <%end pagebreak%>
  36. \vspace*{0.5cm}
  37. \parbox[t]{.5\textwidth}{
  38. \textbf{To}
  39. \vspace{0.3cm}
  40. <%name%>
  41. <%address1%>
  42. <%address2%>
  43. <%city%>
  44. <%if state%>
  45. \hspace{-0.1cm}, <%state%>
  46. <%end state%>
  47. <%zipcode%>
  48. <%country%>
  49. \vspace{0.3cm}
  50. <%if contact%>
  51. <%contact%>
  52. \vspace{0.2cm}
  53. <%end contact%>
  54. <%if customerphone%>
  55. Tel: <%customerphone%>
  56. <%end customerphone%>
  57. <%if customerfax%>
  58. Fax: <%customerfax%>
  59. <%end customerfax%>
  60. <%email%>
  61. }
  62. \parbox[t]{.5\textwidth}{
  63. \textbf{Ship To}
  64. \vspace{0.3cm}
  65. <%shiptoname%>
  66. <%shiptoaddress1%>
  67. <%shiptoaddress2%>
  68. <%shiptocity%>
  69. <%if shiptostate%>
  70. \hspace{-0.1cm}, <%shiptostate%>
  71. <%end shiptostate%>
  72. <%shiptozipcode%>
  73. <%shiptocountry%>
  74. \vspace{0.3cm}
  75. <%if shiptocontact%>
  76. <%shiptocontact%>
  77. \vspace{0.2cm}
  78. <%end shiptocontact%>
  79. <%if shiptophone%>
  80. Tel: <%shiptophone%>
  81. <%end shiptophone%>
  82. <%if shiptofax%>
  83. Fax: <%shiptofax%>
  84. <%end shiptofax%>
  85. <%shiptoemail%>
  86. }
  87. \hfill
  88. \vspace{1cm}
  89. \textbf{I N V O I C E}
  90. \hfill
  91. \vspace{1cm}
  92. \begin{tabularx}{\textwidth}{*{7}{|X}|} \hline
  93. \textbf{Invoice \#} & \textbf{Date} & \textbf{Due} & \textbf{Order \#}
  94. & \textbf{Salesperson} & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em]
  95. \hline
  96. <%invnumber%> & <%invdate%> & <%duedate%> & <%ordnumber%> & <%employee%>
  97. & <%shippingpoint%> & <%shipvia%> \\
  98. \hline
  99. \end{tabularx}
  100. \vspace{1cm}
  101. \begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}}
  102. \textbf{Pos} & \textbf{Number} & \textbf{Description} & & \textbf{Qt'y} &
  103. \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ [0.5em]
  104. <%foreach number%>
  105. <%runningnumber%> & <%number%> & <%description%> & <%deliverydate%> &
  106. <%qty%> & <%unit%> & <%sellprice%> & <%discountrate%> & <%linetotal%> \\
  107. <%end number%>
  108. \end{tabularx}
  109. \parbox{\textwidth}{
  110. \rule{\textwidth}{2pt}
  111. \vspace{0.2cm}
  112. \hfill
  113. \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}}
  114. & Subtotal & <%subtotal%> \\
  115. <%foreach tax%>
  116. & <%taxdescription%> on <%taxbase%> & <%tax%> \\
  117. <%end tax%>
  118. <%if paid%>
  119. & Paid & - <%paid%> \\
  120. <%end paid%>
  121. \hline
  122. <%if total%>
  123. & Balance Due & <%total%>
  124. <%end total%>
  125. \end{tabularx}
  126. \vspace{0.3cm}
  127. <%text_amount%> ***** <%decimal%>/100
  128. \hfill
  129. All prices in \textbf{<%currency%>}.
  130. \vspace{12pt}
  131. <%notes%>
  132. }
  133. \vfill
  134. <%if paid_1%>
  135. \begin{tabularx}{10cm}{@{}lXlr@{}}
  136. \textbf{Payments} & & & \\
  137. \hline
  138. \textbf{Date} & & \textbf{Source} & \textbf{Amount} \\
  139. <%end paid_1%>
  140. <%foreach payment%>
  141. <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
  142. <%end payment%>
  143. <%if paid_1%>
  144. \end{tabularx}
  145. <%end paid_1%>
  146. \vspace{1cm}
  147. \centerline{\textbf{Thank You for your valued business!}}
  148. \rule{\textwidth}{0.5pt}
  149. \usebox{\ftr}
  150. \end{document}