summaryrefslogtreecommitdiff
path: root/templates/spiff/statement.tex
blob: f110151215259c0fff25a1696d45249cca63597a (plain)
  1. \documentclass[a4paper,twoside]{scrartcl}
  2. \usepackage[frame]{xy}
  3. \usepackage{tabularx}
  4. \usepackage[latin1]{inputenc}
  5. \usepackage[T1]{fontenc}
  6. \usepackage[danish]{babel}
  7. \setlength{\voffset}{0.5cm}
  8. \setlength{\hoffset}{-2.0cm}
  9. \setlength{\topmargin}{0cm}
  10. \setlength{\headheight}{0.5cm}
  11. \setlength{\headsep}{1cm}
  12. \setlength{\topskip}{0pt}
  13. \setlength{\oddsidemargin}{1.0cm}
  14. \setlength{\evensidemargin}{1.0cm}
  15. \setlength{\textwidth}{19.2cm}
  16. \setlength{\textheight}{24.5cm}
  17. \setlength{\footskip}{1cm}
  18. \setlength{\parindent}{0pt}
  19. \renewcommand{\baselinestretch}{1}
  20. \begin{document}
  21. \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
  22. \newsavebox{\hdr}
  23. \sbox{\hdr}{
  24.   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  25. \parbox{\textwidth}{
  26. \parbox[b]{12cm}{
  27. <%company%>
  28. <%address%>}\hfill
  29. \begin{tabular}[b]{rr@{}}
  30. <%if tel%>
  31. Tlf. & <%tel%>\\
  32. <%end tel%>
  33. <%if fax%>
  34. Fax & <%fax%>\\
  35. <%end fax%>
  36. <%if businessnumber%>
  37. CVR-nummer: & <%businessnumber%>\\
  38. <%end businessnumber%>
  39. \end{tabular}
  40. \rule[1.5ex]{\textwidth}{0.5pt}
  41. }
  42. }
  43. \fontfamily{cmss}\fontshape{n}\selectfont
  44. \markboth{<%company%>\hfill <%statementdate%>}{\usebox{\hdr}}
  45. \pagestyle{myheadings}
  46. %\thispagestyle{empty} use this with letterhead paper
  47. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  48. \vspace*{1.5cm}
  49. \parbox[t]{1cm}{\hfill}
  50. \parbox[t]{10.5cm}{
  51. <%name%>
  52. <%address1%>
  53. <%if address2%>
  54. <%address2%>
  55. <%end address2%>
  56. <%city%> <%state%> <%zipcode%>
  57. <%if country%>
  58. <%country%>
  59. <%end country%>
  60. }
  61. \parbox[t]{7.5cm}{
  62. <%if customerphone%>
  63. Telefon: <%customerphone%>
  64. <%end customerphone%>
  65. <%if customerfax%>
  66. Fax: <%customerfax%>
  67. <%end customerfax%>
  68. <%email%>
  69. }
  70. \hfill
  71. \vspace{1cm}
  72. \textbf{U D E S T Å E N D E R} \hfill \textbf{<%statementdate%>}
  73. \vspace{2cm}
  74. \begin{tabular*}{\textwidth}{@{}l@{\extracolsep\fill}ccrrrr@{}}
  75. \textbf{Fakturanr.} & \textbf{Dato} & \textbf{Forfald} &
  76. \textbf{Nuværende} & \textbf{30} & \textbf{60} & \textbf{90+} \\
  77. <%foreach invnumber%>
  78. <%invnumber%> & <%invdate%> & <%duedate%> &
  79. <%c0%> & <%c30%> & <%c60%> & <%c90%> \\
  80. <%end invnumber%>
  81. \textbf{Subtotal} & & & <%c0total%> & <%c30total%> & <%c60total%> & <%c90total%>
  82. \end{tabular*}
  83. \rule{\textwidth}{1pt}
  84. \vspace{1cm}
  85. \hfill
  86. \begin{tabularx}{7cm}{Xr@{}}
  87. \textbf{Samlet udestående} & <%total%>
  88. \end{tabularx}
  89. \vfill
  90. Indbetaling bedes ske til Merkur Andelskasse på konto 8401-1028192.
  91. \end{document}