Subversion Repositories SmartDukaan

Rev

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




    <div class="row">

        <div class="col-lg-12">
            <table id="saleDetail" class="table table-striped table-advance table-hover" style="width:100%">
                <thead>
                <tr>
                    <th>Name</th>
                    <th>Code</th>
                    #foreach($ym in $yearMonth)
                
                    <th>$ym.format($dateYearMonthFormatter)</th>
                    #end
                     </tr>
                </thead>
                <tbody>
                    #foreach($name in $customRetailerMap.entrySet())
                    <tr>
                     <td>$name.getValue().getBusinessName()</td>
                       <td>$name.getValue().getCode()</td>
                    #foreach($ym in $yearMonth)
                     #if($partnerMonthSaleMap.get($name.getValue().getPartnerId()).get($ym))
                    <td class="currency">$partnerMonthSaleMap.get($name.getValue().getPartnerId()).get($ym)</td>
                    #else
                    <td>0</td>
                    #end
                    #end
                     
                     </tr>
                    #end
                </tbody>
            </table>
        </div>


    </div>


   

 
</section>



<script type="text/javascript">


        var table = $('#saleDetail').DataTable({
            "lengthMenu": [10, 25, 50, 75, 100, 250, 1000],
            "scrollX": true,

            orderCellsTop: true,
            fixedHeader: true
        });


</script>