Subversion Repositories SmartDukaan

Rev

Rev 32771 | Rev 33306 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32771 Rev 33182
Line 9... Line 9...
9
 
9
 
10
 
10
 
11
</script>
11
</script>
12
 
12
 
13
 
13
 
14
 
-
 
15
<section class="wrapper">
14
<section class="wrapper">
16
    <div class="row">
15
    <div class="row">
17
        <div class="col-lg-12">
16
        <div class="col-lg-12">
18
            <ol class="breadcrumb">
17
            <ol class="breadcrumb">
19
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("modelwisemargin.home")</a></li>
18
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage(
-
 
19
                    "modelwisemargin.home")</a></li>
20
                <li><i class="icon_document_alt"></i>IMEI WISE MARGINS</li>
20
                <li><i class="icon_document_alt"></i>IMEI WISE MARGINS</li>
21
            </ol>
21
            </ol>
22
        </div>
22
        </div>
23
    </div>
23
    </div>
24
    <div class="row">
24
    <div class="row">
25
 
25
 
26
  
26
 
27
     
-
 
28
         <div class="form-inline col-lg-4">
27
        <div class="form-inline col-lg-4">
29
            <div class="form-group">
28
            <div class="form-group">
30
 
29
 
31
 
30
 
32
                <label> #springMessage("modelwisemargin.checkmargins")</label>
31
                <label> #springMessage("modelwisemargin.checkmargins")</label>
33
 
32
 
34
                <div class="input-group top_search">
33
                <div class="input-group top_search">
35
                    <input type="text" class="form-control"
34
                    <input type="text" class="form-control"
36
                           id="scheme-imei-wise-search-text" autocomplete="off"
35
                           id="scheme-imei-wise-search-text" autocomplete="off"
-
 
36
                        #if($searchImei)
-
 
37
                           value="$searchImei"
-
 
38
                        #end
37
                           placeholder="Search for Imei"/> <span class="input-group-btn">
39
                           placeholder="Search for Imei"/> <span class="input-group-btn">
38
							<button class="btn btn-primary submit"
40
							<button class="btn btn-primary submit"
39
                                    id="scheme-imei-wise-search-button" type="button">#springMessage("modelwisemargin.go")</button>
41
                                    id="scheme-imei-wise-search-button" type="button">#springMessage(
-
 
42
                                "modelwisemargin.go")</button>
40
						</span>
43
						</span>
41
                </div>
44
                </div>
42
            </div>
45
            </div>
43
        </div><br><br>
46
        </div>
44
      
47
        <br><br>
-
 
48
 
45
      
49
        <div class="row">
46
       <div class="form-inline col-lg-4">
50
            <div class="form-inline col-lg-4">
47
            <div class="form-group">
51
                <div class="form-group">
-
 
52
 
48
 
53
 
-
 
54
                    <label> #if($customRetailer) <span
-
 
55
                            style="background-color:aquamarine; color:brown;margin-left:10px;"> $customRetailer.getBusinessName() </span> #end
-
 
56
                    </label>
49
 
57
 
50
                <label> #if($customRetailer) <span style="background-color:aquamarine; color:brown"> $customRetailer.getBusinessName() </span> #end</label>
-
 
51
 
58
 
52
        
59
                </div>
53
            </div>
60
            </div>
54
        </div>
-
 
55
    </div>
-
 
56
   <div id="schemes-table">
-
 
57
        <div class="row">
-
 
58
            <div class="col-lg-12">
61
            <div class="col-lg-3">
59
                <table class="table table-border table-condensed table-bordered"
-
 
60
                       id="sch-des">
-
 
61
                    <tbody>
-
 
62
                    <tr>
-
 
63
                        <th>ID</th>
62
                #if($schemeInOut)
64
                        <th>Name</th>
-
 
65
                        <th>Description</th>
63
                    <div style="padding: 12px">
66
                        <th>Type</th>
-
 
67
                        <th>Amount</th>
-
 
68
                        <th>Start Date</th>
-
 
69
                        <th>End Date</th>
-
 
70
                    </tr>
-
 
