summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-28 07:04:34 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-28 07:04:34 +0000
commitedcc1da31f8815b090ca43bba32bf824aff7aac8 (patch)
treeb3f7c539780b7e458f03f8dd0f19307b0373743b
parent6067351006c182135d445978989ee391b120d38d (diff)
Adding ui for inventory adjustment
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2015 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--UI/inventory/adjustment_entry.html87
-rw-r--r--UI/inventory/adjustment_setup.html31
2 files changed, 118 insertions, 0 deletions
diff --git a/UI/inventory/adjustment_entry.html b/UI/inventory/adjustment_entry.html
new file mode 100644
index 00000000..7f61d297
--- /dev/null
+++ b/UI/inventory/adjustment_entry.html
@@ -0,0 +1,87 @@
+<?lsmb INCLUDE 'ui-header.html'
+ titlebar = text('Inventory Adjustment Entry') # '
+ include_stylesheet = [
+ 'css/global.css'
+ stylesheet
+ ]
+?><?lsmb PROCESS 'elements.html' ?>
+<body>
+ <form id='inv_adjust' name='inv_adjust' action='inventory.pl'
+ method='post'>
+ <div class="listtop"><?lsmb text('Enter Inventory')?></div>
+ <div class="label" id="date_div">
+ <label for="date_span"><?lsmb text('Adjustment Date') ?></label>
+ <span id="date_span"><?lsmb transdte ?></span>
+ <?lsmb INCLUDE input element_data = {
+ name = "transdate"
+ type = "hidden"
+ value = transdate
+ } ?></div>
+ <table>
+ <tr class="listheading">
+ <th><?lsmb text('Partnumber') ?></th>
+ <th><?lsmb text('Description') ?></th>
+ <th><?lsmb text('Counted') ?></th>
+ <th><?lsmb text('On Hand') ?></th>
+ <th><?lsmb text('Adjustment') ?></th>
+ </tr>
+ <?lsmb FOREACH i = [ 1 .. rowcount ] -?>
+ <?lsmb ${"id_$i"} = (${"id_$i"}) ? ${"id_$i"} : "New_$i"
+ # ids are numeric -?>
+ <?lsmb INCLUDE input element_data = {
+ name = "id_$i"
+ value = ${"id_$i"}
+ type = "hidden"
+ } ?>
+ <tr>
+ <td><?lsmb INCLUDE input element_data = {
+ name = "partnumber_${id_$i}"
+ value = ${partnumber_${"id_$i"}}
+ class = "control_code"
+ type = "text"
+ size = "20"
+ } ?></td>
+ <td><?lsmb INCLUDE input element_data = {
+ name = "description_${id_$i}"
+ value = ${description_${"id_$i"}}
+ type = "hidden"
+ } ?><?lsmb ${description_${"id_$i"}} ?></td>
+ <td><?lsmb INCLUDE input element_data = {
+ name = "counted_${id_$i}"
+ value = ${counted_${"id_$i"}}
+ class = "numeric"
+ type = "text"
+ size = "20"
+ } ?></td>
+ <td><?lsmb INCLUDE input element_data = {
+ name = "onhand_${id_$i}"
+ value = ${onhand_${"id_$i"}}
+ type = "hidden"
+ } ?><?lsmb ${onhand_${"id_$i"}} ?></td>
+ <td><?lsmb INCLUDE input element_data = {
+ name = "qty_${id_$i}"
+ value = ${qty_${"id_$i"}}
+ type = "hidden"
+ } ?><?lsmb ${qty_${"id_$i"}} ?></td>
+ </tr>
+ <?lsmb END # foreach i -?>
+ </table>
+ <div id="button_div">
+ <?lsmb INCLUDE button element_data = {
+ text = text('Next')
+ type = "submit"
+ class = "submit"
+ name = "action"
+ value = "adjustment_next"
+ } ?>
+ <?lsmb INCLUDE button element_data = {
+ text = text('Save')
+ type = "submit"
+ class = "submit"
+ name = "action"
+ value = "adjustment_save"
+ } ?>
+ </div>
+ </form>
+</body>
+</html>
diff --git a/UI/inventory/adjustment_setup.html b/UI/inventory/adjustment_setup.html
new file mode 100644
index 00000000..33b3b894
--- /dev/null
+++ b/UI/inventory/adjustment_setup.html
@@ -0,0 +1,31 @@
+<?lsmb INCLUDE 'ui-header.html'
+ titlebar = text('Inventory Adjustment Setup') # '
+ include_stylesheet = [
+ 'css/global.css'
+ stylesheet
+ ]
+?><?lsmb PROCESS 'elements.html' ?>
+<body>
+<form name="setup_inv_adjust" action="inventory.pl" method="post">
+<div id="date_input_div">
+ <?lsmb INCLUDE input element_data = {
+ name = "transdate"
+ class = "date"
+ size = "20"
+ value = transdate
+ type = "text"
+ label = text('Date');
+ } ?>
+ </div>
+<div id="button_div">
+ <?lsmb INCLUDE input element_data = {
+ name = "action"
+ type = "submit"
+ text = text('Continue')
+ class = "submit"
+ value = "enter_adjust"
+ } ?>
+ </div>
+</form>
+</body>
+</html>