Subversion Repositories SmartDukaan

Rev

Rev 10427 | Rev 11802 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10427 Rev 11801
Line 20... Line 20...
20
        <ul>
20
        <ul>
21
            <li><span>Purchase no. $purchase.getId()</span></li>
21
            <li><span>Purchase no. $purchase.getId()</span></li>
22
		</ul>
22
		</ul>
23
			#end
23
			#end
24
		#end
24
		#end
-
 
25
		
25
		#if($action.getPurchaseOrder().getStatus().getValue()==1 || $action.getPurchaseOrder().getStatus().getValue()==2)
26
		#if($action.getPurchaseOrder().getStatus().getValue()==1 || $action.getPurchaseOrder().getStatus().getValue()==2)
26
			<a href="/inventory/purchase/new/?poId=$action.getPurchaseOrder().getId()">Start a new Purchase</a>
27
    		<a href="/inventory/purchase/new/?poId=$action.getPurchaseOrder().getId()">Start a new Purchase</a>
27
		#end
28
   		#end
-
 
29
		
28
        <div >
30
        <div >
29
            <br />
31
            <br />
30
            <div class="error">#set($messages = $action.getActionErrors())
32
            <div class="error">#set($messages = $action.getActionErrors())
31
                    #if($messages && $messages.size() != 0)
33
                    #if($messages && $messages.size() != 0)
32
                        #foreach($message in $messages)
34
                        #foreach($message in $messages)
Line 45... Line 47...
45
                        <th >Item Id</th>
47
                        <th >Item Id</th>
46
                        <th >Product Name</th>
48
                        <th >Product Name</th>
47
						<th >MRP</th>
49
						<th >MRP</th>
48
                        <th >Quantity ordered</th>
50
                        <th >Quantity ordered</th>
49
                        <th >Unfulfilled Quantity</th>
51
                        <th >Unfulfilled Quantity</th>
-
 
52
						<!--
-
 
53
						<th >Scanned Quantity</th> -->
-
 
54
						<th >Item Weight</th>
-
 
55
						<!-- <th >Inventory Adjust</th> -->
-
 
56
                        <th >Set Weight</th>
50
                    </tr>
57
                    </tr>
51
                </thead>
58
                </thead>
52
                <tbody >
59
                <tbody >
53
                    #foreach($lineitem in $action.getPurchaseOrder().getLineitems())
60
                    #foreach($lineitem in $action.getPurchaseOrder().getLineitems())
54
                        <tr class="bordered">
61
                        <tr class="bordered">
55
                            <td id="itemId">$lineitem.getItemId()</td>
62
                            <td id="itemId">$lineitem.getItemId()</td>
56
                            <td >$action.getName($lineitem)</td>
63
                            <td >$action.getName($lineitem)</td>
57
							<td >$lineitem.getMrp()</td>
64
							<td >$lineitem.getMrp()</td>
58
                            <td >$lineitem.getQuantity()</td>
65
                            <td >$lineitem.getQuantity()</td>
59
                            <td >$lineitem.getUnfulfilledQuantity()</td>
66
                            <td >$lineitem.getUnfulfilledQuantity()</td>
-
 
67
                            <!-- <td >$action.getTotalScannedQuantity($lineitem.getItemId())</td> -->
-
 
68
							<td >$action.getItemWeight($lineitem.getItemId())</td>
-
 
69
							<!-- <td >
-
 
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>
-
 
81
							</td> -->
-
 
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>
-
 
94
							</td>
-
 
95
							
-
 
96
							
60
                        </tr>
97
                        </tr>
61
                    #end
98
                    #end
62
                </tbody>
99
                </tbody>
63
            </table>
100
            </table>
64
            <input type="hidden" id="poId" value="$action.getPurchaseOrder().getId()"/>
101
            <input type="hidden" id="poId" value="$action.getPurchaseOrder().getId()"/>