Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
4687 mandeep.dh 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::Purchase Order $action.getPurchaseOrder().getId()
6
		</title>
7
        <script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
8
        <script type="text/javascript" src="/inventory/js/purchase-order-common.js"></script>
9
        <script type="text/javascript" src="/inventory/js/purchase-order-events.js"></script>
10
        <link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
11
	</head>
12
	<body>
4754 mandeep.dh 13
        <a href="/inventory">Go to Home page</a>
14
        <br />        
6380 amar.kumar 15
		<h2>Start a Purchase</h2>
4687 mandeep.dh 16
		#set($purchases = $action.getPurchases())
17
		#if($purchases)
6380 amar.kumar 18
		<p>Previous Purchases for PO $action.getPurchaseOrder().getPoNumber()</p>
4687 mandeep.dh 19
			#foreach($purchase in $purchases)
20
        <ul>
11802 manish.sha 21
            <li><span>Purchase no. $purchase.getId()</span>&nbsp;&nbsp;&nbsp;<span>Purchase Comments: #if($purchase.getPurchaseComments()) $purchase.getPurchaseComments() #else NA #end</span></li>
4687 mandeep.dh 22
		</ul>
23
			#end
24
		#end
11801 manish.sha 25
 
10427 manish.sha 26
		#if($action.getPurchaseOrder().getStatus().getValue()==1 || $action.getPurchaseOrder().getStatus().getValue()==2)
11801 manish.sha 27
    		<a href="/inventory/purchase/new/?poId=$action.getPurchaseOrder().getId()">Start a new Purchase</a>
12531 manish.sha 28
		#end
29
		<br>
30
		<a href="/inventory/check-grn-imei">Check IMEI Status</a>
17403 manish.sha 31
		<span id = "productLabelLink" class = "link"> Generate Product Label </span>
32
		 <br />
33
		 <div id = 'productLabelDiv' class = "hidden">
34
			<form id = 'productLabelFrom'>
35
				<span> Item Id : </span>
36
				<input type = 'text' id = 'productLabelItemId' name = 'productLabelItemId'>
37
				<br>
38
					<span>Stock Link Feed</span>
39
				<input type='text' id = 'productLabelItemNo' name = 'productLabelItemNo'><br>
40
 
41
				<button type = "submit">Submit</button>
42
            </form>
43
        </div>
44
        <br>
4687 mandeep.dh 45
        <div >
46
            <br />
47
            <div class="error">#set($messages = $action.getActionErrors())
48
                    #if($messages && $messages.size() != 0)
49
                        #foreach($message in $messages)
50
                            $message <br/>
51
                        #end
52
                    #end
53
            </div>
10427 manish.sha 54
			#if($action.isPermitted("po:closedAmend") && $action.canPurchaseOrderBeOpened($action.getPurchaseOrder().getId()))
9925 amar.kumar 55
				<input type = "button" id = "open-po-button" poId = "$action.getPurchaseOrder().getId()" value = "Open Purchase-Order"/>
56
			#end
57
			<br/>
58
 
4687 mandeep.dh 59
            <table class="bordered" border="1">
60
                <thead >
61
                    <tr class="bordered">
62
                        <th >Item Id</th>
63
                        <th >Product Name</th>
9416 amar.kumar 64
						<th >MRP</th>
4687 mandeep.dh 65
                        <th >Quantity ordered</th>
66
                        <th >Unfulfilled Quantity</th>
11801 manish.sha 67
						<!--
11802 manish.sha 68
						<th >Scanned Quantity</th> 
11801 manish.sha 69
						<th >Item Weight</th>
11802 manish.sha 70
						<th >Inventory Adjust</th> 
71
                        <th >Set Weight</th> -->
4687 mandeep.dh 72
                    </tr>
73
                </thead>
74
                <tbody >
75
                    #foreach($lineitem in $action.getPurchaseOrder().getLineitems())
76
                        <tr class="bordered">
77
                            <td id="itemId">$lineitem.getItemId()</td>
78
                            <td >$action.getName($lineitem)</td>
9416 amar.kumar 79
							<td >$lineitem.getMrp()</td>
4687 mandeep.dh 80
                            <td >$lineitem.getQuantity()</td>
81
                            <td >$lineitem.getUnfulfilledQuantity()</td>
11802 manish.sha 82
                          <!--  <td >$action.getTotalScannedQuantity($lineitem.getItemId())</td> 
11801 manish.sha 83
							<td >$action.getItemWeight($lineitem.getItemId())</td>
11802 manish.sha 84
							<td >
11801 manish.sha 85
								<input class="adjustInventoryButton" type="button" value="Adjust Inventory"/>
86
								<form class="adjustInventoryForm hidden" method="post" action="/inventory/purchase-order!adjustInventory">
87
									<div>
88
										<label >Quantity: </label>
89
                                        <input type="text" class="quantityAdjust" name="quantityAdjust"/> <br />
90
										<input type="submit" value="Adjust-Inventory"/>
91
                                        <input type="button" value="Cancel" class="cancelButton"/>
92
										<input type="hidden" name="itemId" value="$lineitem.getItemId()"/>
93
										<input type="hidden" name="poId" id="poId" value="$lineitem.getOrderId()"/>
94
                                    </div>
95
								</form>
11802 manish.sha 96
							</td> 
11801 manish.sha 97
							<td >
98
								<input class="setWeightButton" type="button" value="Set Weight" />
99
								<form class="setWeightForm hidden">
100
									<div>
101
										<label >Weight: </label>
102
                                        <input type="text" name="weightVal" class="weightVal_$lineitem.getItemId()"/><span>(in Kg For eg.(559Gms = 0.559Kg))</span> <br />
103
										<input type="submit" class="setWeightNew" itemId="$lineitem.getItemId()" value="Set-Weight"/>
104
                                        <input type="button" value="Cancel" class="cancelWeightButton"/>
105
										<input type="hidden" name="poId" class="poId" value="$lineitem.getOrderId()"/>
106
										<input type="hidden" name="itemId" id="itemId" value="$lineitem.getItemId()"/>
107
                                    </div>
108
								</form>
11802 manish.sha 109
							</td> -->
11801 manish.sha 110
 
111
 
4687 mandeep.dh 112
                        </tr>
113
                    #end
114
                </tbody>
115
            </table>
116
            <input type="hidden" id="poId" value="$action.getPurchaseOrder().getId()"/>
117
        </div>
118
    </body>
119
</html>