Subversion Repositories SmartDukaan

Rev

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