Subversion Repositories SmartDukaan

Rev

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


<script type="text/javascript">

    $(document).ready(function () {
        
      var dtable = $('#vendors-pricing-request-table').DataTable({
           
            "scrollX": true,
            "scrollCollapse": true,
       });
    
    });
   
    
</script>

<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>PRICING REQUESTS</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>Vendor Catalog Pricing Requests</li>       
                                                                
                        </ol>
                </div>
        </div>

                <div class="row">
                <div class="col-lg-12">
                    <table class="table table-border table-condensed table-bordered" id="vendors-pricing-request-table" style="width:100%">
                                <thead>
                                        <tr>
                                        
                                                <th>Vendor Id</th>
                                                <th>Vendor Name</th>
                                                <th>Catalog Id</th>
                                                <th>Item</th>
                                                <th>TP</th>
                                                <th>DP</th>
                                            <th>MOP</th>
                                            <th>Effected On</th>
                                            <th>Created By</th>
                                        
                                            <th>Approve</th>
                                             <th>Reject</th>
                                           
                                        </tr>
                                </thead>
                                <tbody>
                                        #if(!$vendorCatalogPricingRequests.isEmpty())
                                                #foreach( $vendorPricingRequest in $vendorCatalogPricingRequests )
                                                        <tr  data-id="$vendorPricingRequest.getId()">
                                                                <td>$vendorPricingRequest.getVendorId()</td>
                                                                <td>$vendorMap.get($vendorPricingRequest.getVendorId()).getName()</td>
                                                            <td>$vendorPricingRequest.getCatalogId()</td>
                                                            <td>$itemMap.get($vendorPricingRequest.getCatalogId()).get(0).getItemDescriptionNoColor()</td>
                                                                <td>$vendorPricingRequest.getTransferPrice()</td>
                                                                <td>$vendorPricingRequest.getDealerPrice()</td>
                                                                <td>$vendorPricingRequest.getMop()</td>
                                                                <td>$vendorPricingRequest.getEffectedOn().format($dateFormatter)</td>
                                                                <td>$authMap.get($vendorPricingRequest.getCreatedBy()).getFullName() </td>
                                                                
                                                                <td>
                                                                    <button type="button" data-id="$vendorPricingRequest.getId()"
                                                                            class="btn btn-primary vendor-pricing-approve-request-send">
                                                                            
                                                                            APPROVE
                                                                    </button>
                                                                </td>
                                                                
                                                                <td>
                                                                    <button type="button" data-id="$vendorPricingRequest.getId()"
                                                                            class="btn btn-primary vendor-pricing-rejected-request-send">
                                                                            
                                                                            REJECT
                                                                    </button>
                                                                </td>
                                                        </tr>
                                                #end
                                        #else
                                                <tr>
                                                        <td colspan="10" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>
    </div>
        

</section>