Subversion Repositories SmartDukaan

Rev

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

<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <table class="table table-border table-condensed table-bordered" id="imeiWiseIncome">

                <thead class="row htable">

                <tr style="color:black;">
                    <th>Serial Number</th>
                    <th>Purchase Date</th>
                    #foreach($purchase in $purchaseList)
                        <th>$purchase</th>
                    #end
                    <th>Sale Date</th>
                    #foreach($sale in $saleList)
                        <th>$sale</th>
                    #end
                    <th>(Selling Price) - (DP)</th>
                    <th>Pending Sale Margin</th>
                    <th>Total Income</th>

                </tr>
                </thead>
                <tbody>
                    #foreach($entry in $imeiWiseIncomeMapOfMap.entrySet())
                        #set($imeiWiseIncome = $entry.getValue())
                    <tr>
                        #if($lastmonthCategoryUpgradeMargin.get($entry.getKey()))
                            <td>$entry.getKey() <i class='far fa-arrow-alt-circle-up' style="color: green;"
                                                   title="$nf.format($lastmonthCategoryUpgradeMargin.get($entry.getKey())) Category Upgrade Additional Margin."></i>
                            </td>
                        #else
                            <td>$entry.getKey()</td>
                        #end
                        #if($imeiWiseIncome.getPurchseDate())
                            <td>$imeiWiseIncome.getPurchseDate().format($datehiphenFormatter)</td>
                        #else
                            <td>-</td>
                        #end
                        #foreach($purchase in $purchaseList)
                            <td>
                                #if($lastMonthPurchaseInMapPairMap.get($entry.getKey()).get($purchase))
                                    $nf.format($lastMonthPurchaseInMapPairMap.get($entry.getKey()).get($purchase))
                                #else
                                    -
                                #end
                            </td>
                        #end
                        #if($imeiWiseIncome.getSaleDate())
                            <td>$imeiWiseIncome.getSaleDate().format($datehiphenFormatter)</td>
                        #else
                <td>--</td>
                #end

                        #foreach($sale in $saleList)
                            <td>
                                #if($lastMonthCreditedMapPairMap.get($entry.getKey()).get($sale))
                                    $nf.format($lastMonthCreditedMapPairMap.get($entry.getKey()).get($sale))
                                #else
                                    -
                                #end
                            </td>
                        #end

                        #if($imeiWiseIncome.getFrontMargin())
                            <td>$nf.format($imeiWiseIncome.getFrontMargin())</td>
                        #else
                            <td>--</td>
                        #end

                        #if($imeiWisePendingSaleAmount.get($entry.getKey()))
                            <td>$nf.format($imeiWisePendingSaleAmount.get($entry.getKey()))</td>
                        #else
                            <td>--</td>
                        #end
                        #if($imeiWiseIncome.getTotalIncome())
                            <td>$nf.format($imeiWiseIncome.getTotalIncome())</td>
                        #else
                            <td>--</td>
                        #end


                    </tr>
                    #end
             </tbody>
        </table>          
        </div>
        </div>
        
    </section>
      
     
    <script>

        var dtable = $('#imeiWiseIncome').DataTable(
                {

                    "bPaginate": true,
                    "bLengthChange": true,
                    "bFilter": true,
                    "bInfo": false,
                    "bAutoWidth": false,
                   
                      "select": 'single'
     });
  
   
    
    </script>