Subversion Repositories SmartDukaan

Rev

Rev 11802 | Rev 17403 | 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>
4687 mandeep.dh 31
        <div >
32
            <br />
33
            <div class="error">#set($messages = $action.getActionErrors())
34
                    #if($messages && $messages.size() != 0)
35
                        #foreach($message in $messages)
36
                            $message <br/>
37
                        #end
38
                    #end
39
            </div>
10427 manish.sha 40
			#if($action.isPermitted("po:closedAmend") && $action.canPurchaseOrderBeOpened($action.getPurchaseOrder().getId()))
9925 amar.kumar 41
				<input type = "button" id = "open-po-button" poId = "$action.getPurchaseOrder().getId()" value = "Open Purchase-Order"/>
42
			#end
43
			<br/>
44
 
4687 mandeep.dh 45
            <table class="bordered" border="1">
46
                <thead >
47
                    <tr class="bordered">
48
                        <th >Item Id</th>
49
                        <th >Product Name</th>
9416 amar.kumar 50
						<th >MRP</th>
4687 mandeep.dh 51
                        <th >Quantity ordered</th>
52
                        <th >Unfulfilled Quantity</th>
11801 manish.sha 53
						<!--
11802 manish.sha 54
						<th >Scanned Quantity</th> 
11801 manish.sha 55
						<th >Item Weight</th>
11802 manish.sha 56
						<th >Inventory Adjust</th> 
57
                        <th >Set Weight</th> -->
4687 mandeep.dh 58
                    </tr>
59
                </thead>
60
                <tbody >
61
                    #foreach($lineitem in $action.getPurchaseOrder().getLineitems())
62
                        <tr class="bordered">
63
                            <td id="itemId">$lineitem.getItemId()</td>
64
                            <td >$action.getName($lineitem)</td>
9416 amar.kumar 65
							<td >$lineitem.getMrp()</td>
4687 mandeep.dh 66
                            <td >$lineitem.getQuantity()</td>
67
                            <td >$lineitem.getUnfulfilledQuantity()</td>
11802 manish.sha 68
                          <!--  <td >$action.getTotalScannedQuantity($lineitem.getItemId())</td> 
11801 manish.sha 69
							<td >$action.getItemWeight($lineitem.getItemId())</td>
11802 manish.sha 70
							<td >
11801 manish.sha 71
								<input class="adjustInventoryButton" type="button" value="Adjust Inventory"/>
72
								<form class="adjustInventoryForm hidden" method="post" action="/inventory/purchase-order!adjustInventory">
73
									<div>
74
										<label >Quantity: </label>
75
                                        <input type="text" class="quantityAdjust" name="quantityAdjust"/> <br />
76
										<input type="submit" value="Adjust-Inventory"/>
77
                                        <input type="button" value="Cancel" class="cancelButton"/>
78
										<input type="hidden" name="itemId" value="$lineitem.getItemId()"/>
79
										<input type="hidden" name="poId" id="poId" value="$lineitem.getOrderId()"/>
80
                                    </div>
81
								</form>
11802 manish.sha 82
							</td> 
11801 manish.sha 83
							<td >
84
								<input class="setWeightButton" type="button" value="Set Weight" />
85
								<form class="setWeightForm hidden">
86
									<div>
87
										<label >Weight: </label>
88
                                        <input type="text" name="weightVal" class="weightVal_$lineitem.getItemId()"/><span>(in Kg For eg.(559Gms = 0.559Kg))</span> <br />
89
										<input type="submit" class="setWeightNew" itemId="$lineitem.getItemId()" value="Set-Weight"/>
90
                                        <input type="button" value="Cancel" class="cancelWeightButton"/>
91
										<input type="hidden" name="poId" class="poId" value="$lineitem.getOrderId()"/>
92
										<input type="hidden" name="itemId" id="itemId" value="$lineitem.getItemId()"/>
93
                                    </div>
94
								</form>
11802 manish.sha 95
							</td> -->
11801 manish.sha 96
 
97
 
4687 mandeep.dh 98
                        </tr>
99
                    #end
100
                </tbody>
101
            </table>
102
            <input type="hidden" id="poId" value="$action.getPurchaseOrder().getId()"/>
103
        </div>
104
    </body>
105
</html>