Subversion Repositories SmartDukaan

Rev

Rev 28358 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<style>
.btn:hover, .btn:focus {
        color: grey;
        text-decoration: none;
}

.modal-dialog.modal-lg {
        left: 10%;
        right: auto;
        width: 80%;
}

.modal-content {
        background: white;
}

.border-highlight {
        border: 3px solid red;
}

td.highlight {
        background-color: yellowgreen !important;
}
</style>


<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header">
                                <i class="icon_document_alt"></i>Verified Order
                        </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>Verified Order</li>
                        </ol>
                </div>
        </div>



        <div id="pending-order-table">
                <div class="row">
                        <div class="col-lg-12">

                                <table class="table table-border table-condensed table-bordered"
                                        id="pending-order-item">
                                        <thead>
                                                <tr>
                                                        <th>OrderId</th>
                                                        <th>First Name</th>
                                                        <th>Last Name</th>
                                                        <th>Mobile</th>
                                                        <th>Order Status</th>
                                                        <th>Partner</th>
                                                        <th>Pay Method</th>
                                                        <th>Pay Mode</th>
                                                        <th>Order Item Id</th>
                                                        <th>Item Id</th>
                                                        <th>Item Details</th>
                                                        <th>Selling Price</th>
                                                        <th>Order Item Status</th>
                                                        <th>Created on</th>
                                                        <th>Verified On</th>

                                                </tr>
                                        </thead>
                                        <tbody>
                                                #if(!$pendingOrder.isEmpty()) #foreach( $request in
                                                $pendingOrderItem)
                                                <tr class="pendingOrder" data="$request.getItemId()">
                                                        <input type="hidden" id="poItemId" value="$request.getId()" />
                                                        <input type="hidden" id="poId" value="$request.getOrderId()" />
                                                        <td>$request.getOrderId()</td>
                                                        <td>$request.getPendingOrder().getCustomer().getFirstName()</td>
                                                        <td>$request.getPendingOrder().getCustomer().getLastName()</td>
                                                        <td>$request.getPendingOrder().getCustomer().getMobileNumber()</td>
                                                        <td>$request.getPendingOrder().getStatus()</td>
                                                        #if($customRetailersMap.get($request.getPendingOrder().getFofoId()))
                                                        <td>$customRetailersMap.get($request.getPendingOrder().getFofoId()).getBusinessName()</td>
                                                        #else
                                                        <td></td> #end
                                                        <td>$request.getPendingOrder().getPayMethodDescription()</td>
                                                        #if($request.getPendingOrder().getTotalAmount() ==
                                                        $request.getPendingOrder().getPaidAmount())
                                                        <td>ONLINE</td> #else
                                                        <td>OFFLINE</td> #end

                                                        <td>$request.getId()</td>
                                                        <td>$request.getItemId()</td>
                                                        <td>$request.getItemName()</td>
                                                        <td>$request.getSellingPrice()</td>
                                                        <td>$request.getStatus()</td>
                                                        <td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>

                                                        <td>$request.getVerifiedTimestamp().format($dateTimeFormatter)</td>


                                                </tr>
                                                #end
                                                <script type="text/javascript">
                                                        $(document).ready(function() {
                                                                $('#pending-order-item').dataTable({
                                                                        "bPaginate" : true,
                                                                        "bLengthChange" : true,
                                                                        "bFilter" : true,
                                                                        "bInfo" : false,
                                                                        "bAutoWidth" : false
                                                                });
                                                        });
                                                </script>
                                                #else
                                                <tr>
                                                        <td colspan="12" style="text-align: center;">NO MATCHING
                                                                DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                                #end
                                        </tbody>
                                </table>
                        </div>




                </div>
        </div>
</section>