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