Subversion Repositories SmartDukaan

Rev

Rev 5110 | Rev 9416 | 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>
4754 mandeep.dh 4
        <link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
7410 amar.kumar 5
        <script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
6
		<script type = "text/javascript" src = "/inventory/js/purchase-order-common.js"></script>
7
		<script type = "text/javascript" src = "/inventory/js/purchase-order-events.js"></script>
4687 mandeep.dh 8
		<title>
9
			Warehouse Management::Purchase Orders
10
		</title>
11
	</head>
12
	<body>
13
        <a href="/inventory">Go to Home page</a>
4754 mandeep.dh 14
        <br />
4687 mandeep.dh 15
		<h2>Start or Continue a Purchase</h2>
16
		<p>Open Purchase Orders</p>
17
		#set($purchaseOrders = $action.getPurchaseOrders())
4754 mandeep.dh 18
        <table class="bordered">
19
            <thead >
20
                <tr >
21
                    <th >PO Number</th>
5110 mandeep.dh 22
                    <th >Warehouse</th>
4754 mandeep.dh 23
                    <th >Creation Date</th>
24
                    #if($action.isPermitted("po:amend"))
25
                        <th ></th>
7410 amar.kumar 26
						<th ></th>
4754 mandeep.dh 27
                    #end
28
                </tr>
29
            </thead>
30
            <tbody >
31
                #foreach($purchaseOrder in $purchaseOrders)
32
                    <tr >                       
33
                        <td >
34
                            #if($action.isPermitted("po:receive"))
35
                            <a href="/inventory/purchase-order/$purchaseOrder.getId()">$purchaseOrder.getPoNumber()</a>
36
                            #else
37
                                $purchaseOrder.getPoNumber()
38
                            #end
39
                        </td>
5110 mandeep.dh 40
                        <td >$action.getOurGOODWarehouses().get($purchaseOrder.getSupplierId()).getDisplayName()</td>
4754 mandeep.dh 41
                        <td >$action.convertDate($purchaseOrder.getCreatedAt())</td>
42
                        #if($action.isPermitted("po:amend"))
43
                            <td ><a href="/inventory/purchase-order/$purchaseOrder.getId()/edit">Edit</a></td>
7410 amar.kumar 44
							<td ><input type = "button" id="close-po" poId = "$purchaseOrder.getId()" value = "Close PO"/></td>
45
						#end
4754 mandeep.dh 46
                    </tr>
47
                #end
48
            </tbody>
49
        </table>
4687 mandeep.dh 50
    </body>
4754 mandeep.dh 51
</html>