Rev 9925 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" href="/inventory/css/demo_table.css" type="text/css" /><link rel="stylesheet" href="/inventory/css/demo_table_jui.css" type="text/css" /><link rel="stylesheet" href="/inventory/css/demo_page.css" type="text/css" /><title>Inventory at $action.getWarehouse().getDisplayName()</title><script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script><script type="text/javascript" src="/inventory/js/jquery.dataTables.min.js"></script><script type="text/javascript" src="/inventory/js/current-inventory.js"></script><link rel="stylesheet" href="/inventory/css/common.css" type="text/css" /></head><body><div ><a href="/inventory/current-inventory">Go to all warehouses</a><br /><span style="color:red">#set($messages = $action.getActionErrors())#if($messages && $messages.size() != 0)#foreach($message in $messages)$message <br/>#end#end</span><br />#if($action.getWarehouse().getWarehouseType()=="THIRD_PARTY" || $action.getWarehouse().getWarehouseType()=="OURS_THIRDPARTY")#if($action.isPermitted("inventory:edit"))<label>Add new Item in warehouse</label><br /><form action="/inventory/current-inventory!increaseAvailability"><table ><tr ><td ><label >Item Id: </label></td><td ><input type="text" name="itemId"/></td></tr><tr ><td ><label >Quantity: </label></td><td ><input type="text" name="quantity"/><input type="hidden" name="id" value="$action.getId()"/></td></tr><tr ><td ></td><td ><input type="submit" value="Add inventory"/></td></tr></table></form>#end#end<br /><table id="current-inventory"><thead ><tr ><th>Item ID</th><th>Product</th><th>Availability</th><th>Reserved</th><th>Hold</th>#if($action.isPermitted("inventory:edit"))<th ></th>#end#if($action.isPermitted("inventory:edit"))<th ></th>#end</tr></thead><tbody >#foreach($item in $action.getInventory())<tr ><td >$item.getId()</td><td >$action.getName($item)</td><td >$action.getAvailability($item)</td><td >$action.getReserved($item)</td><td >$action.getHeld($item)</td>#if($action.isPermitted("inventory:edit"))<td >#if($action.getWarehouse().getWarehouseType() == "THIRD_PARTY" || $action.getWarehouse().getWarehouseType()=="OURS_THIRDPARTY")<input class="increaseAvailabilityButton" type="button" value="Increase availability"/><form class="increaseAvailabilityForm hidden" method="post" action="/inventory/current-inventory!increaseAvailability"><div ><label >Quantity: </label><input type="text" name="quantity"/> <br /><input type="submit" value="Increase availability"/><input type="button" value="Cancel" class="cancelButton"/><input type="hidden" name="itemId" value="$item.getId()"/><input type="hidden" name="id" value="$action.getId()"/></div></form>#end</td>#end#if($action.isPermitted("inventory:edit"))<td ><input class="increaseHoldButton" type="button" value="Add/Update Hold Inventory"/><form class="increaseHoldForm hidden" method="post" action="/inventory/current-inventory!increaseHoldQuantity"><div ><label >Quantity: </label><input type="text" name="holdQuantity" min = "0"/> <br /><select name = "source"><option value = "0">DONT-SELL</option><option value = "6">Ebay</option><option value = "7">Snapdeal</option><option value = "8">Flipkart</option><option value = "4">HomeShop18</option></select><input type="submit" value="Add/Update Hold Inventory"/><input type="button" value="Cancel" class="cancelHoldButton"/><input type="hidden" name="itemId" value="$item.getId()"/><input type="hidden" name="id" value="$action.getId()"/></div></form></td>#end</tr>#end</tbody></table></div></body></html>