Subversion Repositories SmartDukaan

Rev

Rev 30465 | 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_genius"></i>Pending Grn</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                <li><i class="icon_genius"></i>Activated Imeis, awaiting GRN to complete</li>
            </ol>
        </div>
    </div>

    <div id="catalog-table">
        <div class="row">
            <div class="col-lg-12">
                <table class="table table-striped table-advance table-hover">
                    <thead>
                    <tr>
                        <th>Item Code</th>
                        <th>Brand</th>
                        <th>Model Name</th>
                        <th>Model Number</th>
                        <th>Color</th>
                        <th>IMEI</th>
                        <th>Invoice Number</th>
                        <th>Delivered On</th>
                        <th>Activated On</th>
                        <th>Action</th>
                    </tr>
                    </thead>
                    <tbody>
                        #if(!$imeiActivationTimestampModels.isEmpty())
                            #foreach( $imeiActivationTimestampModel in $imeiActivationTimestampModels )
                                #set ($orderId=$imeiActivationTimestampModel.getOrderId())
                                #set($order=$ordersMap.get($orderId))
                            <tr data-invoicenumber="$ordersMap.get($orderId).getInvoiceNumber">
                                <td>$order.getLineItem().getItemId()</td>
                                <td>$order.getLineItem().getBrand()</td>
                                <td>$order.getLineItem().getModelName()</td>
                                <td>$order.getLineItem().getModelNumber()</td>
                                <td>$order.getLineItem().getItem().getColor()</td>
                                <td>$imeiActivationTimestampModel.getSerialNumber()</td>
                                <td>$order.getInvoiceNumber()</td>
                                #if($order.getDeliveryTimestamp())
                                    <td>$dateTimeFormatter.format($order.getDeliveryTimestamp())</td>
                                #else
                                    <td>-</td>
                                #end
                                <td>$dateTimeFormatter.format($imeiActivationTimestampModel.getActivationTimestamp())</td>
                                <td><a href="javascript:void(0)" class="activated_imeis_grn_complete"
                                       data-invoice="$order.getInvoiceNumber()">Complete Grn</a>
                                </td>
                            </tr>
                            #end
                        #else
                        <tr>
                            <td colspan="10" style="text-align:center;">Great, you have no Activated IMEIs in Stock :)
                            </td>
                        </tr>
                        #end
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</section>