summaryrefslogtreecommitdiff
path: root/UI/orders/order.html
blob: fe8b6474cf5aba3188b7ab4405f067bc29823eae (plain)
  1. <?lsmb INCLUDE 'ui-header.html' ?>
  2. <?lsmb PROCESS elements.html # Form elements helper template ?>
  3. <body id="sales-invoice-body" onload="document.forms[0].partnumber_1.focus()">
  4. <form method="post" action="<?lsmb script ?>">
  5. <?lsmb
  6. FOREACH hidden_element IN form_elements.hidden_elements;
  7. PROCESS input element_data=hidden_element;
  8. END;
  9. ?>
  10. <table class="main-table">
  11. <tr id="top-bar" class="listtop">
  12. <th id="top-bar-header" class="listtop" colspan="4"><label id="top-bar-label"><?lsmb title ?></label></th>
  13. </tr>
  14. <tr>
  15. <td id="customer-info-column">
  16. <table id="customer-info-table">
  17. <tr id="customer-row">
  18. <td id="customer-label-column" class="label-left"><?lsmb text('Customer') ?></td>
  19. <td id="customer-column">
  20. <?lsmb IF form_elements.customer.type == 'select';
  21. PROCESS select element_data=form_elements.customer;
  22. ELSE;
  23. PROCESS input element_data=form_elements.customer;
  24. END ?>
  25. </td>
  26. </tr>
  27. <tr id="credit-limit-remaining-row">
  28. <td>&nbsp;</td>
  29. <td id="credit-limit-remaining-column">
  30. <div id="credit-limit-container" class="container-inline">
  31. <label id="credit-limit-label" class="label-left"><?lsmb text('Credit Limit') ?></label>
  32. <?lsmb creditlimit ?>
  33. <label id="remaining-label" class="label-left"><?lsmb text('Remaining') ?></label>
  34. <?lsmb creditremaining ?>
  35. </div>
  36. </td>
  37. </tr>
  38. <tr id="AR-row">
  39. <td id="AR-label-column" class="label-left"><?lsmb text('Record in') ?></td>
  40. <td id="AR-column">
  41. <?lsmb PROCESS select element_data=form_elements.AR ?>
  42. </td>
  43. </tr>
  44. <tr id="currency-exchangerate-row">
  45. <td id="currency-exchangerate-label-column" class="label-left"><?lsmb text('Currency') ?></td>
  46. <td id="currency-exchangerate-column">
  47. <div id="currency-exchangerate-container" class="container-inline">
  48. <?lsmb PROCESS select element_data=form_elements.currency ?>
  49. <?lsmb
  50. IF exchangerate;
  51. '<label id="exchangerate-label" class="label-left">' _ text('Exchange Rate') _ '</label>';
  52. PROCESS input element_data=form_elements.exchangerate;
  53. END;
  54. ?>
  55. </div>
  56. </td>
  57. </tr>
  58. <tr id="shippingpoint-row">
  59. <td id="shippingpoint-label-column" class="label-left"><?lsmb text('Shipping Point') ?></td>
  60. <td id="shippingpoint-column">
  61. <?lsmb PROCESS input element_data=form_elements.shippingpoint ?>
  62. </td>
  63. </tr>
  64. <tr id="shipvia-row">
  65. <td id="shipvia-label-column" class="label-left"><?lsmb text('Ship via') ?></td>
  66. <td id="shipvia-column">
  67. <?lsmb PROCESS input element_data=form_elements.shipvia ?>
  68. </td>
  69. </tr>
  70. </table>
  71. </td>
  72. <td id="invoice-info-column">
  73. <table id="invoice-info-table">
  74. <tr id="invnumber-row">
  75. <td id="invnumber-label-column" class="label-left"><?lsmb text('Invoice Number') ?></td>
  76. <td id="invnumber-column">
  77. <?lsmb PROCESS input element_data=form_elements.invnumber ?>
  78. </td>
  79. </tr>
  80. <tr id="ordnumber-row">
  81. <td id="ordnumber-label-column" class="label-left"><?lsmb text('Order Number') ?></td>
  82. <td id="ordnumber-column">
  83. <?lsmb PROCESS input element_data=form_elements.ordnumber ?>
  84. </td>
  85. </tr>
  86. <tr id="transdate-row">
  87. <td id="transdate-label-column" class="label-left"><?lsmb text('Invoice Date') ?></td>
  88. <td id="transdate-column">
  89. <?lsmb PROCESS input element_data=form_elements.transdate ?>
  90. </td>
  91. </tr>
  92. <tr id="duedate-row">
  93. <td id="duedate-label-column" class="label-left"><?lsmb text('Due Date') ?></td>
  94. <td id="duedate-column">
  95. <?lsmb PROCESS input element_data=form_elements.duedate ?>
  96. </td>
  97. </tr>
  98. <tr id="ponumber-row">
  99. <td id="ponumber-label-column" class="label-left"><?lsmb text('PO Number') ?></td>
  100. <td id="ponumber-column">
  101. <?lsmb PROCESS input element_data=form_elements.ponumber ?>
  102. </td>
  103. </tr>
  104. </table>
  105. </td>
  106. </tr>
  107. </table>
  108. <table id="items-table" class="main-table">
  109. <tr id="items-header-row" class="listheading">
  110. <?lsmb FOREACH column_name IN form_elements.line_item_columns ?>
  111. <th id="items-<?lsmb column_name ?>-header" class="listheading"><?lsmb form_elements.line_item_column_data.$column_name ?></th>
  112. <?lsmb END ?>
  113. </tr>
  114. <?lsmb FOREACH line_item IN form_elements.line_items ?>
  115. <tr class="item-row">
  116. <?lsmb FOREACH column_name IN form_elements.line_item_columns ?>
  117. <td class="<?lsmb column_name ?>-column">
  118. <?lsmb
  119. IF column_name == 'description' && line_item.description.defined('text');
  120. PROCESS textarea element_data=line_item.description;
  121. ELSE;
  122. PROCESS input element_data=line_item.$column_name;
  123. END;
  124. ?>
  125. <?lsmb
  126. IF line_item.$column_name.defined('skunumber');
  127. PROCESS label element_data=line_item.$column_name.sku;
  128. line_item.$column_name.skunumber;
  129. END;
  130. ?>
  131. </td>
  132. <?lsmb END ?>
  133. </tr>
  134. <?lsmb IF line_item.notes.size ?>
  135. <tr class="notes-row">
  136. <td colspan="2" class="delvar-column">
  137. <?lsmb PROCESS input element_data=line_item.delvar ?>
  138. </td>
  139. <td class="notes-column">
  140. <?lsmb
  141. IF line_item.notes.defined('text');
  142. PROCESS textarea element_data=line_item.notes;
  143. ELSE;
  144. PROCESS input element_data=line_item.notes;
  145. END;
  146. ?>
  147. </td>
  148. <?lsmb IF line_item.serialnumber.size ?>
  149. <td colspan="6" class="serialnumber-column">
  150. <?lsmb PROCESS input element_data=line_item.serialnumber ?>
  151. </td>
  152. <?lsmb END ?>
  153. </tr>
  154. <?lsmb END ?>
  155. <?lsmb IF line_item.projectnumber.size || line_item.partsgroup.size ?>
  156. <tr class="project-row">
  157. <td colspan="<?lsmb form_elements.line_item_columns.size ?>" class="project-column">
  158. <?lsmb
  159. IF line_item.projectnumber.size;
  160. PROCESS select element_data=line_item.projectnumber;
  161. END;
  162. ?>
  163. <?lsmb IF line_item.partsgroup.size ?>
  164. <?lsmb
  165. IF line_item.partsgroup.defined('options');
  166. PROCESS select element_data=line_item.partsgroup;
  167. ELSE;
  168. PROCESS label element_data=line_item.partsgroup.label;
  169. line_item.partsgroup.partsgroup;
  170. END;
  171. ?>
  172. <?lsmb END ?>
  173. </td>
  174. </tr>
  175. <?lsmb END ?>
  176. <?lsmb END ?>
  177. <tr>
  178. <td colspan="9">
  179. <hr id="items-horizontal-rule" size="1" />
  180. </td>
  181. </tr>
  182. <?lsmb IF form_elements.on_hold ?>
  183. <tr>
  184. <td colspan="9">
  185. <?lsmb PROCESS label element_data=form_elements.on_hold ?>
  186. </td>
  187. </tr>
  188. <?lsmb END ?>
  189. <tr id="notes-totals-row">
  190. <td id="notes-column" colspan="8">
  191. <table id="notes-table">
  192. <tr id="notes-label-row">
  193. <th id="notes-label-header" class="label-right"><?lsmb text('Notes') ?></th>
  194. <th id="internal-notes-label-header" class="label-right"><?lsmb text('Internal Notes') ?></th>
  195. </tr>
  196. <tr id="notes-row">
  197. <td id="notes-column">
  198. <?lsmb PROCESS textarea element_data=form_elements.notes ?>
  199. </td>
  200. <td id="internal-notes-column">
  201. <?lsmb PROCESS textarea element_data=form_elements.intnotes ?>
  202. </td>
  203. </tr>
  204. </table>
  205. </td>
  206. <td id="totals-column">
  207. <table id="totals-table">
  208. <tr id="subtotal-row">
  209. <th id="subtotal-label-header" class="label-left"><?lsmb text('Subtotal') ?></th>
  210. <td id="subtotal"><?lsmb invsubtotal ?></td>
  211. </tr>
  212. <?lsmb FOREACH tax_item IN form_elements.taxes ?>
  213. <tr>
  214. <th class="label-left tax-item-label"><?lsmb tax_item.description ?></th>
  215. <td class="tax-item-amount"><?lsmb tax_item.amount ?></td>
  216. </tr>
  217. <?lsmb END ?>
  218. <tr id="total-row">
  219. <th id="total-label-header" class="label-left"><?lsmb text('Total') ?></th>
  220. <td id="total"><?lsmb invtotal ?></td>
  221. </tr>
  222. <?lsmb IF _element.taxincluded ?>
  223. <tr>
  224. <td id="taxincluded-column">
  225. <?lsmb PROCESS input element_data=form_elements.taxincluded ?>
  226. </td>
  227. <th id="taxincluded-label-header" class="label-right"><?lsmb text('Tax Included') ?></th>
  228. </tr>
  229. <?lsmb END ?>
  230. </table>
  231. </td>
  232. </tr>
  233. </table>
  234. <table id="payments-table" class="main-table">
  235. <tr id="payments-table-header-row" class="listheading">
  236. <th id="payments-table-header" colspan="5" class="listheading"><?lsmb text('Payments') ?></th>
  237. </tr>
  238. <tr id="payments-headers">
  239. <th id="payments-date-header"><?lsmb text('Date') ?></th>
  240. <th id="payments-source-header"><?lsmb text('Source') ?></th>
  241. <th id="payments-memo-header"><?lsmb text('Memo') ?></th>
  242. <th id="payments-amount-header"><?lsmb text('Amount') ?></th>
  243. <?lsmb IF currency != defaultcurrency ?>
  244. <th id="payments-exch-header"><?lsmb text('Exch') ?></th>
  245. <?lsmb END ?>
  246. <th id="payments-account-header"><?lsmb text('Account') ?></th>
  247. </tr>
  248. <?lsmb FOREACH payment_item IN form_elements.payment_items ?>
  249. <tr>
  250. <td class="payments-datepaid">
  251. <?lsmb PROCESS input element_data=payment_item.datepaid ?>
  252. </td>
  253. <td class="payments-source">
  254. <?lsmb PROCESS input element_data=payment_item.source ?>
  255. </td>
  256. <td class="payments-memo">
  257. <?lsmb PROCESS input element_data=payment_item.memo ?>
  258. </td>
  259. <td class="payments-paid">
  260. <?lsmb PROCESS input element_data=payment_item.paid ?>
  261. </td>
  262. <?lsmb IF currency != defaultcurrency ?>
  263. <td class="payments-exch">
  264. <?lsmb PROCESS input element_data=payment_item.exchangerate ?>
  265. </td>
  266. <?lsmb ELSE ?>
  267. <?lsmb PROCESS input element_data=payment_item.exchangerate ?>
  268. <?lsmb END ?>
  269. <td class="payments-ar-paid">
  270. <?lsmb PROCESS select element_data=payment_item.AR_paid ?>
  271. </td>
  272. </tr>
  273. <?lsmb END ?>
  274. </table>
  275. <hr size="3" />
  276. <div id="type-selectors-container">
  277. <?lsmb
  278. PROCESS select element_data=form_elements.formname;
  279. IF selectlanguage.defined;
  280. PROCESS select element_data=form_elements.language;
  281. END;
  282. PROCESS select element_data=form_elements.format;
  283. PROCESS select element_data=form_elements.media ?>
  284. </div>
  285. <div id="group-selectors-container">
  286. <label id="group-by-selectors-label" class="label"><?lsmb text('Group by') ?> -&gt;</label>
  287. <?lsmb
  288. FOREACH groupby IN form_elements.groupby;
  289. PROCESS input element_data=groupby;
  290. END;
  291. ?>
  292. </div>
  293. <div id="sort-selectors-container">
  294. <label id="sort-by-selectors-label" class="label"><?lsmb text('Sort by') ?> -&gt;</label>
  295. <?lsmb
  296. FOREACH sortby IN form_elements.sortby;
  297. PROCESS input element_data=sortby;
  298. END;
  299. ?>
  300. </div>
  301. <hr id="horizontal-rule" />
  302. <?lsmb FOREACH button IN form_elements.buttons ?>
  303. <?lsmb PROCESS button element_data=button ?>
  304. <?lsmb END ?>
  305. </form>
  306. </body>
  307. </html>