summaryrefslogtreecommitdiff
path: root/templates/Service-ap_transaction.tex
blob: be6d5d5993c84b005ae78c7fbc95c2b411239995 (plain)
  1. \documentclass{scrartcl}
  2. \usepackage[latin1]{inputenc}
  3. \usepackage{tabularx}
  4. \usepackage[top=2cm,bottom=1.5cm,left=2cm,right=1cm]{geometry}
  5. \usepackage{graphicx}
  6. \setlength{\parindent}{0pt}
  7. \begin{document}
  8. \pagestyle{empty}
  9. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  10. \parbox{\textwidth}{%
  11.   \parbox[b]{.42\textwidth}{%
  12. <?lsmb company ?>
  13. <?lsmb address ?>
  14. }
  15. \parbox[b]{.2\textwidth}{
  16. \includegraphics[scale=0.3]{ledger-smb}
  17. }\hfill
  18. \begin{tabular}[b]{rr@{}}
  19. Tel: & <?lsmb tel ?>\\
  20. Fax: & <?lsmb fax ?>
  21. \end{tabular}
  22. \rule[1.5em]{\textwidth}{0.5pt}
  23. }
  24. \centerline{\textbf{A P} \hspace{0.3cm} \textbf{T R A N S A C T I O N}}
  25. \vspace*{0.5cm}
  26. \parbox[t]{.5\textwidth}{
  27. <?lsmb name ?>
  28. <?lsmb address1 ?>
  29. <?lsmb address2 ?>
  30. <?lsmb city ?>
  31. <?lsmb if state ?>
  32. , <?lsmb state ?>
  33. <?lsmb end state ?> <?lsmb zipcode ?>
  34. <?lsmb country ?>
  35. \vspace{0.3cm}
  36. <?lsmb if contact ?>
  37. <?lsmb contact ?>
  38. <?lsmb end contact ?>
  39. \vspace{0.2cm}
  40. <?lsmb if vendorphone ?>
  41. Tel: <?lsmb vendorphone ?>
  42. <?lsmb end vendorphone ?>
  43. <?lsmb if vendorfax ?>
  44. Fax: <?lsmb vendorfax ?>
  45. <?lsmb end vendorfax ?>
  46. <?lsmb email ?>
  47. <?lsmb if vendortaxnumber ?>
  48. Tax Number: <?lsmb vendortaxnumber ?>
  49. <?lsmb end vendortaxnumber ?>
  50. }
  51. \hfill
  52. \begin{tabular}[t]{ll}
  53. \textbf{Invoice \#} & <?lsmb invnumber ?> \\
  54. \textbf{Date} & <?lsmb invdate ?> \\
  55. \textbf{Due} & <?lsmb duedate ?> \\
  56. <?lsmb if ponumber ?>
  57. \textbf{PO \#} & <?lsmb ponumber ?> \\
  58. <?lsmb end ponumber ?>
  59. <?lsmb if ordnumber ?>
  60. \textbf{Order \#} & <?lsmb ordnumber ?> \\
  61. <?lsmb end ordnumber ?>
  62. \textbf{Employee} & <?lsmb employee ?> \\
  63. \end{tabular}
  64. \vspace{1cm}
  65. \begin{tabularx}{\textwidth}[t]{@{}llrX@{\hspace{1cm}}l@{}}
  66. <?lsmb foreach amount ?>
  67. <?lsmb accno ?> & <?lsmb account ?> & <?lsmb amount ?> & <?lsmb description ?> & <?lsmb projectnumber ?> \\
  68. <?lsmb end amount ?>
  69. \multicolumn{2}{r}{\textbf{Subtotal}} & <?lsmb subtotal ?> & \\
  70. <?lsmb foreach tax ?>
  71. \multicolumn{2}{r}{\textbf{<?lsmb taxdescription ?> @ <?lsmb taxrate ?> \%}} & <?lsmb tax ?> & \\
  72. <?lsmb end tax ?>
  73. \multicolumn{2}{r}{\textbf{Total}} & <?lsmb invtotal ?> & \\
  74. \end{tabularx}
  75. \vspace{0.3cm}
  76. <?lsmb text_amount ?> ***** <?lsmb decimal ?>/100 <?lsmb currency ?>
  77. <?lsmb if notes ?>
  78. \vspace{0.3cm}
  79. <?lsmb notes ?>
  80. <?lsmb end notes ?>
  81. \vspace{0.3cm}
  82. <?lsmb if paid_1 ?>
  83. \begin{tabular}{@{}llllr@{}}
  84. \multicolumn{5}{c}{\textbf{Payments}} \\
  85. \hline
  86. \textbf{Date} & & \textbf{Source} & \textbf{Memo} & \textbf{Amount} \\
  87. <?lsmb end paid_1 ?>
  88. <?lsmb foreach payment ?>
  89. <?lsmb paymentdate ?> & <?lsmb paymentaccount ?> & <?lsmb paymentsource ?> & <?lsmb paymentmemo ?> & <?lsmb payment ?> \\
  90. <?lsmb end payment ?>
  91. <?lsmb if paid_1 ?>
  92. \end{tabular}
  93. <?lsmb end paid_1 ?>
  94. \end{document}