Subversion Repositories SmartDukaan

Rev

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