Subversion Repositories SmartDukaan

Rev

Rev 30225 | 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">
            <h3 class="page-header"><i class="icon_document_alt"></i>Credited Income</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>Credited Income</li>
            </ol>
        </div>
    </div>
    
    <div class="row">
                                    <div class="form-group">
                                                      <label class="control-label col-lg-1" for="months" style="color:green;">Select Month</label>
                                                      <div class="col-lg-2">
                                                        <select class="form-control input-sm" id = "month-wise-income"  name="month-wise-income" placeholder="months" style="margin:auto;">
                                                                    <option value="" disabled selected>month</option>
                                                                        #foreach($mVM in $monthValueMap.entrySet())
                                                                                #if($mVM.getKey()== $month )
                                                                <option value="$mVM.getKey()" selected>$mVM.getValue()</option>
                                                                #else
                                                                <option value="$mVM.getKey()">$mVM.getValue()</option>
                                                                #end
                                                        #end
                                                        </select> 
                                                      </div>
                                                      
                                                    <div class="col-lg-3" style="color: green;">
                                                    <h4>Category Upgrade Margin
                                                      <i class='far fa-arrow-alt-circle-up'></i>
                                                    </h4>
                                               </div> 
                              </div>
                                                   
                                                  
                                                    
        </div>
    <div class="row">
      <div class="col-lg-4">
        <table class="table table-border table-condensed table-bordered" id="lmiCreditedIncome">

      <thead class="row htable">

            <tr style="color:black;">
            <th>Brand</th>
             <th>Purchase Qty</th>
            <th>Purchase Margin</th>
             <th>Sale Qty</th>
            <th>Sale Margin</th>
             <th>Total Income</th>
            
            </tr>
      </thead>
            <tbody>
             #foreach($key in $keySet)
              <tr class="brand-wise-income" data-brand="$key" data-month="$month" data-status="$status">
                    <td>$key</td>
           
                #if($lastMonthPurchaseInMarginMap.get($key).getQty())
                    <td>$lastMonthPurchaseInMarginMap.get($key).getQty()</td>
                #else
                   <td>--</td>
                #end
                #if($lastMonthPurchaseInMarginMap.get($key).getAmount())
                   <td>$nf.format($lastMonthPurchaseInMarginMap.get($key).getAmount())</td>
                #else
                   <td>-- </td>
                #end
                #if($lastMonthSaleMarginMap.get($key).getQty())
                  <td>$lastMonthSaleMarginMap.get($key).getQty()</td>
                #else
                  <td>--</td>
                #end
                #if($lastMonthCategoryUpgradeMarginMap.get($key))
                
                     #if($lastMonthSaleMarginMap.get($key).getAmount())
                
                        <td>$nf.format($lastMonthSaleMarginMap.get($key).getAmount()) <i class='far fa-arrow-alt-circle-up' style="color: green;" title="$nf.format($lastMonthCategoryUpgradeMarginMap.get($key)) Category Upgrade Additional Margin."></i></td>
                    #else
                        <td>-- <i class='far fa-arrow-alt-circle-up' style="color: green;" title="$nf.format($lastMonthCategoryUpgradeMarginMap.get($key)) Category Upgrade Additional Margin."></i></td>
                     #end
                
                
                #else
                     #if($lastMonthSaleMarginMap.get($key).getAmount())
                
                        <td >$nf.format($lastMonthSaleMarginMap.get($key).getAmount()) </td>
                    #else
                        <td>--</td>
                     #end
                
                #end
               
             
                #if($totalAmountMap.get($key))
                  
                   <td>$nf.format($totalAmountMap.get($key))</td>
                #else
                  <td>--</td>
                #end
                 
                </tr>       
             #end
              </tbody>
        </table>          
        </div>
        
     
     <div class="col-lg-8 brand-wise-income-container">  </div>
  
    </div>
    
    <div class="imei-wise-income-container">  </div>
  
 
    
    </section>
      
     
    <script>
 $(document).ready(function() {
          var table = $('#lmiCreditedIncome').DataTable();
 
    $('#lmiCreditedIncome tbody').on( 'click', 'tr', function () {
        if ( $(this).hasClass('selected') ) {
            $(this).removeClass('selected');
        }
        else {
            table.$('tr.selected').removeClass('selected');
            $(this).addClass('selected');
        }
    } );
 
    $('#button').click( function () {
        table.row('.selected').remove().draw( false );
    } );
} );
  
   
    
    </script>