summaryrefslogtreecommitdiff
path: root/templates/demo/ap_transaction.html
blob: 74d269c7fd3762dcea6588d01befd7a1f5f9a54b (plain)
  1. <body bgcolor=ffffff>
  2. <table width="100%">
  3. <?lsmb INCLUDE letterhead.html ?>
  4. <tr>
  5. <td width=10>&nbsp;</td>
  6. <th colspan=3>
  7. <h4>A P - T R A N S A C T I O N</h4>
  8. </th>
  9. </tr>
  10. <tr>
  11. <td>&nbsp;</td>
  12. <td>
  13. <table width=100% callspacing=0 cellpadding=0>
  14. <tr valign=top>
  15. <td><?lsmb name ?>
  16. <br><?lsmb address1 ?>
  17. <?lsmb IF address2 ?>
  18. <br><?lsmb address2 ?>
  19. <?lsmb END ?>
  20. <br><?lsmb city ?>
  21. <?lsmb IF state ?>
  22. , <?lsmb state ?>
  23. <?lsmb END ?>
  24. <?lsmb zipcode ?>
  25. <?lsmb IF country ?>
  26. <br><?lsmb country ?>
  27. <?lsmb END ?>
  28. <br>
  29. <?lsmb IF contact ?>
  30. <br><?lsmb contact ?>
  31. <br>
  32. <?lsmb END ?>
  33. <?lsmb IF vendorphone ?>
  34. <br>Tel: <?lsmb vendorphone ?>
  35. <?lsmb END ?>
  36. <?lsmb IF vendorfax ?>
  37. <br>Fax: <?lsmb vendorfax ?>
  38. <?lsmb END ?>
  39. <?lsmb IF email ?>
  40. <br><?lsmb email ?>
  41. <?lsmb END ?>
  42. <?lsmb IF vendortaxnumber ?>
  43. <p>Taxnumber: <?lsmb vendortaxnumber ?>
  44. <?lsmb END ?>
  45. </td>
  46. <td align=right>
  47. <table>
  48. <tr>
  49. <th align=left nowrap>Invoice #</th>
  50. <td><?lsmb invnumber ?></td>
  51. </tr>
  52. <tr>
  53. <th align=left nowrap>Date</th>
  54. <td><?lsmb invdate ?></td>
  55. </tr>
  56. <tr>
  57. <th align=left nowrap>Due</th>
  58. <td><?lsmb duedate ?></td>
  59. </tr>
  60. <?lsmb IF ponumber ?>
  61. <tr>
  62. <th align=left>PO #</th>
  63. <td><?lsmb ponumber ?>&nbsp;</td>
  64. </tr>
  65. <?lsmb END ?>
  66. <?lsmb IF ordnumber ?>
  67. <tr>
  68. <th align=left>Order #</th>
  69. <td><?lsmb ordnumber ?>&nbsp;</td>
  70. </tr>
  71. <?lsmb END ?>
  72. <tr>
  73. <th align=left nowrap>Employee</th>
  74. <td><?lsmb employee ?>&nbsp;</td>
  75. </tr>
  76. </table>
  77. </td>
  78. </tr>
  79. </table>
  80. </td>
  81. </tr>
  82. <tr height=5></tr>
  83. <tr>
  84. <td>&nbsp;</td>
  85. <td>
  86. <table>
  87. <?lsmb FOREACH account ?>
  88. <?lsmb loop_count = loop.count - 1 ?>
  89. <tr valign=top>
  90. <td><?lsmb accno.${loop_count} ?></td>
  91. <td><?lsmb account.${loop_count} ?></td>
  92. <td width=10> </td>
  93. <td align=right><?lsmb amount.${loop_count} ?></td>
  94. <td width=10> </td>
  95. <td><?lsmb description.${loop_count} ?></td>
  96. <td width=10> </td>
  97. <td><?lsmb projectnumber.${loop_count} ?></td>
  98. </tr>
  99. <?lsmb END ?>
  100. <tr>
  101. <?lsmb IF taxincluded ?>
  102. <th colspan=2 align=right>Total</th>
  103. <td width=10> </td>
  104. <td align=right><?lsmb invtotal ?></td>
  105. <?lsmb ELSE ?>
  106. <th colspan=2 align=right>Subtotal</th>
  107. <td width=10> </td>
  108. <td align=right><?lsmb subtotal ?></td>
  109. <?lsmb END ?>
  110. </tr>
  111. <?lsmb FOREACH tax ?>
  112. <?lsmb loop_count = loop.count - 1 ?>
  113. <tr>
  114. <th colspan=2 align=right><?lsmb taxdescription.${loop_count} ?> @ <?lsmb taxrate.${loop_count} ?> %</th>
  115. <td width=10> </td>
  116. <td align=right><?lsmb tax.${loop_count} ?></td>
  117. </tr>
  118. <?lsmb END ?>
  119. <?lsmb IF NOT taxincluded ?>
  120. <tr>
  121. <th colspan=2 align=right>Total</th>
  122. <td width=10> </td>
  123. <td align=right><?lsmb invtotal ?></td>
  124. </tr>
  125. <?lsmb END ?>
  126. </table>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td>&nbsp;</td>
  131. <td>
  132. <?lsmb text_amount ?> ***** <?lsmb decimal ?>/100 <?lsmb currency ?>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td>&nbsp;</td>
  137. <td>
  138. <?lsmb notes ?>
  139. </td>
  140. </tr>
  141. <?lsmb IF paid_1 ?>
  142. <tr>
  143. <td>&nbsp;</td>
  144. <td>
  145. <table>
  146. <tr>
  147. <th>Payments</th>
  148. </tr>
  149. <tr>
  150. <td>
  151. <hr noshade>
  152. </td>
  153. </tr>
  154. <tr>
  155. <td>
  156. <table>
  157. <tr>
  158. <th>Date</th>
  159. <th>&nbsp;</th>
  160. <th>Source</th>
  161. <th>Memo</th>
  162. <th>Amount</th>
  163. </tr>
  164. <?lsmb END ?>
  165. <?lsmb FOREACH payment ?>
  166. <?lsmb loop_count = loop.count - 1 ?>
  167. <tr>
  168. <td><?lsmb paymentdate.${loop_count} ?></td>
  169. <td><?lsmb paymentaccount.${loop_count} ?></td>
  170. <td><?lsmb paymentsource.${loop_count} ?></td>
  171. <td><?lsmb paymentmemo.${loop_count} ?></td>
  172. <td align=right><?lsmb payment.${loop_count} ?></td>
  173. </tr>
  174. <?lsmb END ?>
  175. <?lsmb IF paid_1 ?>
  176. </table>
  177. </td>
  178. </tr>
  179. </table>
  180. </td>
  181. </tr>
  182. <?lsmb END ?>
  183. <tr height=10></tr>
  184. <?lsmb IF taxincluded ?>
  185. <tr>
  186. <td>&nbsp;</td>
  187. </tr>
  188. <tr>
  189. <th colspan=3 align=left><font size=-2>Taxes shown are included in price.</th>
  190. </tr>
  191. <?lsmb END ?>
  192. </table>
  193. </body>
  194. </html>