Rev 9806 | 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><title>Held Inventory</title><!--link type = "text/css" href = "css/held-inventory.css" rel = "stylesheet"/--><script type="text/javascript" src="js/jquery-1.4.2.js"></script><script type="text/javascript" src="js/jquery.dataTables.min.js"></script><script type="text/javascript" src="js/TableTools.min.js"></script><script type="text/javascript" src="js/held-inventory.js"></script><link rel="stylesheet" href="/Support/css/demo_table.css" type="text/css" /><link rel="stylesheet" href="/Support/css/TableTools.css" type="text/css" /><link rel="stylesheet" href="/Support/css/hold-inventory.css" type="text/css" /></head><body><span><a href = "/Support/reports"> Go to Homepage</a></span><h2 style = "text-align:center;text-decoration: underline" >Hold Inventories</h2><form id = "hold-inventory-form" name = "hold-inventory-form" action="/Support/hold-inventory" method="post"><span> ItemId : </span><input type = "text" name = "itemId" required /><span> Warehouse : </span><select name = "warehouseId" >#foreach($warehouse in $action.getWarehouses())<option value = $warehouse.getId()>$warehouse.getId() $warehouse.getDisplayName()</option>#end</select><span> Source : </span><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><br/><br/><span>Quantity : </span><input type = "text" name = "heldQuantity"></input><input name = "submit" type = "submit" value = "Update" /></form><br/><table id = "held-inventory-table"><thead><tr><th> Item </th><th> Warehouse </th><th> Source </th><th> Held </th><th >Total Held</th><th >Total Availability</th><th >Total Reserved</th><th >IsRisky</th><th >Net Availability</th></tr></thead><tbody>#set($warehouseMap = $action.getWarehouseMap())#set($itemMap = $action.getItemMap())#set($itemAvailabilityMap = $action.getItemAvailabilityMap())#foreach($holdInventoryDetail in $action.getHoldInventoryDetails())<tr >#set($item = $itemMap.get($holdInventoryDetail.getItem_id()))#set($itemStockDetail = $itemAvailabilityMap.get($holdInventoryDetail.getItem_id()))<td>$holdInventoryDetail.getItem_id()--$item.getBrand() $item.getModelName() $item.getModelNumber() $item.getColor()</td><td>$holdInventoryDetail.getWarehouse_id() $warehouseMap.get($holdInventoryDetail.getWarehouse_id()).getDisplayName()</td><td>$action.getSource($holdInventoryDetail.getSource())</td><td>$holdInventoryDetail.getHeld()</td><td>$itemStockDetail.getHeld()</td><td>$itemStockDetail.getAvailable()</td><td>$itemStockDetail.getReserved()</td>#if($item.isRisky())<td> Yes </td>#else<td> No </td>#end#set($netAvailability = ($itemStockDetail.getAvailable()-$itemStockDetail.getReserved()-$itemStockDetail.getHeld()))<td>$netAvailability</td></tr>#end</tbody></table><script></script></body></html>