Subversion Repositories SmartDukaan

Rev

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