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