Subversion Repositories SmartDukaan

Rev

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