Subversion Repositories SmartDukaan

Rev

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

Rev 7410 Rev 8182
Line 55... Line 55...
55
                    <tr >
55
                    <tr >
56
                        <th>Item ID</th>
56
                        <th>Item ID</th>
57
                        <th>Product</th>
57
                        <th>Product</th>
58
                        <th>Availability</th>
58
                        <th>Availability</th>
59
                        <th>Reserved</th>
59
                        <th>Reserved</th>
-
 
60
                        <th>Hold</th>
60
                        #if($action.isPermitted("inventory:edit"))
61
                        #if($action.isPermitted("inventory:edit"))
61
                        <th ></th>
62
                        <th ></th>
-
 
63
						#end
-
 
64
						#if($action.isPermitted("inventory:edit"))
-
 
65
                        <th ></th>
62
                        #end
66
                        #end
63
                    </tr>
67
                    </tr>
64
                </thead>
68
                </thead>
65
                <tbody >
69
                <tbody >
66
                    #foreach($item in $action.getInventory())
70
                    #foreach($item in $action.getInventory())
67
                        <tr >
71
                        <tr >
68
                            <td >$item.getId()</td> 
72
                            <td >$item.getId()</td> 
69
                            <td >$action.getName($item)</td>
73
                            <td >$action.getName($item)</td>
70
                            <td >$action.getAvailability($item)</td>
74
                            <td >$action.getAvailability($item)</td>
71
                            <td >$action.getReserved($item)</td>
75
                            <td >$action.getReserved($item)</td>
-
 
76
							<td >$action.getHeld($item)</td>
72
                            #if($action.isPermitted("inventory:edit"))
77
                            #if($action.isPermitted("inventory:edit"))
73
								<td >
78
								<td >
74
									#if($action.getWarehouse().getWarehouseType() == "THIRD_PARTY" || $action.getWarehouse().getWarehouseType()=="OURS_THIRDPARTY")
79
									#if($action.getWarehouse().getWarehouseType() == "THIRD_PARTY" || $action.getWarehouse().getWarehouseType()=="OURS_THIRDPARTY")
75
										<input class="increaseAvailabilityButton" type="button" value="Increase availability"/>
80
										<input class="increaseAvailabilityButton" type="button" value="Increase availability"/>
76
                                         <form class="increaseAvailabilityForm hidden" method="post" action="/inventory/current-inventory!increaseAvailability">
81
                                         <form class="increaseAvailabilityForm hidden" method="post" action="/inventory/current-inventory!increaseAvailability">
Line 83... Line 88...
83
                                                <input type="hidden" name="id" value="$action.getId()"/>
88
                                                <input type="hidden" name="id" value="$action.getId()"/>
84
                                            </div>
89
                                            </div>
85
                                         </form>
90
                                         </form>
86
									#end	 
91
									#end	 
87
								</td>
92
								</td>
-
 
93
							#end
-
 
94
							#if($action.isPermitted("inventory:edit"))
-
 
95
								<td >
-
 
96
									<input class="increaseHoldButton" type="button" value="Add/Update Hold Inventory"/>
-
 
97
                                     <form class="increaseHoldForm hidden" method="post" action="/inventory/current-inventory!increaseHoldQuantity">
-
 
98
                                        <div >
-
 
99
                                            <label >Quantity: </label>
-
 
100
                                            <input type="text" name="holdQuantity"/> <br />
-
 
101
											<select name = "source">
-
 
102
												<option value = "1">Website</option>
-
 
103
												<option value = "6">Ebay</option>
-
 
104
											</select>
-
 
105
    										<input type="submit" value="Add/Update Hold Inventory"/>
-
 
106
                                            <input type="button" value="Cancel" class="cancelHoldButton"/>
-
 
107
                                            <input type="hidden" name="itemId" value="$item.getId()"/>
-
 
108
                                            <input type="hidden" name="id" value="$action.getId()"/>
-
 
109
                                        </div>
-
 
110
                                     </form>
-
 
111
								</td>
88
                            #end
112
                            #end
89
                        </tr>
113
                        </tr>
90
                    #end
114
                    #end
91
                </tbody>
115
                </tbody>
92
            </table>
116
            </table>