Subversion Repositories SmartDukaan

Rev

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