Subversion Repositories SmartDukaan

Rev

Rev 36133 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="icon_document_alt"></i>GRN Correction Approval</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                <li><i class="icon_document_alt"></i>GRN Correction Approval</li>
            </ol>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-5">
            <table id="pending-corrections" class="table table-striped table-advance table-hover">
                <thead>
                    <tr>
                        <th>Request Id</th>
                        <th>Invoice Id</th>
                        <th>Invoice #</th>
                        <th>Invoice Date</th>
                        <th>GRN By</th>
                        <th>Requested By</th>
                        <th>Requested At</th>
                        <th>Remarks</th>
                    </tr>
                </thead>
                <tbody>
                    #foreach($req in $pendingRequests)
                    <tr>
                        <td><a onclick="loadGrnCorrectionRequestDetail($req.getId())">$req.getId()</a></td>
                        <td>$req.getInvoiceId()</td>
                        <td>
                            #if($invoiceMap.get($req.getInvoiceId()))
                                $invoiceMap.get($req.getInvoiceId()).getInvoiceNumber()
                            #end
                        </td>
                        <td>
                            #if($invoiceMap.get($req.getInvoiceId()) && $invoiceMap.get($req.getInvoiceId()).getInvoiceDate())
                            $invoiceMap.get($req.getInvoiceId()).getInvoiceDate().format($dateFormatter)
                            #end
                        </td>
                        <td>
                            #if($invoiceMap.get($req.getInvoiceId()))
                            $!invoiceMap.get($req.getInvoiceId()).getReceivedFrom()
                            #end
                        </td>
                        <td>
                            #if($requesterMap.get($req.getRequestedBy()))
                                $requesterMap.get($req.getRequestedBy()).getFullName()
                            #end
                        </td>
                        <td>$req.getRequestedAt().format($dateFormatter)</td>
                        <td>$!req.getRemarks()</td>
                    </tr>
                    #end
                </tbody>
            </table>
        </div>

        <div class="col-lg-7">
            <div class="grnCorrectionRequestDetailContainer">
            </div>
        </div>
    </div>
</section>

<script>
    $(function() {
        $('#pending-corrections').DataTable({
            "order": [[0, "desc"]],
            "pageLength": 25
        });
    });
</script>