71
                        #if($schemes && !$schemes.isEmpty()) #foreach( $scheme in
-
 
72
                            $schemes )
-
 
73
                            #if($scheme.getAmountModel())
-
 
74
                            <tr data="$scheme.getId()">
-
 
75
                                <td>$scheme.getId()</td>
-
 
76
                                <td>$scheme.getName()</td>
-
 
77
                                <td>$scheme.getDescription()</td>
64
                        <span> <b> Model Name - $item.getItemDescription()</b></span>
78
                                <td>$scheme.getType()</td>
-
 
79
                                <td>$scheme.getAmountModel()</td>
-
 
80
                                <td>$scheme.getFormattedStartDateTime()</td>
-
 
81
                                <td>$dateTimeFormatter.format($scheme.getEndDateTime())</td>
-
 
82
                            </tr>
-
 
83
                            #end
-
 
84
                        #end #else $noData #end
-
 
-
 
65
 
85
                    </tbody>
66
                    </div>
86
                </table>
67
                #end
87
            </div>
68
            </div>
-
 
69
 
88
        </div>
70
        </div>
89
    </div>
-
 
90
 
71
 
91
    #if($schemeInOut || $offerPayouts)
-
 
92
        <div class="row">
72
        <div class="row">
93
            <div class="col-lg-12">
73
            <div class="col-lg-6">
94
                <h3 style="text-align:center; color:#4169e1;">IMEI Wise Margin Status</h3>
74
                <h3 style="text-align:center; color:#4169e1;">Purchase Billing Summary</h3>
95
                <div><h4>Net Margin - $nf.format($netEarnings)</h4></div>
-
 
96
                <table class="table table-border table-condensed table-bordered">
75
                <table class="table table-border table-condensed table-bordered">
97
                    <tr>
76
                    <tr>
98
                        <th>ID</th>
77
                        <th>Item Id</th>
99
                        <th>Name</th>
78
                        <th>Invoice Number</th>
100
                        <th>Description</th>
-
 
101
                        <th>Type</th>
79
                        <th>Buy Price</th>
-
 
80
 
102
                        <th>Amount</th>
81
                        <th>Invoice Date</th>
103
                        <th>Paid Amount</th>
-
 
104
                        <th>Status</th>
-
 
105
                        <th>Credit Timestamp</th>
-
 
106
 
82
 
107
                        <th>Description</th>
-
 
108
 
83
 
109
                    </tr>
84
                    </tr>
110
 
85
 
111
                    #if(!$schemeInOut && $schemeInOut.isEmpty() && !$offerPayouts && $offerPayouts.isEmpty())
86
                    #if($itemSaleSummaryModels && !$itemSaleSummaryModels.isEmpty())
112
                        $noData
87
                        #foreach($issm in $itemSaleSummaryModels)
113
                    #end
-
 
114
 
88
 
115
                    #if($schemeInOut && !$schemeInOut.isEmpty())
-
 
116
                        #foreach( $sio in $schemeInOut )
89
                            <tr>
117
                            <tr data="$schemeMap.get($sio.getSchemeId()).getId()">
-
 
118
                                <td>$schemeMap.get($sio.getSchemeId()).getId()</td>
90
                                <td>$issm.getLineItemImeiId()</td>
119
                                <td>$schemeMap.get($sio.getSchemeId()).getName()</td>
-
 
120
                                <td>$schemeMap.get($sio.getSchemeId()).getDescription()</td>
-
 
121
                                <td>$schemeMap.get($sio.getSchemeId()).getType()</td>
-
 
122
                                <td>$schemeMap.get($sio.getSchemeId()).getAmountModel()</td>
-
 
123
                                <td>$sio.getAmount()</td>
91
                                <td>$issm.getInvoiceNumber()</td>
124
                                <td>$sio.getStatus()</td>
92
                                <td>$issm.getBuyPrice()</td>
125
                                #if($sio.getCreditTimestamp().format($dateTimeFormatter))
-
 
126
                                    <td>$sio.getCreditTimestamp().format($dateTimeFormatter)</td>
-
 
127
                                #else
-
 
128
                                    <td>-</td>
