summaryrefslogtreecommitdiff
path: root/templates/spiff-en/invoice.tex.old
blob: c1f969f585eae72279acbd2236324f74cd1d2b2c (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]{rr@{}}
  28. Telephone & <%tel%>\\
  29. Facsimile & <%fax%>
  30. \end{tabular}
  31. \rule[1.5ex]{\textwidth}{0.5pt}
  32. }
  33. }
  34. \fontfamily{cmss}\fontshape{n}\selectfont
  35. \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
  36. \pagestyle{myheadings}
  37. %\thispagestyle{empty} use this with letterhead paper
  38. <%pagebreak 90 27 48%>
  39. \end{tabular*}
  40. \rule{\textwidth}{2pt}
  41. \hfill
  42. \begin{tabularx}{7cm}{Xr@{}}
  43. \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
  44. \end{tabularx}
  45. \newpage
  46. \markright{<%company%>\hfill <%invnumber%>}
  47. \vspace*{-12pt}
  48. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  49. \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  50. \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
  51. & carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\
  52. <%end pagebreak%>
  53. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  54. \vspace*{2cm}
  55. <%name%>
  56. <%addr1%>
  57. <%addr2%>
  58. <%addr3%>
  59. <%addr4%>
  60. \vspace{3.5cm}
  61. \textbf{I N V O I C E}
  62. \hfill
  63. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  64. \textbf{Date} & <%invdate%> \\
  65. \textbf{Number} & <%invnumber%> \\
  66. \textbf{Customer} & <%customer_id%>
  67. \end{tabular}
  68. \vspace{1cm}
  69. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  70. \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  71. \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
  72. <%foreach number%>
  73. <%number%> & <%description%> & <%qty%> &
  74. <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
  75. <%end number%>
  76. \end{tabular*}
  77. \parbox{\textwidth}{
  78. \rule{\textwidth}{2pt}
  79. \vspace{0.2cm}
  80. \hfill
  81. \begin{tabularx}{7cm}{Xr@{}}
  82. \textbf{Subtotal} & \textbf{<%subtotal%>} \\
  83. <%foreach tax%>
  84. <%taxdescription%> on <%taxbase%> & <%tax%> \\
  85. <%end tax%>
  86. <%if paid%>
  87. \textbf{Paid} & - <%paid%> \\
  88. <%end paid%>
  89. \hline
  90. \textbf{Balance Owing} & \textbf{<%total%>} \\
  91. \end{tabularx}
  92. \vspace{0.3cm}
  93. \hfill
  94. All prices in \textbf{<%currency%>} funds.
  95. \vspace{12pt}
  96. <%if notes%>
  97. <%notes%>
  98. <%end if%>
  99. }
  100. \vfill
  101. \centerline{\textbf{Payments within Denmark:}}
  102. \centerline{\textbf{Please transfer directly to Merkur Andelskasse, bank account 8401-1028192}}
  103. \centerline{\textbf{International payments:}}
  104. \centerline{\textbf{Please transfer directly to Ringkjobing Bank, Torvet 2, 6959 Ringkobing}}
  105. \centerline{\textbf{SWIFT code: RIBADK22, account: 076600784011}}
  106. \centerline{\textbf{Add "To Spiff ApS (8401-1028192) from \textbf{<%name%>}" as text.}}
  107. \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  108. \footnotetext[1]{\tiny
  109. Payment due NET <%terms%> Days from date of Invoice. Interest on overdue
  110. amounts will acrue at the rate of 1.5\% per month starting <%duedate%>
  111. until paid in full. Items returned are subject to a 10\% restocking charge.
  112. A return authorization must be obtained from <%company%> before goods are
  113. returned. Returns must be shipped prepaid and properly insured.
  114. <%company%> will not be responsible for damages during transit.}
  115. \end{document}