Subversion Repositories SmartDukaan

Rev

Rev 35806 | Rev 36133 | Go to most recent revision | Details | Compare with Previous | 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>
36132 amit 20
                        <th>Invoice Date</th>
35806 amit 21
                        <th>Requested By</th>
22
                        <th>Requested At</th>
23
                        <th>Remarks</th>
24
                    </tr>
25
                </thead>
26
                <tbody>
27
                    #foreach($req in $pendingRequests)
28
                    <tr>
29
                        <td><a onclick="loadGrnCorrectionRequestDetail($req.getId())">$req.getId()</a></td>
30
                        <td>$req.getInvoiceId()</td>
31
                        <td>
32
                            #if($invoiceMap.get($req.getInvoiceId()))
33
                                $invoiceMap.get($req.getInvoiceId()).getInvoiceNumber()
34
                            #end
35
                        </td>
36
                        <td>
36132 amit 37
                            #if($invoiceMap.get($req.getInvoiceId()) && $invoiceMap.get($req.getInvoiceId()).getInvoiceDate())
38
                            $invoiceMap.get($req.getInvoiceId()).getInvoiceDate().toLocalDate()
39
                            #end
40
                        </td>
41
                        <td>
35806 amit 42
                            #if($requesterMap.get($req.getRequestedBy()))
43
                                $requesterMap.get($req.getRequestedBy()).getFullName()
44
                            #end
45
                        </td>
46
                        <td>$req.getRequestedAt().toLocalDate()</td>
47
                        <td>$!req.getRemarks()</td>
48
                    </tr>
49
                    #end
50
                </tbody>
51
            </table>
52
        </div>
53
 
54
        <div class="col-lg-7">
55
            <div class="grnCorrectionRequestDetailContainer">
56
            </div>
57
        </div>
58
    </div>
59
</section>
60
 
61
<script>
62
    $(function() {
63
        $('#pending-corrections').DataTable({
64
            "order": [[0, "desc"]],
65
            "pageLength": 25
66
        });
67
    });
68
</script>