-
 
129
                                #end
-
 
130
 
93
 
-
 
94
 
-
 
95
 
131
                                #if($sio.getStatusDescription())
96
                                #if($issm.getInvoiceDate().format($dateFormatter))
132
                                    <td>$sio.getStatusDescription()</td>
97
                                    <td>$issm.getInvoiceDate().format($dateFormatter)</td>
133
                                #else
98
                                #else
134
                                    <td>-</td>
99
                                    <td>-</td>
135
                                #end
100
                                #end
136
                            </tr>
101
                            </tr>
137
                        #end
102
                        #end
138
                    #end
-
 
139
 
103
 
140
                    #if($offerPayouts && !$offerPayouts.isEmpty())
-
 
141
                        #foreach( $offerPayout in $offerPayouts )
-
 
142
                            <tr data-offerid="$offerPayout.getOfferId()">
-
 
143
                                <td colspan="3"><a href="javascript:void(0)"
-
 
144
                                                   class="mk_offer_detail">$offerPayout.getDescription()</td>
-
 
145
                                <td>$offerRequestMap.get($offerPayout.getOfferId().intValue()).getSchemeType()</td>
-
 
146
                                <td>$nf.format($inventoryItem.getMarginPercentage($offerPayout.getAmount()))%</td>
-
 
147
                                <td>$offerPayout.getAmount()</td>
-
 
148
                                <td>$offerPayout.getStatus()</td>
-
 
149
                                <td>$offerPayout.getCreateTimestamp().format($dateTimeFormatter)</td>
-
 
150
                                <td>-</td>
-
 
151
 
104
 
152
                            </tr>
-
 
153
                        #end
-
 
154
                    #end
105
                    #end
155
 
-
 
156
                </table>
106
                </table>
157
            </div>
107
            </div>
158
        </div>
-
 
159
 
-
 
160
    #end
-
 
161
 
-
 
162
    #if($searchImei.length() > 0)
-
 
163
        <div class="row">
-
 
164
            <div class="col-lg-6">
108
            <div class="col-lg-6">
165
                <h4>Price Drop</h4>
109
                <h3 style="text-align:center; color:#4169e1;">Sales Billing Summary</h3>
166
                <table class="table table-border table-condensed table-bordered"
110
                <table class="table table-border table-condensed table-bordered">
167
                       id="offr-des">
-
 
168
                    <tr>
111
                    <tr>
-
 
112
 
-
 
113
                        <th>Invoice Number</th>
-
 
114
 
169
                        <th>Status</th>
115
                        <th>Sale Price</th>
170
                        <th>Amount</th>
116
                        <th>Invoice Date</th>
171
                        <th>Description</th>
117
                        <th>Activation Timestamp</th>
172
 
118
 
173
 
119
 
174
                    </tr>
120
                    </tr>
-
 
121
 
175
                    #if($priceDropImeis && !$priceDropImeis.isEmpty())
122
                    #if($fofoOrders && !$fofoOrders.isEmpty())
176
                        #foreach( $pdi in $priceDropImeis )
123
                        #foreach($fo in $fofoOrders)
-
 
124
 
177
                            <tr class="priceDrop-details">
125
                            <tr>
-
 
126
 
178
                                <td>$pdi.getStatus()</td>
127
                                <td>$fo.getInvoiceNumber()</td>
-
 
128
 
179
                                <td>$pdi.getPriceDrop().getAmount()</td>
129
                                <td>$fo.getTotalAmount()</td>
-
 
130
 
-
 
131
 
180
                                #if($pdi.getRejectionReason())
132
                                #if($fo.getCreateTimestamp().format($dateFormatter))
181
                                    <td>$pdi.getRejectionReason()</td>
133
                                    <td>$fo.getCreateTimestamp().format($dateFormatter)</td>
182
                                #else
134
                                #else
183
                                    <td>-</td>
135
                                    <td>--</td>
-
 
136
                                #end
-
 
137
                                #if($activatedImei.getActivationTimestamp())
-
 
138
 
-
 
139
                                    <td>$activatedImei.getActivationTimestamp().format($datehiphenFormatter)</td>
