Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<style>
        .btn:hover{
                color: grey;
                text-decoration: none;
        }
        .btn-primary:hover{
                color: grey;
                text-decoration: none;
        }
        .retailer-details{
                cursor:pointer;
        }
</style>

<section class="wrapper">            
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>Pending Indent Items</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>Pending Indent Items</li>
                        </ol>
                </div>
        </div>
        
    <div>
                 <div class="row">
                        <div class="col-lg-8" id="indent-container">
                                <table class="table table-striped table-condensed table-bordered" id="entire-catalog-table">
                                        <thead>
                                            <tr>
                                                                <th>Id</th>
                                                        <th>Description</th>
                                                        <th>Selling Price</th>
                                                        <th>MOP</th>
                                                        <th>Stock</th>
                                                        <th>30 days Sale</th>
                                                        <th>Requested Quantity</th>
                                                        <th>Allocated Quantity</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                                #foreach( $tagListing in $tagListings )
                                                        #set($requestedQty=0)
                                                                #if($pendingIndentItemIdMap.get($tagListing.getItemId()) and $pendingIndentItemIdMap.get($tagListing.getItemId()).getRequestedQuantity() > 0 )
                                                                #set($requestedQty=$pendingIndentItemIdMap.get($tagListing.getItemId()).getRequestedQuantity())
                                                                #set($allocatedQty=$pendingIndentItemIdMap.get($tagListing.getItemId()).getAllocatedQuantity())
                                                                #end
                                                <tr>
                                                        <td>$tagListing.getItemId()</td>
                                                        <td>$tagListing.getItemDescription()</td>
                                                        <td>$tagListing.getSellingPrice()</td>
                                                        <td>$tagListing.getMop()</td>
                                                        <td>$tagListing.getStockInHand()</td>
                                                        <td>$tagListing.getLast30DaysSale()</td>
                                                        <td>$requestedQty</td>
                                                        <td>$allocatedQty</td>
                                                </tr>
                                                #end
                                        </tbody>
                                </table>
                        </div>
                </div>
        </div>
</section>
<script type="text/javascript">
/* Initialise the table with the required column ordering data types */
$(document).ready(function() {
    indentTable = $('#entire-catalog-table').DataTable();
});

</script>