summaryrefslogtreecommitdiff
path: root/UI/inventory/adjustment_entry.html
blob: 7f61d297df7bdfbe497cea2b2b62cb2601ea609c (plain)
  1. <?lsmb INCLUDE 'ui-header.html'
  2. titlebar = text('Inventory Adjustment Entry') # '
  3. include_stylesheet = [
  4. 'css/global.css'
  5. stylesheet
  6. ]
  7. ?><?lsmb PROCESS 'elements.html' ?>
  8. <body>
  9. <form id='inv_adjust' name='inv_adjust' action='inventory.pl'
  10. method='post'>
  11. <div class="listtop"><?lsmb text('Enter Inventory')?></div>
  12. <div class="label" id="date_div">
  13. <label for="date_span"><?lsmb text('Adjustment Date') ?></label>
  14. <span id="date_span"><?lsmb transdte ?></span>
  15. <?lsmb INCLUDE input element_data = {
  16. name = "transdate"
  17. type = "hidden"
  18. value = transdate
  19. } ?></div>
  20. <table>
  21. <tr class="listheading">
  22. <th><?lsmb text('Partnumber') ?></th>
  23. <th><?lsmb text('Description') ?></th>
  24. <th><?lsmb text('Counted') ?></th>
  25. <th><?lsmb text('On Hand') ?></th>
  26. <th><?lsmb text('Adjustment') ?></th>
  27. </tr>
  28. <?lsmb FOREACH i = [ 1 .. rowcount ] -?>
  29. <?lsmb ${"id_$i"} = (${"id_$i"}) ? ${"id_$i"} : "New_$i"
  30. # ids are numeric -?>
  31. <?lsmb INCLUDE input element_data = {
  32. name = "id_$i"
  33. value = ${"id_$i"}
  34. type = "hidden"
  35. } ?>
  36. <tr>
  37. <td><?lsmb INCLUDE input element_data = {
  38. name = "partnumber_${id_$i}"
  39. value = ${partnumber_${"id_$i"}}
  40. class = "control_code"
  41. type = "text"
  42. size = "20"
  43. } ?></td>
  44. <td><?lsmb INCLUDE input element_data = {
  45. name = "description_${id_$i}"
  46. value = ${description_${"id_$i"}}
  47. type = "hidden"
  48. } ?><?lsmb ${description_${"id_$i"}} ?></td>
  49. <td><?lsmb INCLUDE input element_data = {
  50. name = "counted_${id_$i}"
  51. value = ${counted_${"id_$i"}}
  52. class = "numeric"
  53. type = "text"
  54. size = "20"
  55. } ?></td>
  56. <td><?lsmb INCLUDE input element_data = {
  57. name = "onhand_${id_$i}"
  58. value = ${onhand_${"id_$i"}}
  59. type = "hidden"
  60. } ?><?lsmb ${onhand_${"id_$i"}} ?></td>
  61. <td><?lsmb INCLUDE input element_data = {
  62. name = "qty_${id_$i}"
  63. value = ${qty_${"id_$i"}}
  64. type = "hidden"
  65. } ?><?lsmb ${qty_${"id_$i"}} ?></td>
  66. </tr>
  67. <?lsmb END # foreach i -?>
  68. </table>
  69. <div id="button_div">
  70. <?lsmb INCLUDE button element_data = {
  71. text = text('Next')
  72. type = "submit"
  73. class = "submit"
  74. name = "action"
  75. value = "adjustment_next"
  76. } ?>
  77. <?lsmb INCLUDE button element_data = {
  78. text = text('Save')
  79. type = "submit"
  80. class = "submit"
  81. name = "action"
  82. value = "adjustment_save"
  83. } ?>
  84. </div>
  85. </form>
  86. </body>
  87. </html>