-
 
140
                                #else
-
 
141
                                    <td> --</td>
184
                                #end
142
                                #end
185
 
143
 
186
                            </tr>
144
                            </tr>
187
                        #end
145
                        #end
188
                    #else
-
 
189
                        $noData
-
 
-
 
146
 
-
 
147
 
190
                    #end
148
                    #end
191
                </table>
149
                </table>
192
            </div>
150
            </div>
-
 
151
 
193
        </div>
152
        </div>
194
    #end
-
 
195
 
153
 
196
    #if(!$schemeInOut)
154
        #if($schemeInOut || $offerPayouts)
197
        <div class="row">
155
        <div class="row" style="margin: 0;">
198
            <div class="col-lg-12">
156
        <div class="col-lg-12">
-
 
157
            <h3 style="text-align:center; color:#4169e1;">IMEI Wise Margin Status</h3>
-
 
158
            <div><h4 style="margin-left:10px;">Net Margin - $nf.format($netEarnings)</h4></div>
-
 
159
        <table class="table table-border table-condensed table-bordered">
-
 
160
            <tr>
-
 
161
                <th>ID</th>
-
 
162
                <th>Name</th>
-
 
163
                <th>Description</th>
-
 
164
                <th>Type</th>
-
 
165
                <th>Amount</th>
-
 
166
                <th>Paid Amount</th>
-
 
167
                <th>Status</th>
-
 
168
                <th>Credit Timestamp</th>
-
 
169
                <th>Description</th>
199
                <h3>Other Schemes</h3>
170
                <th>Start Date</th>
-
 
171
                <th>End Date</th>
-
 
172
 
-
 
173
            </tr>
-
 
174
 
-
 
175
            #if(!$schemeInOut && $schemeInOut.isEmpty() && !$offerPayouts && $offerPayouts.isEmpty())
-
 
176
                $noData
-
 
177
            #end
-
 
178
 
-
 
179
            #if($schemeInOut && !$schemeInOut.isEmpty())
-
 
180
                #foreach( $sio in $schemeInOut )
-
 
181
                <tr data="$schemeMap.get($sio.getSchemeId()).getId()">
-
 
182
                    <td>$schemeMap.get($sio.getSchemeId()).getId()</td>
-
 
183
                    <td>$schemeMap.get($sio.getSchemeId()).getName()</td>
-
 
184
                    <td>$schemeMap.get($sio.getSchemeId()).getDescription()</td>
-
 
185
                    <td>$schemeMap.get($sio.getSchemeId()).getType()</td>
-
 
186
                    <td>$schemeMap.get($sio.getSchemeId()).getAmountModel()</td>
-
 
187
                    <td>$sio.getAmount()</td>
-
 
188
                    <td>$sio.getStatus()</td>
-
 
189
                    #if($sio.getCreditTimestamp().format($dateTimeFormatter))
-
 
190
                        <td>$sio.getCreditTimestamp().format($dateTimeFormatter)</td>
-
 
191
                    #else
-
 
192
                        <td>-</td>
-
 
193
                    #end
-
 
194
 
-
 
195
                    #if($sio.getStatusDescription())
-
 
196
                        <td>$sio.getStatusDescription()</td>
-
 
197
                    #else
-
 
198
                        <td>-</td>
-
 
199
                    #end
-
 
200
                    #if($schemeMap.get($sio.getSchemeId()).getFormattedStartDateTime())
-
 
201
                        <td>$schemeMap.get($sio.getSchemeId()).getFormattedStartDateTime()</td>
-
 
202
                    #else
-
 
203
                        <td>-</td>
-
 
204
                    #end
-
 
205
                    #if($schemeMap.get($sio.getSchemeId()).getEndDateTime())
-
 
206
                        <td>$dateFormatter.format($schemeMap.get($sio.getSchemeId()).getEndDateTime())</td>
-
 
207
                    #else
-
 
208
                        <td>-</td>
-
 
209
                    #end
-
 
210
                #end
-
 
211
 
-
 
212
 
-
 
213
            </tr>
-
 
214
            #end
-
 
215
        #end
