summaryrefslogtreecommitdiff
path: root/templates/krings/statement.tex
blob: 5865da11fd57295f3d967970d43f99aed0f3e8ae (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}{19.2cm}
  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]{rrr@{}}
  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 <%statementdate%>}{\usebox{\hdr}}
  36. \pagestyle{myheadings}
  37. %\thispagestyle{empty} use this with letterhead paper
  38. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  39. \vspace*{1.5cm}
  40. \parbox[t]{1cm}{\hfill}
  41. \parbox[t]{10.5cm}{
  42. <%name%>
  43. <%address1%>
  44. <%if address2%>
  45. <%address2%>
  46. <%end address2%>
  47. <%city%> <%state%> <%zipcode%>
  48. <%if country%>
  49. <%country%>
  50. <%end country%>
  51. }
  52. \parbox[t]{7.5cm}{
  53. <%if customerphone%>
  54. Tel: <%customerphone%>
  55. <%end customerphone%>
  56. <%if customerfax%>
  57. Fax: <%customerfax%>
  58. <%end customerfax%>
  59. <%email%>
  60. }
  61. \hfill
  62. \vspace{1cm}
  63. \textbf{S T A T E M E N T} \hfill \textbf{<%statementdate%>}
  64. \vspace{2cm}
  65. \begin{tabular*}{\textwidth}{@{}l@{\extracolsep\fill}ccrrrr@{}}
  66. \textbf{Invoice \#} & \textbf{Date} & \textbf{Due} &
  67. \textbf{Current} & \textbf{30} & \textbf{60} & \textbf{90+} \\
  68. <%foreach invnumber%>
  69. <%invnumber%> & <%invdate%> & <%duedate%> &
  70. <%c0%> & <%c30%> & <%c60%> & <%c90%> \\
  71. <%end invnumber%>
  72. \textbf{Subtotal} & & & <%c0total%> & <%c30total%> & <%c60total%> & <%c90total%>
  73. \end{tabular*}
  74. \rule{\textwidth}{1pt}
  75. \vspace{1cm}
  76. \hfill
  77. \begin{tabularx}{7cm}{Xr@{}}
  78. \textbf{Total outstanding} & <%total%>
  79. \end{tabularx}
  80. \vfill
  81. Please make check payable to <%company%>
  82. \end{document}