summaryrefslogtreecommitdiff
path: root/templates/demo/invoice.html
blob: 3b2a08dc9e94f23ccaff2b7dc7505f520706b62f (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>I N V O I C E</h4>
  8. </th>
  9. </tr>
  10. <tr>
  11. <td>&nbsp;</td>
  12. <td>
  13. <table width=100% callspacing=0 cellpadding=0>
  14. <tr bgcolor=000000>
  15. <th align=left width="50%"><font color=ffffff>To</th>
  16. <th align=left width="50%"><font color=ffffff>Ship To</th>
  17. </tr>
  18. <tr valign=top>
  19. <td><?lsmb name ?>
  20. <br><?lsmb address1 ?>
  21. <?lsmb IF address2 ?>
  22. <br><?lsmb address2 ?>
  23. <?lsmb END ?>
  24. <br><?lsmb city ?>
  25. <?lsmb IF state ?>
  26. , <?lsmb state ?>
  27. <?lsmb END ?>
  28. <?lsmb zipcode ?>
  29. <?lsmb IF country ?>
  30. <br><?lsmb country ?>
  31. <?lsmb END ?>
  32. <br>
  33. <?lsmb IF contact ?>
  34. <br><?lsmb contact ?>
  35. <br>
  36. <?lsmb END ?>
  37. <?lsmb IF customerphone ?>
  38. <br>Tel: <?lsmb customerphone ?>
  39. <?lsmb END ?>
  40. <?lsmb IF customerfax ?>
  41. <br>Fax: <?lsmb customerfax ?>
  42. <?lsmb END ?>
  43. <?lsmb IF email ?>
  44. <br><?lsmb email ?>
  45. <?lsmb END ?>
  46. </td>
  47. <td><?lsmb shiptoname ?>
  48. <br><?lsmb shiptoaddress1 ?>
  49. <?lsmb IF shiptoaddress2 ?>
  50. <br><?lsmb shiptoaddress2 ?>
  51. <?lsmb END ?>
  52. <br><?lsmb shiptocity ?>
  53. <?lsmb IF shiptostate ?>
  54. , <?lsmb shiptostate ?>
  55. <?lsmb END ?>
  56. <?lsmb shiptozipcode ?>
  57. <?lsmb IF shiptocountry ?>
  58. <br><?lsmb shiptocountry ?>
  59. <?lsmb END ?>
  60. <br>
  61. <?lsmb IF shiptocontact ?>
  62. <br><?lsmb shiptocontact ?>
  63. <br>
  64. <?lsmb END ?>
  65. <?lsmb IF shiptophone ?>
  66. <br>Tel: <?lsmb shiptophone ?>
  67. <?lsmb END ?>
  68. <?lsmb IF shiptofax ?>
  69. <br>Fax: <?lsmb shiptofax ?>
  70. <?lsmb END ?>
  71. <?lsmb IF shiptoemail ?>
  72. <br><?lsmb shiptoemail ?>
  73. <?lsmb END ?>
  74. </td>
  75. </tr>
  76. </table>
  77. </td>
  78. </tr>
  79. <tr height=5></tr>
  80. <tr>
  81. <td>&nbsp;</td>
  82. <td>
  83. <table width=100% border=1>
  84. <tr>
  85. <th width=14% align=left nowrap>Invoice #</th>
  86. <th width=14% align=left nowrap>Date</th>
  87. <th width=14% align=left nowrap>Due</th>
  88. <th width=14% align=left>Order #</th>
  89. <th width=14% align=left nowrap>Salesperson</th>
  90. <th width=14% align=left nowrap>Shipping Point</th>
  91. <th width=14% align=left nowrap>Ship via</th>
  92. </tr>
  93. <tr>
  94. <td><?lsmb invnumber ?></td>
  95. <td><?lsmb invdate ?></td>
  96. <td><?lsmb duedate ?></td>
  97. <td><?lsmb ordnumber ?>&nbsp;</td>
  98. <td><?lsmb employee ?>&nbsp;</td>
  99. <td><?lsmb shippingpoint ?>&nbsp;</td>
  100. <td><?lsmb shipvia ?>&nbsp;</td>
  101. </tr>
  102. </table>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td>&nbsp;</td>
  107. <td>
  108. <table width="100%">
  109. <tr bgcolor=000000>
  110. <th align=right><font color=ffffff>Item</th>
  111. <th align=left><font color=ffffff>Number</th>
  112. <th align=left><font color=ffffff>Description</th>
  113. <th>&nbsp;</th>
  114. <th align=right><font color=ffffff>Qt'y</th>
  115. <th>&nbsp;</th>
  116. <th align=right><font color=ffffff>Unit Price</th>
  117. <th align=right><font color=ffffff>Disc %</th>
  118. <th align=right><font color=ffffff>Extended</th>
  119. </tr>
  120. <?lsmb FOREACH number ?>
  121. <?lsmb loop_count = loop.count - 1 ?>
  122. <tr valign=top>
  123. <td align=right><?lsmb runningnumber.${loop_count} ?>.</td>
  124. <td><?lsmb number.${loop_count} ?></td>
  125. <td><?lsmb description.${loop_count} ?></td>
  126. <td><?lsmb deliverydate.${loop_count} ?></td>
  127. <td align=right><?lsmb qty.${loop_count} ?></td>
  128. <td><?lsmb unit.${loop_count} ?></td>
  129. <td align=right><?lsmb sellprice.${loop_count} ?></td>
  130. <td align=right><?lsmb discountrate.${loop_count} ?></td>
  131. <td align=right><?lsmb linetotal.${loop_count} ?></td>
  132. </tr>
  133. <?lsmb END ?>
  134. <tr>
  135. <td colspan=9><hr noshade></td>
  136. </tr>
  137. <tr>
  138. <?lsmb IF taxincluded ?>
  139. <th colspan=7 align=right>Total</th>
  140. <td colspan=2 align=right><?lsmb invtotal ?></td>
  141. <?lsmb ELSE ?>
  142. <th colspan=7 align=right>Subtotal</th>
  143. <td colspan=2 align=right><?lsmb subtotal ?></td>
  144. <?lsmb END ?>
  145. </tr>
  146. <?lsmb FOREACH tax ?>
  147. <?lsmb loop_count = loop.count - 1 ?>
  148. <tr>
  149. <th colspan=7 align=right><?lsmb taxdescription.${loop_count} ?> on <?lsmb taxbase.${loop_count} ?> @ <?lsmb taxrate.${loop_count} ?> %</th>
  150. <td colspan=2 align=right><?lsmb tax.${loop_count} ?></td>
  151. </tr>
  152. <?lsmb END ?>
  153. <?lsmb IF paid ?>
  154. <tr>
  155. <th colspan=7 align=right>Paid</th>
  156. <td colspan=2 align=right>- <?lsmb paid ?></td>
  157. </tr>
  158. <?lsmb END ?>
  159. <tr>
  160. <td colspan=5>&nbsp;</td>
  161. <td colspan=4><hr noshade></td>
  162. </tr>
  163. <?lsmb IF total ?>
  164. <tr>
  165. <td colspan=5>&nbsp;</td>
  166. <th colspan=2 align=right nowrap>Balance Due</th>
  167. <th colspan=2 align=right><?lsmb total ?></th>
  168. </tr>
  169. <?lsmb END ?>
  170. <tr>
  171. </table>
  172. </td>
  173. </tr>
  174. <tr>
  175. <td>&nbsp;</td>
  176. <td>
  177. <table width="100%">
  178. <tr valign=top>
  179. <?lsmb IF notes ?>
  180. <td><?lsmb notes ?></td>
  181. <?lsmb END ?>
  182. <td><?lsmb text_amount ?> ***** <?lsmb decimal ?>/100</td>
  183. <td align=right nowrap>
  184. All prices in <b><?lsmb currency ?></b>
  185. </td>
  186. </tr>
  187. </table>
  188. </td>
  189. </tr>
  190. <?lsmb IF paid_1 ?>
  191. <tr>
  192. <td>&nbsp;</td>
  193. <td colspan=9>
  194. <table width="60%">
  195. <tr>
  196. <th align=left>Payments</th>
  197. </tr>
  198. <tr>
  199. <td colspan=4>
  200. <hr noshade>
  201. </td>
  202. </tr>
  203. <tr>
  204. <th align=left>Date</th>
  205. <th align=left>Account</th>
  206. <th align=left>Source</th>
  207. <th align=left>Amount</th>
  208. </tr>
  209. <?lsmb END ?>
  210. <?lsmb FOREACH payment ?>
  211. <?lsmb loop_count = loop.count - 1 ?>
  212. <tr>
  213. <td><?lsmb paymentdate.${loop_count} ?></td>
  214. <td><?lsmb paymentaccount.${loop_count} ?></td>
  215. <td><?lsmb paymentsource.${loop_count} ?></td>
  216. <td><?lsmb payment.${loop_count} ?></td>
  217. </tr>
  218. <?lsmb END ?>
  219. <?lsmb IF paid_1 ?>
  220. </table>
  221. </td>
  222. </tr>
  223. <?lsmb END ?>
  224. <tr height=10></tr>
  225. <tr>
  226. <td>&nbsp;</td>
  227. <th>
  228. Thank you for your valued business!
  229. </th>
  230. </tr>
  231. <tr>
  232. <td>&nbsp;</td>
  233. <td>
  234. <table width="100%">
  235. <tr valign=top>
  236. <td width="60%"><font size=-3>
  237. Payment due by <?lsmb duedate ?>.
  238. Items returned are subject to a 10% restocking charge. A return authorization must be obtained from <?lsmb company ?> before goods are returned. Returns must be shipped prepaid and properly insured. <?lsmb company ?> will not be responsible for damages during transit.
  239. </font>
  240. </td>
  241. <td width="40%">
  242. X <hr noshade>
  243. </td>
  244. </tr>
  245. </table>
  246. </td>
  247. </tr>
  248. <?lsmb FOREACH tax ?>
  249. <?lsmb loop_count = loop.count - 1 ?>
  250. <tr>
  251. <td>&nbsp;</td>
  252. <th colspan=9 align=left><font size=-2><?lsmb taxdescription.${loop_count} ?> Registration <?lsmb taxnumber.${loop_count} ?></th>
  253. </tr>
  254. <?lsmb END ?>
  255. <?lsmb IF taxincluded ?>
  256. <tr>
  257. <td>&nbsp;</td>
  258. </tr>
  259. <tr>
  260. <th colspan=8 align=left><font size=-2>Taxes shown are included in price.</th>
  261. </tr>
  262. <?lsmb END ?>
  263. </table>
  264. </body>
  265. </html>