Subversion Repositories SmartDukaan

Rev

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