summaryrefslogtreecommitdiff
path: root/templates/Service-invoice.tex
blob: 889e4dc8f9891a0afd76c4546f5cdd27971c8471 (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. <?lsmb company ?>
  26. <?lsmb address ?>}\hfill
  27. \begin{tabular}[b]{rr@{}}
  28. Telephone & <?lsmb tel ?>\\
  29. Facsimile & <?lsmb fax ?>
  30. \end{tabular}
  31. \rule[1.5ex]{\textwidth}{0.5pt}
  32. }
  33. }
  34. \fontfamily{cmss}\fontshape{n}\selectfont
  35. \markboth{<?lsmb company ?>\hfill <?lsmb invnumber ?>}{\usebox{\hdr}}
  36. \pagestyle{myheadings}
  37. %\thispagestyle{empty} use this with letterhead paper
  38. <?lsmb pagebreak 65 27 37 ?>
  39. \end{tabular*}
  40. \rule{\textwidth}{2pt}
  41. \hfill
  42. \begin{tabularx}{7cm}{Xr@{}}
  43. \textbf{Subtotal} & \textbf{<?lsmb sumcarriedforward ?>} \\
  44. \end{tabularx}
  45. \newpage
  46. \markright{<?lsmb company ?>\hfill <?lsmb invnumber ?>}
  47. \vspace*{-12pt}
  48. \begin{tabular*}{\textwidth}{@{}p{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  49. \textbf{Description} & \textbf{Qt'y} &
  50. \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
  51. & carried forward from <?lsmb lastpage ?> & & & & <?lsmb sumcarriedforward ?> \\
  52. <?lsmb end pagebreak ?>
  53. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  54. \vspace*{2cm}
  55. <?lsmb name ?>
  56. <?lsmb address1 ?>
  57. <?lsmb if address2 ?>
  58. <?lsmb address2 ?>
  59. <?lsmb end address2 ?>
  60. <?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
  61. <?lsmb if country ?>
  62. <?lsmb country ?>
  63. <?lsmb end country ?>
  64. \vspace{3.5cm}
  65. \textbf{I N V O I C E}
  66. \hfill
  67. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  68. \textbf{Date} & <?lsmb invdate ?> \\
  69. \textbf{Number} & <?lsmb invnumber ?> \\
  70. \textbf{Customer} & <?lsmb customer_id ?>
  71. \end{tabular}
  72. \vspace{1cm}
  73. \begin{tabular*}{\textwidth}{@{}p{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  74. \textbf{Description} & \textbf{Qt'y} &
  75. \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
  76. <?lsmb foreach number ?>
  77. <?lsmb description ?> & <?lsmb qty ?> &
  78. <?lsmb unit ?> & <?lsmb sellprice ?> & <?lsmb linetotal ?> \\
  79. <?lsmb end number ?>
  80. \end{tabular*}
  81. \parbox{\textwidth}{
  82. \rule{\textwidth}{2pt}
  83. \vspace{0.2cm}
  84. \hfill
  85. \begin{tabularx}{7cm}{Xr@{}}
  86. \textbf{Subtotal} & \textbf{<?lsmb subtotal ?>} \\
  87. <?lsmb foreach tax ?>
  88. <?lsmb taxdescription ?> on <?lsmb taxbase ?> & <?lsmb tax ?> \\
  89. <?lsmb end tax ?>
  90. <?lsmb if paid ?>
  91. \textbf{Paid} & - <?lsmb paid ?> \\
  92. <?lsmb end paid ?>
  93. \hline
  94. \textbf{Balance Owing} & \textbf{<?lsmb total ?>} \\
  95. \end{tabularx}
  96. \vspace{0.3cm}
  97. \hfill
  98. All prices in \textbf{<?lsmb currency ?>} funds.
  99. \vspace{12pt}
  100. <?lsmb if notes ?>
  101. <?lsmb notes ?>
  102. <?lsmb end if ?>
  103. }
  104. \vfill
  105. \centerline{\textbf{Thank You for your valued business!}}
  106. \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  107. \footnotetext[1]{\tiny
  108. Payment due NET <?lsmb terms ?> Days from date of Invoice. Interest on overdue
  109. amounts will acrue at the rate of 1.5\% per month starting <?lsmb duedate ?>
  110. until paid in full.
  111. }
  112. \end{document}