Subversion Repositories SmartDukaan

Rev

Rev 11801 | Rev 18680 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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">
13
            function disableEnterKey(e)
14
            {
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(){
25
				var fileN1 = $('#scanDataFile').val();
26
				var fileName = fileN1.substring(fileN1.lastIndexOf('\\')+1);
27
				$('#fileNameVal').val(fileName);
28
				return true;
29
			}
30
        </script>
31
	</head>
32
	<body >
33
		<a href="/inventory">Go to Home page</a>
34
        <br />  
35
		<h2>Scan Items in warehouse: $action.getWarehouse().getDisplayName()</h2>
36
		<span style="color:red">
37
			$action.getErrorMessage()
38
		</span>
39
		<span style="color:blue">
40
			$action.getSuccessMsg()
41
		</span>
42
			<form id = 'bulkScanUploadForm' action="/inventory/bulk-purchase/$action.getId()" enctype="multipart/form-data" method="post" onsubmit="return setFileName()">
18668 manish.sha 43
				<span>Select Item Type:</span>
44
                <select name ="selectItemType" id ="selectItemType">
45
					<option value="SERIALIZED" >SERIALIZED</option>
46
					<option value="NON_SERIALIZED" >NON_SERIALIZED</option>
47
                </select>
48
				<div id="selectItem">
11348 manish.sha 49
                <span>Select Item :</span>
50
                <select name ="bulkScanUploadItem" id ="bulkScanUploadItem">
51
					<option  selected="selected" value="-1">Select Item</option>
52
					#foreach ($item in $action.getItems())
18668 manish.sha 53
						#if($item.getType().toString()=="SERIALIZED")
54
    						#if($action.isItemScannedIn($item.getId()))
55
    							<option value="$item.getId()" >$action.getName($item)</option>
56
    						#else
57
    							<option value="$item.getId()" disabled="disabled" >$action.getName($item)</option>
58
    						#end
11348 manish.sha 59
						#end
60
					#end
61
				</select>
18668 manish.sha 62
                </div>
11348 manish.sha 63
				<br>
64
				<span>Transfer on Scan-in to Warehouse </span>
65
				<select name = "transferWarehouseId">
66
					#if($action.getTransferWarehouseId())
67
    					#foreach($warehouse in $action.getAllowedDestinationWarehousesForTransfer($action.getWarehouseId()))
68
        					#if($warehouse.getId()==$action.getTransferWarehouseId())
69
        						<option value = "$warehouse.getId()" selected>$warehouse.getDisplayName()</option>
70
							#end
71
						#end
72
					#else
73
						<option value = "0" >Select...</option>
74
    					#foreach($warehouse in $action.getAllowedDestinationWarehousesForTransfer($action.getWarehouseId()))
75
    						<option value = "$warehouse.getId()">$warehouse.getDisplayName()</option>
76
						#end
77
					#end
78
                </select>
79
				<br>
80
				<span> Select File : </span>
81
				<input type="file" id="scanDataFile" name="scanDataFile"/>
82
				<br>
83
				#if($action.getTransferLotId())
84
					<input type="hidden" name="transferLotId" value="$action.getTransferLotId()"/>
85
				#end
86
				<input type="hidden" name="warehouseId" value="$action.getWarehouseId()" />
87
				<input type="hidden" name="poId" value="$action.getPoId()"/>
88
				<input type="hidden" name="invoiceNumber" value="$action.getInvoiceNumber()"/>
89
				<input type="hidden" name="freightCharges" value="$action.getFreightCharges()"/>
11801 manish.sha 90
				<input type="hidden" name="purchaseComments" value="$action.getPurchaseComments()"/>
11348 manish.sha 91
				<input type="hidden" id="fileNameVal" name="fileNameVal" value=""/>
92
				<input type="hidden" name="_method" value="put"/>
93
				<input type = "submit" value = "Submit" id = "bulkScanUploadSubmit"/>
94
				<!-- <input id='cancelBulkScanUploadSubmit' type='button' value='Cancel'> -->
95
            </form>
96
			<br>
97
			<span style="color:blue">Please go through the Instructions First.</span>
98
			<br>
99
			<span id = "instructionsLink" class = "link"> Instructions</span> <br>
100
				<div id = "instrctionsDiv" class = "hidden">
101
                    <p style="color:blue"> Only Text File is acceptable (.txt format)
102
					<br> First Use an excel sheet to create Data. 
103
					<br> There should be exact three columns in the excel sheet (Item Number, Serial Number, Quantity). 
104
					<br> Now insert data as per Column Headings, leave column blank in case of no data
105
					<br> Now copy all data to a text file and save it as Text File(.txt).
106
					<br> Now upload the txt file to scan in the item units.
107
					<br> One file is required as per one SKU.
108
					<br> Item is disabled in the Item List if unfulfilled quantity is zero.
109
					<br> If file format is other than txt then it will throw exception.
110
					<br> Please follow this procedure every time. 
11352 manish.sha 111
					<br> Try to Remove Blank Lines to decrease scan time.
11348 manish.sha 112
					</p>
113
        		</div><br>
114
			<a href="/inventory/purchase/!create?poId=$action.getPoId()&warehouseId=$action.getWarehouseId()&invoiceNo=$action.getInvoiceNumber()&freightCharges=$action.getFreightCharges()">Back to Purchase</a>
115
 
116
    </body>
117
</html>