-
 
216
 
-
 
217
        #if($offerPayouts && !$offerPayouts.isEmpty())
-
 
218
            #foreach( $offerPayout in $offerPayouts )
-
 
219
                <tr data-offerid="$offerPayout.getOfferId()">
-
 
220
                    <td colspan="3"><a href="javascript:void(0)"
-
 
221
                                       class="mk_offer_detail">$offerPayout.getDescription()</td>
-
 
222
                    <td>$offerRequestMap.get($offerPayout.getOfferId().intValue()).getSchemeType()</td>
-
 
223
                    <td>$nf.format($inventoryItem.getMarginPercentage($offerPayout.getAmount()))%</td>
-
 
224
                    <td>$offerPayout.getAmount()</td>
-
 
225
                    <td>$offerPayout.getStatus()</td>
-
 
226
                    <td>$offerPayout.getCreateTimestamp().format($dateTimeFormatter)</td>
-
 
227
                    <td>-</td>
-
 
228
 
-
 
229
                </tr>
-
 
230
            #end
-
 
231
        #end
-
 
232
 
-
 
233
    </table>
-
 
234
    </div>
-
 
235
    </div>
-
 
236
 
-
 
237
 
-
 
238
        #if($searchImei.length() > 0)
-
 
239
            <div class="row">
-
 
240
                <div class="col-lg-6">
-
 
241
                    <h3 style="text-align:center; color:#4169e1;">Price Drop</h3>
200
                <table class="table table-border table-condensed table-bordered"
242
                    <table class="table table-border table-condensed table-bordered"
201
                       id="offr-des">
243
                           id="offr-des">
202
                    <tr>
244
                        <tr>
-
 
245
                            <th>Price Drop Id</th>
-
 
246
                            <th>Price Drop Date</th>
203
                        <th>Name</th>
247
                            <th>Status</th>
-
 
248
                            <th>Amount</th>
204
                        <th>Margin Based On</th>
249
                            <th>Credited On</th>
205
                        <th>Sale Criteria</th>
250
                            <th>Rejected On</th>
206
                        <th>Payout(Per pc)</th>
251
                            <th>Description</th>
-
 
252
 
-
 
253
 
207
                    </tr>
254
                        </tr>
208
                    #if(!$offers.isEmpty())
255
                        #if($priceDropImeis && !$priceDropImeis.isEmpty())
209
                        #foreach( $offer in $offers )
256
                            #foreach( $pdi in $priceDropImeis )
-
 
257
                                <tr class="priceDrop-details">
-
 
258
                                    <td>$pdi.getPriceDrop().getId()</td>
210
                            #set($itemCriteriaPayout = $offer.getTargetSlabs().get(0).getItemCriteriaPayouts().get(0))
259
                                    <td>$pdi.getPriceDrop().getAffectedOn().format($dateFormatter)</td>
-
 
260
                                    <td>$pdi.getStatus()</td>
211
                            #set($slab=$itemCriteriaPayout.getCurrentSlab())
261
                                    <td>$pdi.getPriceDrop().getAmount()</td>
-
 
262
                                    #if($pdi.getCreditTimestamp().format($dateTimeFormatter))
-
 
263
                                        <td>$pdi.getCreditTimestamp().format($dateTimeFormatter)</td>
-
 
264
                                    #else
-
 
265
                                        <td>-</td>
-
 
266
                                    #end
-
 
267
                                    #if($pdi.getRejectTimestamp().format($dateTimeFormatter))
-
 
268
                                        <td>$pdi.getRejectTimestamp().format($dateFormatter)</td>
-
 
269
                                    #else
-
 
270
                                        <td>-</td>
212
                            #if(!$slab)
271
                                    #end
213
                                #set($slab=$itemCriteriaPayout.getNextSlab())
272
                                    #if($pdi.getRejectionReason())
-
 
273
                                        <td>$pdi.getRejectionReason()</td>
-
 
274
                                    #else
-
 
275
                                        <td>-</td>
-
 
276
                                    #end
-
 
277
 
-
 
278
 
-
 
279
                                </tr>
214
                            #end
280
                            #end
