Subversion Repositories SmartDukaan

Rev

Rev 35806 | 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</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</li>
            </ol>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <div class="form-inline" style="margin-bottom:15px;">
                <div class="form-group">
                    <label>Date Range: </label>
                    <input type="text" name="correction-duration" class="form-control daterange-picker" style="width:220px;" />
                </div>
                <button class="btn btn-primary searchCorrectionInvoices" style="margin-left:10px;">Search</button>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-5">
            <table id="correction-invoices" class="table table-striped table-advance table-hover">
                <thead>
                    <tr>
                        <th>Invoice Id</th>
                        <th>Invoice #</th>
                        <th>Invoice Date</th>
                        <th>Supplier</th>
                        <th>Warehouse</th>
                        <th>Received By</th>
                    </tr>
                </thead>
                <tbody>
                    #foreach($invoice in $supplierInvoices)
                    <tr>
                        <td><a onclick="loadGrnCorrectionDetail($invoice.getId())">$invoice.getId()</a></td>
                        <td>$invoice.getInvoiceNumber()</td>
                        <td>$invoice.getInvoiceDate().format($dateFormatter)</td>
                        <td>#if($supplierMap.get($invoice.getSupplierId()))$supplierMap.get($invoice.getSupplierId()).getName()#end</td>
                        <td>#if($warehouseMap.get($invoice.getWarehouseId()))$warehouseMap.get($invoice.getWarehouseId())#end</td>
                        <td>$!invoice.getReceivedFrom()</td>
                    </tr>
                    #end
                </tbody>
            </table>
        </div>

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

<script>
    $(function () {
        $('input[name="correction-duration"]').daterangepicker({
            locale: { format: 'YYYY-MM-DD' },
            startDate: moment().subtract(30, 'days'),
            endDate: moment()
        });

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