[% PROCESS 'elements.html' %]
[% text('Enter Inventory')%]
[% transdate %] [% INCLUDE input element_data = { name = "source" type = "hidden" value = source } %] [% INCLUDE input element_data = { name = "transdate" type = "hidden" value = transdate } %]
[% IF ! rowcount; rowcount = 1; END; INCLUDE input element_data = { name = 'rowcount' type = 'hidden' value = rowcount }; FOREACH i = [ 1 .. rowcount ]; id_id = "id_$i"; IF ! $id_id; $id_id = "new"; END; # ids are numeric -%] [% INCLUDE input element_data = { name = id_id value = $id_id type = "hidden" } %] [% END # foreach i -%]
[% text('Partnumber') %] [% text('Description') %] [% text('Counted') %] [% text('On Hand') %] [% text('Adjustment') %]
[% INCLUDE input element_data = { name = "partnumber_$i" value = ${"partnumber_$i"} class = "control_code" type = "text" size = "20" } %] [% INCLUDE input element_data = { name = "description_$i" value = ${"description_$i"} type = "hidden" } %][% ${"description_$i"} %] [% INCLUDE input element_data = { name = "counted_$i" value = ${"counted_$i"} class = "numeric" type = "text" size = "20" } %] [% INCLUDE input element_data = { name = "onhand_$i" value = ${"onhand_$i"} type = "hidden" } %][% ${"onhand_$i"} %] [% INCLUDE input element_data = { name = "qty_$i" value = ${"qty_$i"} type = "hidden" } %][% ${"qty_$i"} %]
[% INCLUDE button element_data = { text = text('Next') type = "submit" class = "submit" name = "action" value = "adjustment_next" } %] [% INCLUDE button element_data = { text = text('Save') type = "submit" class = "submit" name = "action" value = "adjustment_save" } %]