summaryrefslogtreecommitdiff
path: root/templates/demo/purchase_order.html
blob: 228c0fe5d78dbc43faf4a20918eeab58d351f439 (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>P U R C H A S E &nbsp;&nbsp; O R D E R</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>Attn: <?lsmb contact ?>
  35. <?lsmb END ?>
  36. <?lsmb IF vendorphone ?>
  37. <br>Tel: <?lsmb vendorphone ?>
  38. <?lsmb END ?>
  39. <?lsmb IF vendorfax ?>
  40. <br>Fax: <?lsmb vendorfax ?>
  41. <?lsmb END ?>
  42. </td>
  43. <td><?lsmb shiptoname ?>
  44. <br><?lsmb shiptoaddress1 ?>
  45. <?lsmb IF shiptoaddress2 ?>
  46. <br><?lsmb shiptoaddress2 ?>
  47. <?lsmb END ?>
  48. <br><?lsmb shiptocity ?>
  49. <?lsmb IF shiptostate ?>
  50. , <?lsmb shiptostate ?>
  51. <?lsmb END ?>
  52. <?lsmb shiptozipcode ?>
  53. <?lsmb IF shiptocountry ?>
  54. <br><?lsmb shiptocountry ?>
  55. <?lsmb END ?>
  56. <br>
  57. <?lsmb IF shiptocontact ?>
  58. <br>Attn: <?lsmb shiptocontact ?>
  59. <?lsmb END ?>
  60. <?lsmb IF shiptophone ?>
  61. <br>Tel: <?lsmb shiptophone ?>
  62. <?lsmb END ?>
  63. <?lsmb IF shiptofax ?>
  64. <br>Fax: <?lsmb shiptofax ?>
  65. <?lsmb END ?>
  66. </td>
  67. </tr>
  68. </table>
  69. </td>
  70. </tr>
  71. <tr height=5></tr>
  72. <tr>
  73. <td>&nbsp;</td>
  74. <td>
  75. <table width=100% border=1>
  76. <tr>
  77. <th width=17% align=left>Order #</th>
  78. <th width=17% align=left>Order Date</th>
  79. <th width=17% align=left>Required by</th>
  80. <th width=17% align=left>Contact</th>
  81. <th width=17% align=left>Shipping Point</th>
  82. <th width=15% align=left>Ship Via</th>
  83. </tr>
  84. <tr>
  85. <td><?lsmb ordnumber ?></td>
  86. <td><?lsmb orddate ?></td>
  87. <td><?lsmb reqdate ?></td>
  88. <td><?lsmb employee ?></td>
  89. <td><?lsmb shippingpoint ?>&nbsp;</td>
  90. <td><?lsmb shipvia ?>&nbsp;</td>
  91. </tr>
  92. </table>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td>
  97. <table width="100%">
  98. <tr bgcolor=000000>
  99. <th align=right><font color=ffffff>Item</th>
  100. <th align=left><font color=ffffff>Number</th>
  101. <th align=left><font color=ffffff>Description</th>
  102. <th><font color=ffffff>Qt'y</th>
  103. <th>&nbsp;</th>
  104. <th><font color=ffffff>Price</th>
  105. <th><font color=ffffff>%</th>
  106. <th><font color=ffffff>Amount</th>
  107. </tr>
  108. <?lsmb FOREACH number ?>
  109. <?lsmb loop_count = loop.count - 1 ?>
  110. <tr valign=top>
  111. <td align=right><?lsmb runningnumber.${loop_count} ?>.</td>
  112. <td><?lsmb number.${loop_count} ?></td>
  113. <td><?lsmb description.${loop_count} ?></td>
  114. <td align=right><?lsmb qty.${loop_count} ?></td>
  115. <td><?lsmb unit.${loop_count} ?></td>
  116. <td align=right><?lsmb sellprice.${loop_count} ?></td>
  117. <td align=right><?lsmb discountrate.${loop_count} ?></th>
  118. <td align=right><?lsmb linetotal.${loop_count} ?></td>
  119. </tr>
  120. <?lsmb END ?>
  121. <tr>
  122. <td colspan=8><hr noshade></td>
  123. </tr>
  124. <tr>
  125. <?lsmb IF taxincluded ?>
  126. <th colspan=7 align=right>Total</th>
  127. <th colspan=1 align=right><?lsmb ordtotal ?></th>
  128. <?lsmb ELSE ?>
  129. <th colspan=7 align=right>Subtotal</th>
  130. <td colspan=1 align=right><?lsmb subtotal ?></td>
  131. <?lsmb END ?>
  132. </tr>
  133. <?lsmb FOREACH tax ?>
  134. <?lsmb loop_count = loop.count - 1 ?>
  135. <tr>
  136. <th colspan=7 align=right><?lsmb taxdescription.${loop_count} ?> on <?lsmb taxbase.${loop_count} ?> @ <?lsmb taxrate.${loop_count} ?> %</th>
  137. <td colspan=1 align=right><?lsmb tax.${loop_count} ?></td>
  138. </tr>
  139. <?lsmb END ?>
  140. <tr>
  141. <td colspan=4>&nbsp;</td>
  142. <td colspan=4><hr noshade></td>
  143. </tr>
  144. <?lsmb IF NOT taxincluded ?>
  145. <th colspan=7 align=right>Total</th>
  146. <td colspan=1 align=right><?lsmb ordtotal ?></td>
  147. <?lsmb END ?>
  148. <?lsmb IF terms ?>
  149. <tr>
  150. <td colspan=4>Terms Net <b><?lsmb terms ?></b> days</td>
  151. <th colspan=3 align=right>Total</th>
  152. <th colspan=1 align=right><?lsmb ordtotal ?></th>
  153. </tr>
  154. <?lsmb END ?>
  155. <?lsmb IF taxincluded ?>
  156. <tr>
  157. <td colspan=2>Tax included</td>
  158. </tr>
  159. <?lsmb END ?>
  160. <tr>
  161. <td>&nbsp;</td>
  162. </tr>
  163. <?lsmb IF ordtotal ?>
  164. <tr>
  165. <td colspan=8 align=right>
  166. All prices in <b><?lsmb currency ?></b> Funds
  167. </td>
  168. </tr>
  169. <?lsmb END ?>
  170. </table>
  171. </td>
  172. </tr>
  173. <?lsmb IF notes ?>
  174. <tr>
  175. <td>&nbsp;</td>
  176. <td>
  177. <table width="100%">
  178. <tr valign=top>
  179. <td>Notes</td>
  180. <td><?lsmb notes ?></td>
  181. </tr>
  182. </table>
  183. </td>
  184. </tr>
  185. <?lsmb END ?>
  186. <tr>
  187. <td>&nbsp;</td>
  188. <td>
  189. <table width="100%">
  190. <tr valign=top>
  191. <td width="70%">&nbsp;</td>
  192. <td width="30%">
  193. X <hr noshade>
  194. </td>
  195. </tr>
  196. </table>
  197. </td>
  198. </tr>
  199. </table>
  200. </body>
  201. </html>