summaryrefslogtreecommitdiff
path: root/templates/demo/statement.tex
blob: b6580af6cc3032873085a12afb44241eb39aae49 (plain)
  1. <?lsmb FILTER latex -?>
  2. \documentclass{scrartcl}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage{tabularx}
  5. \usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry}
  6. \usepackage{graphicx}
  7. \begin{document}
  8. \pagestyle{myheadings}
  9. \thispagestyle{empty}
  10. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  11. <?lsmb INCLUDE letterhead.tex ?>
  12. \parbox[t]{.5\textwidth}{
  13. <?lsmb name ?>
  14. <?lsmb address1 ?>
  15. <?lsmb address2 ?>
  16. <?lsmb city ?>
  17. <?lsmb IF state ?>
  18. \hspace{-0.1cm}, <?lsmb state ?>
  19. <?lsmb END ?>
  20. <?lsmb zipcode ?>
  21. <?lsmb country ?>
  22. }
  23. \parbox[t]{.5\textwidth}{
  24. <?lsmb IF customerphone ?>
  25. Tel: <?lsmb customerphone ?>
  26. <?lsmb END ?>
  27. <?lsmb IF customerfax ?>
  28. Fax: <?lsmb customerfax ?>
  29. <?lsmb END ?>
  30. <?lsmb email ?>
  31. }
  32. \hfill
  33. \vspace{1cm}
  34. \textbf{S T A T E M E N T} \hfill \textbf{<?lsmb statementdate ?>}
  35. \vspace{2cm}
  36. \begin{tabular*}{\textwidth}{|ll@{\extracolsep\fill}ccrrrr|}
  37. \hline
  38. \textbf{Invoice \#} & \textbf{Order \#} & \textbf{Date} & \textbf{Due} &
  39. \textbf{Current} & \textbf{30} & \textbf{60} & \textbf{90} \\
  40. \hline
  41. <?lsmb FOREACH invnumber ?>
  42. <?lsmb lc = loop.count - 1 ?>
  43. <?lsmb invnumber.${lc} ?> &
  44. <?lsmb ordnumber.${lc} ?> &
  45. <?lsmb invdate.${lc} ?> &
  46. <?lsmb duedate.${lc} ?> &
  47. <?lsmb c0.${lc} ?> &
  48. <?lsmb c30.${lc} ?> &
  49. <?lsmb c60.${lc} ?> &
  50. <?lsmb c90.${lc} ?> \\
  51. <?lsmb END ?>
  52. \multicolumn{8}{|l|}{\mbox{}} \\
  53. \hline
  54. \textbf{Subtotal} & & & & <?lsmb c0total ?> & <?lsmb c30total ?> & <?lsmb c60total ?> & <?lsmb c90total ?> \\
  55. \hline
  56. \end{tabular*}
  57. \vspace{0.5cm}
  58. \hfill
  59. \begin{tabularx}{\textwidth}{Xr@{\hspace{1cm}}r@{}}
  60. & \textbf{Total outstanding} & \textbf{<?lsmb total ?>}
  61. \end{tabularx}
  62. \vfill
  63. All amounts in \textbf{<?lsmb currency ?>} funds.
  64. Please make check payable to \textbf{<?lsmb company ?>}
  65. \end{document}
  66. <?lsmb END ?>