Subversion Repositories SmartDukaan

Rev

Rev 36132 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35806 amit 1
<section class="wrapper">
2
    <div class="row">
3
        <div class="col-lg-12">
4
            <h3 class="page-header"><i class="icon_document_alt"></i>GRN Correction Approval</h3>
5
            <ol class="breadcrumb">
6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
7
                <li><i class="icon_document_alt"></i>GRN Correction Approval</li>
8
            </ol>
9
        </div>
10
    </div>
11
 
12
    <div class="row">
13
        <div class="col-lg-5">
14
            <table id="pending-corrections" class="table table-striped table-advance table-hover">
15
                <thead>
16
                    <tr>
17
                        <th>Request Id</th>
18
                        <th>Invoice Id</th>
19
                        <th>Invoice #</th>
20
                        <th>Requested By</th>
21
                        <th>Requested At</th>
22
                        <th>Remarks</th>
23
                    </tr>
24
                </thead>
25
                <tbody>
26
                    #foreach($req in $pendingRequests)
27
                    <tr>
28
                        <td><a onclick="loadGrnCorrectionRequestDetail($req.getId())">$req.getId()</a></td>
29
                        <td>$req.getInvoiceId()</td>
30
                        <td>
31
                            #if($invoiceMap.get($req.getInvoiceId()))
32
                                $invoiceMap.get($req.getInvoiceId()).getInvoiceNumber()
33
                            #end
34
                        </td>
35
                        <td>
36
                            #if($requesterMap.get($req.getRequestedBy()))
37
                                $requesterMap.get($req.getRequestedBy()).getFullName()
38
                            #end
39
                        </td>
40
                        <td>$req.getRequestedAt().toLocalDate()</td>
41
                        <td>$!req.getRemarks()</td>
42
                    </tr>
43
                    #end
44
                </tbody>
45
            </table>
46
        </div>
47
 
48
        <div class="col-lg-7">
49
            <div class="grnCorrectionRequestDetailContainer">
50
            </div>
51
        </div>
52
    </div>
53
</section>
54
 
55
<script>
56
    $(function() {
57
        $('#pending-corrections').DataTable({
58
            "order": [[0, "desc"]],
59
            "pageLength": 25
60
        });
61
    });
62
</script>