Subversion Repositories SmartDukaan

Rev

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