Subversion Repositories SmartDukaan

Rev

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


        <table class="table table-border table-condensed table-bordered" id="brandWiseIncome">

        <thead class="row htable">

            <tr style="color:black;">
              <th>Model Name</th>
              <th>Purchase Qty</th>
            <th>Purchase Margin</th>
             <th>Sale Qty</th>
            <th>Sale Margin</th>
           <th>Total Amount</th>
            </tr>
      </thead>
            <tbody>
             #foreach($modelWiseEntry in $modelWiseMap.entrySet())
           
            #if($modelWiseEntry.getValue().getCatalogItemId())
               <tr class="imei_wise_income" data-catalogitemid="$modelWiseEntry.getValue().getCatalogItemId()" data-month="$month">
            #else
               <tr class="imei_wise_income" data-catalogitemid="$purchaseWiseMap.get($modelWiseEntry.getKey()).getCatalogItemId()" data-month="$month">
            #end
              
              #if($modelWiseEntry.getValue().getModelName())
                <td>$modelWiseEntry.getValue().getModelName() $modelWiseEntry.getKey()</td>
                #else
                <td>$modelWiseEntry.getKey()</td>
              #end
           
              #if($purchaseWiseMap.get($modelWiseEntry.getKey()).getQty())
                 <td>$purchaseWiseMap.get($modelWiseEntry.getKey()).getQty()</td>
              #else
                 <td>--</td>
              #end
              #if($purchaseWiseMap.get($modelWiseEntry.getKey()).getAmount())
                 <td>$nf.format($purchaseWiseMap.get($modelWiseEntry.getKey()).getAmount())</td>
              #else
                 <td>--</td>
              #end
              
              #if($modelWiseEntry.getValue().getQty() )
                  <td>$modelWiseEntry.getValue().getQty()</td>
              #else
                   <td>--</td>
              #end
              
             #if($categoryUpradeBrandModelMap.get($modelWiseEntry.getKey()))
          
               #if($modelWiseEntry.getValue().getAmount())
                  <td>$nf.format($modelWiseEntry.getValue().getAmount()) <i class='far fa-arrow-alt-circle-up' style="color: green;" title="$nf.format($categoryUpradeBrandModelMap.get($modelWiseEntry.getKey())) Category Upgrade Additional Margin."></i></td>
              #else
                  <td> --  <i class='far fa-arrow-alt-circle-up' style="color: green;" title="$nf.format($categoryUpradeBrandModelMap.get($modelWiseEntry.getKey())) Category Upgrade Additional Margin."></i></td>
              #end
              #else
              #if($modelWiseEntry.getValue().getAmount())
                  <td>$nf.format($modelWiseEntry.getValue().getAmount()) </td>
              #else
                  <td>--</td>
              #end
              
              #end
              
              #if($modelWiseTotalAmount.get($modelWiseEntry.getKey()))
                  <td>$nf.format($modelWiseTotalAmount.get($modelWiseEntry.getKey()))</td>
              #else
                   <td>--</td>
              #end
              
           </tr>       
            #end
           </tbody>
    
    <script>

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

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