Subversion Repositories SmartDukaan

Rev

Rev 30225 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30055 manish 1
 
2
 <section class="wrapper">
3
    <div class="row">
4
        <div class="col-lg-12">
5
            <h3 class="page-header"><i class="icon_document_alt"></i>Credited Income</h3>
6
            <ol class="breadcrumb">
7
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
8
                <li><i class="icon_document_alt"></i>Credited Income</li>
9
            </ol>
10
        </div>
11
    </div>
12
 
13
    <div class="row">
14
                		    <div class="form-group">
15
						      <label class="control-label col-lg-1" for="months" style="color:green;">Select Month</label>
16
						      <div class="col-lg-2">
17
						        <select class="form-control input-sm" id = "month-wise-income"  name="month-wise-income" placeholder="months" style="margin:auto;">
18
								    <option value="" disabled selected>month</option>
19
									#foreach($mVM in $monthValueMap.entrySet())
20
										#if($mVM.getKey()== $month )
21
					             		<option value="$mVM.getKey()" selected>$mVM.getValue()</option>
22
					             		#else
23
					             		<option value="$mVM.getKey()">$mVM.getValue()</option>
24
					             		#end
25
				             		#end
26
						        </select> 
27
						      </div>
28
 
29
						    <div class="col-lg-3" style="color: green;">
30
						    <h4>Category Upgrade Margin
31
						      <i class='far fa-arrow-alt-circle-up'></i>
32
						    </h4>
33
					       </div> 
34
			      </div>
35
 
36
 
37
 
38
	</div>
39
    <div class="row">
40
      <div class="col-lg-4">
41
        <table class="table table-border table-condensed table-bordered" id="lmiCreditedIncome">
42
 
43
      <thead class="row htable">
44
 
45
            <tr style="color:black;">
46
            <th>Brand</th>
47
             <th>Purchase Qty</th>
48
            <th>Purchase Margin</th>
49
             <th>Sale Qty</th>
50
            <th>Sale Margin</th>
51
             <th>Total Income</th>
52
 
53
            </tr>
54
      </thead>
55
            <tbody>
56
             #foreach($key in $keySet)
57
              <tr class="brand-wise-income" data-brand="$key" data-month="$month" data-status="$status">
58
                    <td>$key</td>
59
 
60
                #if($lastMonthPurchaseInMarginMap.get($key).getQty())
61
                    <td>$lastMonthPurchaseInMarginMap.get($key).getQty()</td>
62
                #else
63
                   <td>--</td>
64
                #end
65
                #if($lastMonthPurchaseInMarginMap.get($key).getAmount())
66
                   <td>$nf.format($lastMonthPurchaseInMarginMap.get($key).getAmount())</td>
67
                #else
68
                   <td>-- </td>
69
                #end
70
                #if($lastMonthSaleMarginMap.get($key).getQty())
71
                  <td>$lastMonthSaleMarginMap.get($key).getQty()</td>
72
                #else
73
                  <td>--</td>
74
                #end
75
                #if($lastMonthCategoryUpgradeMarginMap.get($key))
76
 
77
                     #if($lastMonthSaleMarginMap.get($key).getAmount())
78
 
79
                        <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>
80
                    #else
81
                        <td>-- <i class='far fa-arrow-alt-circle-up' style="color: green;" title="$nf.format($lastMonthCategoryUpgradeMarginMap.get($key)) Category Upgrade Additional Margin."></i></td>
82
                     #end
83
 
84
 
85
                #else
86
                     #if($lastMonthSaleMarginMap.get($key).getAmount())
87
 
88
                        <td >$nf.format($lastMonthSaleMarginMap.get($key).getAmount()) </td>
89
                    #else
90
                        <td>--</td>
91
                     #end
92
 
93
                #end
94
 
95
 
96
                #if($totalAmountMap.get($key))
97
 
98
                   <td>$nf.format($totalAmountMap.get($key))</td>
99
                #else
100
                  <td>--</td>
101
                #end
102
 
103
                </tr>       
104
             #end
105
              </tbody>
106
        </table>          
107
        </div>
108
 
109
 
110
     <div class="col-lg-8 brand-wise-income-container">  </div>
111
 
112
    </div>
113
 
114
    <div class="imei-wise-income-container">  </div>
115
 
116
 
117
 
118
    </section>
119
 
120
 
121
    <script>
122
 $(document).ready(function() {
123
          var table = $('#lmiCreditedIncome').DataTable();
124
 
125
    $('#lmiCreditedIncome tbody').on( 'click', 'tr', function () {
126
        if ( $(this).hasClass('selected') ) {
127
            $(this).removeClass('selected');
128
        }
129
        else {
130
            table.$('tr.selected').removeClass('selected');
131
            $(this).addClass('selected');
132
        }
133
    } );
134
 
135
    $('#button').click( function () {
136
        table.row('.selected').remove().draw( false );
137
    } );
138
} );
139
 
140
 
141
 
142
    </script>
143