Subversion Repositories SmartDukaan

Rev

Rev 14072 | Rev 21874 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5591 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>
4
        <script type="text/javascript" src="/js/jquery-1.4.2.js"></script>
5
		<title>
6
			Suppliers
7
		</title>
8
        <script>
9
            $(document).ready(function() {
10
                $('td').css('white-space', 'nowrap');
11
            });
12
        </script>
13
	</head>
14
	<body>
15
        <a href="/inventory">Go to Home page</a>
16
        <br />                
17
		<h2>Suppliers</h2>
18
        <span style="color:red">
19
            $action.getErrorMessage()
20
        </span>
21
        <div >
22
            #if($action.isPermitted("supplier:create"))
23
            <a href="/inventory/supplier/new">Add new Supplier</a>
24
            #end
25
        </div>
26
        <table border="1">
27
            <thead >
28
                <tr >
29
                    <th >Id</th>
30
                    <th >Name</th>
31
                    <th >Phone</th>
32
                    <th >Fax</th>
21873 amit.gupta 33
                    <th >GSTN</th>
5591 mandeep.dh 34
                    <th >Pan</th>
12361 manish.sha 35
					<th >State</th>
14072 manish.sha 36
					<th >PO Validity Days Limit</th>
5591 mandeep.dh 37
                    <th >Head</th>
38
                    <th >Head email</th>
39
                    <th >Contact Person</th>
40
                    <th >Contact email</th>
41
                    <th >Contact phone</th>
42
                    <th >Contact fax</th>
43
                    <th >Registered address</th>
44
                    <th >Communicaton address</th>
45
                </tr>
46
            </thead>
47
            <tbody >
48
                #foreach($supplier in $action.getSuppliers())
49
                    <tr >
50
                        <td >$supplier.getId()</td>
51
                        <td >
52
                            #if($action.isPermitted("supplier:edit"))
53
                                <a href="/inventory/supplier/$supplier.getId()/edit">$supplier.getName()</a>
54
                            #else
55
                                $supplier.getName()
56
                            #end
57
                        </td>
58
                        <td >$supplier.getPhone()</td>
59
                        <td >$supplier.getFax()</td>
21873 amit.gupta 60
                        <td >$supplier.getGstin()</td>
5591 mandeep.dh 61
                        <td >$supplier.getPan()</td>
21873 amit.gupta 62
                        <td>$$action.getStateName(supplier.getStateId())</td>
14072 manish.sha 63
                        <td >$supplier.getPoValidityLimit()</td>
5591 mandeep.dh 64
                        <td >$supplier.getHeadName()</td>
65
                        <td >$supplier.getHeadEmail()</td>
66
                        <td >$supplier.getContactName()</td>
67
                        <td >$supplier.getContactEmail()</td>
68
                        <td >$supplier.getContactPhone()</td>
69
                        <td >$supplier.getContactFax()</td>
70
                        <td >$supplier.getRegisteredAddress()</td>
71
                        <td >$supplier.getCommunicationAddress()</td>
72
                    </tr>
73
                #end
74
            </tbody>
75
        </table>
76
    </body>
77
</html>