| 11348 |
manish.sha |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3 |
<head>
|
|
|
4 |
<title>
|
|
|
5 |
Warehouse Management::Scan In
|
|
|
6 |
</title>
|
|
|
7 |
<link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
|
|
|
8 |
<link rel="stylesheet" href="/inventory/css/colorbox.css" type="text/css" />
|
|
|
9 |
<script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
|
|
|
10 |
<script type="text/javascript" src="/inventory/js/jquery.colorbox-min.js"></script>
|
|
|
11 |
<script type="text/javascript" src="/inventory/js/purchase.js"></script>
|
|
|
12 |
<script language="JavaScript">
|
| 21642 |
amit.gupta |
13 |
function disableEnterKey(e)
|
| 21624 |
amit.gupta |
14 |
{
|
| 11348 |
manish.sha |
15 |
var key;
|
|
|
16 |
if(window.event)
|
|
|
17 |
key = window.event.keyCode; //IE
|
|
|
18 |
else
|
|
|
19 |
key = e.which; //firefox
|
|
|
20 |
|
|
|
21 |
return (key != 13);
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
function setFileName(){
|
| 21617 |
amit.gupta |
25 |
$("#disablingDiv").show();
|
| 11348 |
manish.sha |
26 |
var fileN1 = $('#scanDataFile').val();
|
|
|
27 |
var fileName = fileN1.substring(fileN1.lastIndexOf('\\')+1);
|
|
|
28 |
$('#fileNameVal').val(fileName);
|
| 21624 |
amit.gupta |
29 |
setTimeout(function(){
|
|
|
30 |
$("#disablingDiv").hide();
|
|
|
31 |
$("#success").html("");
|
|
|
32 |
$("#error").html("Could not upload serialised items. Please check the sheet for errors")
|
|
|
33 |
}, 3000);
|
| 11348 |
manish.sha |
34 |
return true;
|
|
|
35 |
}
|
|
|
36 |
</script>
|
|
|
37 |
</head>
|
|
|
38 |
<body >
|
| 21617 |
amit.gupta |
39 |
<div id="disablingDiv"></div>
|
| 11348 |
manish.sha |
40 |
<a href="/inventory">Go to Home page</a>
|
|
|
41 |
<br />
|
|
|
42 |
<h2>Scan Items in warehouse: $action.getWarehouse().getDisplayName()</h2>
|
| 21617 |
amit.gupta |
43 |
<span id="error" style="color:red">
|
| 11348 |
manish.sha |
44 |
$action.getErrorMessage()
|
|
|
45 |
</span>
|
| 21624 |
amit.gupta |
46 |
<span id="success" style="color:blue">
|
| 11348 |
manish.sha |
47 |
$action.getSuccessMsg()
|
|
|
48 |
</span>
|
|
|
49 |
<form id = 'bulkScanUploadForm' action="/inventory/bulk-purchase/$action.getId()" enctype="multipart/form-data" method="post" onsubmit="return setFileName()">
|
| 18668 |
manish.sha |
50 |
<span>Select Item Type:</span>
|
|
|
51 |
<select name ="selectItemType" id ="selectItemType">
|
| 21617 |
amit.gupta |
52 |
<!--<option value="NON_SERIALIZED" >NON_SERIALIZED</option>-->
|
| 18668 |
manish.sha |
53 |
<option value="SERIALIZED" >SERIALIZED</option>
|
|
|
54 |
</select>
|
| 21617 |
amit.gupta |
55 |
<div id="selectItem">
|
| 11348 |
manish.sha |
56 |
<span>Select Item :</span>
|
|
|
57 |
<select name ="bulkScanUploadItem" id ="bulkScanUploadItem">
|
|
|
58 |
<option selected="selected" value="-1">Select Item</option>
|
|
|
59 |
#foreach ($item in $action.getItems())
|
| 18668 |
manish.sha |
60 |
#if($item.getType().toString()=="SERIALIZED")
|
| 21617 |
amit.gupta |
61 |
<option value="$item.getId()" #if(!$action.isItemScannedIn($item.getId()))disabled#end>$action.getName($item)</option>
|
| 11348 |
manish.sha |
62 |
#end
|
|
|
63 |
#end
|
|
|
64 |
</select>
|
| 18668 |
manish.sha |
65 |
</div>
|
| 11348 |
manish.sha |
66 |
<br>
|
| 21617 |
amit.gupta |
67 |
<!--<span>Transfer on Scan-in to Warehouse </span>
|
| 11348 |
manish.sha |
68 |
<select name = "transferWarehouseId">
|
|
|
69 |
#if($action.getTransferWarehouseId())
|
|
|
70 |
#foreach($warehouse in $action.getAllowedDestinationWarehousesForTransfer($action.getWarehouseId()))
|
|
|
71 |
#if($warehouse.getId()==$action.getTransferWarehouseId())
|
|
|
72 |
<option value = "$warehouse.getId()" selected>$warehouse.getDisplayName()</option>
|
|
|
73 |
#end
|
|
|
74 |
#end
|
|
|
75 |
#else
|
|
|
76 |
<option value = "0" >Select...</option>
|
|
|
77 |
#foreach($warehouse in $action.getAllowedDestinationWarehousesForTransfer($action.getWarehouseId()))
|
|
|
78 |
<option value = "$warehouse.getId()">$warehouse.getDisplayName()</option>
|
|
|
79 |
#end
|
|
|
80 |
#end
|
|
|
81 |
</select>
|
| 21617 |
amit.gupta |
82 |
<br>-->
|
| 11348 |
manish.sha |
83 |
<span> Select File : </span>
|
|
|
84 |
<input type="file" id="scanDataFile" name="scanDataFile"/>
|
|
|
85 |
<br>
|
|
|
86 |
#if($action.getTransferLotId())
|
|
|
87 |
<input type="hidden" name="transferLotId" value="$action.getTransferLotId()"/>
|
|
|
88 |
#end
|
|
|
89 |
<input type="hidden" name="warehouseId" value="$action.getWarehouseId()" />
|
|
|
90 |
<input type="hidden" name="poId" value="$action.getPoId()"/>
|
|
|
91 |
<input type="hidden" name="invoiceNumber" value="$action.getInvoiceNumber()"/>
|
|
|
92 |
<input type="hidden" name="freightCharges" value="$action.getFreightCharges()"/>
|
| 11801 |
manish.sha |
93 |
<input type="hidden" name="purchaseComments" value="$action.getPurchaseComments()"/>
|
| 11348 |
manish.sha |
94 |
<input type="hidden" id="fileNameVal" name="fileNameVal" value=""/>
|
|
|
95 |
<input type="hidden" name="_method" value="put"/>
|
|
|
96 |
<input type = "submit" value = "Submit" id = "bulkScanUploadSubmit"/>
|
|
|
97 |
<!-- <input id='cancelBulkScanUploadSubmit' type='button' value='Cancel'> -->
|
|
|
98 |
</form>
|
|
|
99 |
<br>
|
|
|
100 |
<span style="color:blue">Please go through the Instructions First.</span>
|
|
|
101 |
<br>
|
|
|
102 |
<span id = "instructionsLink" class = "link"> Instructions</span> <br>
|
|
|
103 |
<div id = "instrctionsDiv" class = "hidden">
|
|
|
104 |
<p style="color:blue"> Only Text File is acceptable (.txt format)
|
|
|
105 |
<br> First Use an excel sheet to create Data.
|
|
|
106 |
<br> There should be exact three columns in the excel sheet (Item Number, Serial Number, Quantity).
|
|
|
107 |
<br> Now insert data as per Column Headings, leave column blank in case of no data
|
|
|
108 |
<br> Now copy all data to a text file and save it as Text File(.txt).
|
|
|
109 |
<br> Now upload the txt file to scan in the item units.
|
|
|
110 |
<br> One file is required as per one SKU.
|
|
|
111 |
<br> Item is disabled in the Item List if unfulfilled quantity is zero.
|
|
|
112 |
<br> If file format is other than txt then it will throw exception.
|
|
|
113 |
<br> Please follow this procedure every time.
|
| 11352 |
manish.sha |
114 |
<br> Try to Remove Blank Lines to decrease scan time.
|
| 11348 |
manish.sha |
115 |
</p>
|
|
|
116 |
</div><br>
|
|
|
117 |
<a href="/inventory/purchase/!create?poId=$action.getPoId()&warehouseId=$action.getWarehouseId()&invoiceNo=$action.getInvoiceNumber()&freightCharges=$action.getFreightCharges()">Back to Purchase</a>
|
|
|
118 |
|
|
|
119 |
</body>
|
|
|
120 |
</html>
|