215
                            <tr class="offer-details" data-offerid="$offer.getId()">
-
 
216
                                <td><a class="mk_offer_detail"
-
 
217
                                       href="javascript:void(0)">$offer.getName()</a>
-
 
218
                                <td>$offer.getSchemeType()</td>
-
 
219
                                <td>$itemCriteriaPayout.getItemCriteriaString()</td>
-
 
220
                                <td>Rs. <span
281
                        #else
221
                                        class="currency">$offerSlabPayoutMap.get($offer.getId()).get($slab.getOnwardsAmount())</span>
-
 
222
                                </td>
282
                            $noData
223
                            </tr>
283
                        #end
224
                        #end #else $noData #end
284
                    </table>
225
                </table>
285
                </div>
226
            </div>
286
            </div>
227
        </div>
-
 
228
    #end
287
        #end
229
 
288
 
230
    #if(!$schemeInOut)
289
        #if(!$schemeInOut)
231
        #if($schemes && !$schemes.isEmpty())
290
            <div class="row">
232
            <div class="row col-lg-12">
291
                <div class="col-lg-12">
-
 
292
                    <h3>Other Schemes</h3>
233
                <b>Hygiene Payout</b> - This is basis the customer details entered in
293
                    <table class="table table-border table-condensed table-bordered"
-
 
294
                           id="offr-des">
-
 
295
                        <tr>
-
 
296
                            <th>Name</th>
-
 
297
                            <th>Margin Based On</th>
-
 
298
                            <th>Sale Criteria</th>
-
 
299
                            <th>Payout(Per pc)</th>
-
 
300
                        </tr>
-
 
301
                        #if(!$offers.isEmpty())
-
 
302
                            #foreach( $offer in $offers )
-
 
303
                                #set($itemCriteriaPayout = $offer.getTargetSlabs().get(0).getItemCriteriaPayouts().get(0))
234
                the system, pls refer to hygiene meter in your Dashboard. <br> <b>Tertiary
304
                                #set($slab=$itemCriteriaPayout.getCurrentSlab())
-
 
305
                                #if(!$slab)
235
                Payout</b> - This is basis the activation of the handset. <br> <b>Investment
306
                                    #set($slab=$itemCriteriaPayout.getNextSlab())
-
 
307
                                #end
236
                Payout</b> - Investments in stocks should be above 90% for minimum 12
308
                                <tr class="offer-details" data-offerid="$offer.getId()">
-
 
309
                                    <td><a class="mk_offer_detail"
237
                days in a month to earn 2%, between 8-11 days will earn 1%, less then
310
                                           href="javascript:void(0)">$offer.getName()</a>
-
 
311
                                    <td>$offer.getSchemeType()</td>
-
 
312
                                    <td>$itemCriteriaPayout.getItemCriteriaString()</td>
-
 
313
                                    <td>Rs. <span
-
 
314
                                            class="currency">$offerSlabPayoutMap.get($offer.getId()).get($slab.getOnwardsAmount())</span>
-
 
315
                                    </td>
-
 
316
                                </tr>
238
                8 days there will be no payout.
317
                            #end #else $noData #end
-
 
318
                    </table>
-
 
319
                </div>
239
            </div>
320
            </div>
240
        #end
321
        #end
-
 
322
 
-
 
323
        #if(!$schemeInOut)
-
 
324
            #if($schemes && !$schemes.isEmpty())
-
 
325
                <div class="row col-lg-12">
-
 
326
                    <b>Hygiene Payout</b> - This is basis the customer details entered in
-
 
327
                    the system, pls refer to hygiene meter in your Dashboard. <br> <b>Tertiary
-
 
328
                    Payout</b> - This is basis the activation of the handset. <br> <b>Investment
-
 
329
                    Payout</b> - Investments in stocks should be above 90% for minimum 12
-
 
330
                    days in a month to earn 2%, between 8-11 days will earn 1%, less then
-
 
331
                    8 days there will be no payout.
-
 
332
                </div>
-
 
333
            #end
241
    #end
334
        #end
242
 
335
 
243
</section>
336
</section>
244
 
337