Subversion Repositories SmartDukaan

Rev

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

Rev 17423 Rev 25112
Line 24... Line 24...
24
		</ul>
24
		</ul>
25
			#end
25
			#end
26
		#end
26
		#end
27
		
27
		
28
		#if($action.getPurchaseOrder().getStatus().getValue()==1 || $action.getPurchaseOrder().getStatus().getValue()==2)
28
		#if($action.getPurchaseOrder().getStatus().getValue()==1 || $action.getPurchaseOrder().getStatus().getValue()==2)
29
    		<a href="/inventory/purchase/new/?poId=$action.getPurchaseOrder().getId()">Start a new Purchase</a>
29
    		  <a href="/inventory/purchase/new/?poId=$action.getPurchaseOrder().getId()">Start a new Purchase</a>
30
		#end
30
		#end
31
		<br>
31
		<br>
32
		<a href="/inventory/check-grn-imei">Check IMEI Status</a>
32
		<a href="/inventory/check-grn-imei">Check IMEI Status</a>
33
		<br />
33
		<br />
34
		<a class = "link-requiring-itemid-for-productlabel" href="/inventory/purchase-order!generateProductLabel">Generate Product Label</a>
34
		<a class = "link-requiring-itemid-for-productlabel" href="/inventory/purchase-order!generateProductLabel">Generate Product Label</a>
Line 51... Line 51...
51
                <thead >
51
                <thead >
52
                    <tr class="bordered">
52
                    <tr class="bordered">
53
                        <th >Item Id</th>
53
                        <th >Item Id</th>
54
                        <th >Product Name</th>
54
                        <th >Product Name</th>
55
						<th >MRP</th>
55
						<th >MRP</th>
-
 
56
						<th >Invoice Price</th>
56
                        <th >Quantity ordered</th>
57
                        <th >Quantity ordered</th>
57
                        <th >Unfulfilled Quantity</th>
58
                        <th >Unfulfilled Quantity</th>
58
						<!--
59
						<!--
59
						<th >Scanned Quantity</th> 
60
						<th >Scanned Quantity</th> 
60
						<th >Item Weight</th>
61
						<th >Item Weight</th>
Line 66... Line 67...
66
                    #foreach($lineitem in $action.getPurchaseOrder().getLineitems())
67
                    #foreach($lineitem in $action.getPurchaseOrder().getLineitems())
67
                        <tr class="bordered">
68
                        <tr class="bordered">
68
                            <td id="itemId">$lineitem.getItemId()</td>
69
                            <td id="itemId">$lineitem.getItemId()</td>
69
                            <td >$action.getName($lineitem)</td>
70
                            <td >$action.getName($lineitem)</td>
70
							<td >$lineitem.getMrp()</td>
71
							<td >$lineitem.getMrp()</td>
-
 
72
							#if($lineitem.getQuantity() > $lineitem.getUnfulfilledQuantity() && $lineitem.getInvoicePrice() > 0 )
-
 
73
								<td><input data-id="$lineitem.getItemId()" type="number" value="$lineitem.getInvoicePrice()" readonly></td>
-
 
74
							#else
-
 
75
								<td><input type="number" value="$lineitem.getInvoicePrice()"></td>
-
 
76
							#end
71
                            <td >$lineitem.getQuantity()</td>
77
                            <td >$lineitem.getQuantity()</td>
72
                            <td >$lineitem.getUnfulfilledQuantity()</td>
78
                            <td >$lineitem.getUnfulfilledQuantity()</td>
73
                          <!--  <td >$action.getTotalScannedQuantity($lineitem.getItemId())</td> 
-
 
74
							<td >$action.getItemWeight($lineitem.getItemId())</td>
-
 
75
							<td >
-
 
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>
-
 
87
							</td> 
-
 
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>
-
 
100
							</td> -->
-
 
101
							
-
 
102
							
-
 
103
                        </tr>
79
                        </tr>
104
                    #end
80
                    #end
105
                </tbody>
81
                </tbody>
106
            </table>
82
            </table>
107
            <input type="hidden" id="poId" value="$action.getPurchaseOrder().getId()"/>
83
            <input type="hidden" id="poId" value="$action.getPurchaseOrder().getId()"/>
108
        </div>
84
        </div>
109
    </body>
85
    </body>
-
 
86
    <script type="text/javascript">
-
 
87
    	$("td input:not([readonly])").change(function(){
-
 
88
    		if($(this).value() > 0){
-
 
89
    			updateModelNameInvoicePrice(this, $(this).data('id'), $(this).value(), $action.getPurchaseOrder().getId());
-
 
90
    		} 
-
 
91
    	});
-
 
92
    </script>
110
</html>
93
</html>
111
94