Subversion Repositories SmartDukaan

Rev

Rev 9416 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9416 Rev 9829
Line 22... Line 22...
22
                    <th >Warehouse</th>
22
                    <th >Warehouse</th>
23
                    <th >Creation Date</th>
23
                    <th >Creation Date</th>
24
                    #if($action.isPermitted("po:amend"))
24
                    #if($action.isPermitted("po:amend"))
25
                        <th ></th>
25
                        <th ></th>
26
						<th ></th>
26
						<th ></th>
27
						#if($action.isPermitted("po:changeWarehouse"))
27
						##if($action.isPermitted("po:changeWarehouse"))
28
                            <th></th>
28
                        <th></th>
29
						#end
29
						##end
30
                    #end
30
                    #end
31
                </tr>
31
                </tr>
32
            </thead>
32
            </thead>
33
            <tbody >
33
            <tbody >
34
                #foreach($purchaseOrder in $purchaseOrders)
34
                #foreach($purchaseOrder in $purchaseOrders)
Line 43... Line 43...
43
                        <td >$action.getOurGOODWarehouses().get($purchaseOrder.getSupplierId()).getDisplayName()</td>
43
                        <td >$action.getOurGOODWarehouses().get($purchaseOrder.getSupplierId()).getDisplayName()</td>
44
                        <td >$action.convertDate($purchaseOrder.getCreatedAt())</td>
44
                        <td >$action.convertDate($purchaseOrder.getCreatedAt())</td>
45
                        #if($action.isPermitted("po:amend"))
45
                        #if($action.isPermitted("po:amend"))
46
                            <td ><a href="/inventory/purchase-order/$purchaseOrder.getId()/edit">Edit</a></td>
46
                            <td ><a href="/inventory/purchase-order/$purchaseOrder.getId()/edit">Edit</a></td>
47
							<td ><input type = "button" id="close-po" poId = "$purchaseOrder.getId()" value = "Close PO"/></td>
47
							<td ><input type = "button" id="close-po" poId = "$purchaseOrder.getId()" value = "Close PO"/></td>
48
							#if($action.isPermitted("po:changeWarehouse"))
48
							##if($action.isPermitted("po:changeWarehouse"))
-
 
49
								<td >
49
								<td ><input type = "button" id="change-po-warehouse" poId = "$purchaseOrder.getId()" value = "Change Warehouse"/></td>
50
									<input type = "button" class ="change-po-warehouse" poId = "$purchaseOrder.getId()" value = "Change Warehouse"/>
-
 
51
									<form class = "change-po-warehouse-form hidden" method="post" action="/inventory/purchase-order!changeWarehouseForPO"> 
-
 
52
    									<span>WarehouseId : </span>
-
 
53
    									<input type = "text" name = "warehouseId" pattern = "\d*" required /></br>
-
 
54
    									<input type = "hidden" name = "id" value = "$purchaseOrder.getId()" /> 
-
 
55
    									<input type = "submit" value = "Change Warehouse" /></br>
-
 
56
    									<input type = "button" class = "cancel-change-po-warehouse" value = "Cancel"/>
-
 
57
                                	</form>
-
 
58
								</td>
50
							#end
59
							##end
51
						#end
60
						#end
52
                    </tr>
61
                    </tr>
53
                #end
62
                #end
54
            </tbody>
63
            </tbody>
55
        </table>
64
        </table>