Subversion Repositories SmartDukaan

Rev

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

Rev 30601 Rev 30651
Line 154... Line 154...
154
                </table>
154
                </table>
155
            </div>
155
            </div>
156
        </div>
156
        </div>
157
    </div>
157
    </div>
158
 
158
 
159
    #if($schemeInOut)
159
    #if($schemeInOut || $offerPayouts)
160
        <div class="row">
160
        <div class="row">
161
            <div class="col-lg-12">
161
            <div class="col-lg-12">
162
                <h3 style="text-align:center; color:#4169e1;">IMEI Wise Margin Status</h3>
162
                <h3 style="text-align:center; color:#4169e1;">IMEI Wise Margin Status</h3>
-
 
163
                <div><h5>Net Earnings - $ear </h5></div>
163
                <table class="table table-border table-condensed table-bordered">
164
                <table class="table table-border table-condensed table-bordered">
164
                    <tr>
165
                    <tr>
165
                        <th>ID</th>
166
                        <th>ID</th>
166
                        <th>Name</th>
167
                        <th>Name</th>
167
                        <th>Description</th>
168
                        <th>Description</th>
Line 173... Line 174...
173
 
174
 
174
                        <th>Description</th>
175
                        <th>Description</th>
175
 
176
 
176
                    </tr>
177
                    </tr>
177
 
178
 
178
                    #if($schemeInOut && !$schemeInOut.isEmpty()) #foreach( $sio in
179
                    #if(!$schemeInOut && $schemeInOut.isEmpty() && !$offerPayouts && $offerPayouts.isEmpty())
179
                        $schemeInOut )
-
 
180
                        <tr data="$schemeMap.get($sio.getSchemeId()).getId()">
-
 
181
                            <td>$schemeMap.get($sio.getSchemeId()).getId()</td>
-
 
182
                            <td>$schemeMap.get($sio.getSchemeId()).getName()</td>
-
 
183
                            <td>$schemeMap.get($sio.getSchemeId()).getDescription()</td>
-
 
184
                            <td>$schemeMap.get($sio.getSchemeId()).getType()</td>
-
 
185
                            <td>$schemeMap.get($sio.getSchemeId()).getAmountModel()</td>
-
 
186
                            <td>$sio.getAmount()</td>
-
 
187
                            <td>$sio.getStatus()</td>
-
 
188
                            #if($sio.getCreditTimestamp().format($dateTimeFormatter))
-
 
189
                                <td>$sio.getCreditTimestamp().format($dateTimeFormatter)</td>
-
 
190
                            #else
180
                        $noData
191
                                <td>-</td>
-
 
192
                            #end
181
                    #end
193
 
182
 
-
 
183
                    #if($schemeInOut && !$schemeInOut.isEmpty())
-
 
184
                        #foreach( $sio in $schemeInOut )
-
 
185
                            <tr data="$schemeMap.get($sio.getSchemeId()).getId()">
-
 
186
                                <td>$schemeMap.get($sio.getSchemeId()).getId()</td>
-
 
187
                                <td>$schemeMap.get($sio.getSchemeId()).getName()</td>
-
 
188
                                <td>$schemeMap.get($sio.getSchemeId()).getDescription()</td>
-
 
189
                                <td>$schemeMap.get($sio.getSchemeId()).getType()</td>
-
 
190
                                <td>$schemeMap.get($sio.getSchemeId()).getAmountModel()</td>
-
 
191
                                <td>$sio.getAmount()</td>
-
 
192
                                <td>$sio.getStatus()</td>
-
 
193
                                #if($sio.getCreditTimestamp().format($dateTimeFormatter))
-
 
194
                                    <td>$sio.getCreditTimestamp().format($dateTimeFormatter)</td>
-
 
195
                                #else
-
 
196
                                    <td>-</td>
-
 
197
                                #end
-
 
198
 
194
                            #if($sio.getStatusDescription())
199
                                #if($sio.getStatusDescription())
195
                                <td>$sio.getStatusDescription()</td>
200
                                    <td>$sio.getStatusDescription()</td>
196
                            #else
201
                                #else
-
 
202
                                    <td>-</td>
-
 
203
                                #end
-
 
204
                            </tr>
-
 
205
                        #end
-
 
206
                    #end
-
 
207
 
-
 
208
                    #if($offerPayouts && !$offerPayouts.isEmpty())
-
 
209
                        #foreach( $offerPayout in $offerPayouts )
-
 
210
                            <tr data-offerid="$offerPayout.getOfferId()">
-
 
211
                                <td colspan="3"><a href="javascript:void(0)"
-
 
212
                                                   class="mk_offer_detail">$offerPayout.getDescription()</td>
-
 
213
                                <td>$offerRequestMap.get($offerPayout.getOfferId().intValue()).getSchemeType()</td>
-
 
214
                                <td>$nf.format($inventoryItem.getMarginPercentage($offerPayout.getAmount()))%</td>
-
 
215
                                <td>$offerPayout.getAmount()</td>
-
 
216
                                <td>$offerPayout.getStatus()</td>
-
 
217
                                <td>$offerPayout.getCreateTimestamp().format($dateTimeFormatter)</td>
197
                                <td>-</td>
218
                                <td>-</td>
198
                            #end
-
 
199
                        </tr>
-
 
200
                    #end #else $noData #end
-
 
201
 
219
 
-
 
220
                            </tr>
-
 
221
                        #end
-
 
222
                    #end
202
 
223
 
203
                </table>
224
                </table>
204
            </div>
225
            </div>
205
        </div>
226
        </div>
206
 
227
 
207
    #end
228
    #end
208
 
229
 
209
 
-
 
210
    #if($searchImei.length() > 0)
230
    #if($searchImei.length() > 0)
211
        <div class="row">
231
        <div class="row">
212
            <div class="col-lg-6">
232
            <div class="col-lg-6">
213
                <h3>Price Drop</h3>
233
                <h3>Price Drop</h3>
214
                <table class="table table-border table-condensed table-bordered"
234
                <table class="table table-border table-condensed table-bordered"
Line 218... Line 238...
218
                        <th>Amount</th>
238
                        <th>Amount</th>
219
                        <th>Description</th>
239
                        <th>Description</th>
220
 
240
 
221
 
241
 
222
                    </tr>
242
                    </tr>
-
 
243
                    #if($priceDropImeis && !$priceDropImeis.isEmpty())
223
                    #if(!$priceDropImeis.isEmpty()) #foreach( $pdi in $priceDropImeis )
244
                        #foreach( $pdi in $priceDropImeis )
224
                        <tr class="priceDrop-details">
245
                            <tr class="priceDrop-details">
225
                            <td>$pdi.getStatus()</td>
246
                                <td>$pdi.getStatus()</td>
226
                            <td>$pdi.getPriceDrop().getAmount()</td>
247
                                <td>$pdi.getPriceDrop().getAmount()</td>
227
                            #if($pdi.getRejectionReason())
248
                                #if($pdi.getRejectionReason())
228
                                <td>$pdi.getRejectionReason()</td>
249
                                    <td>$pdi.getRejectionReason()</td>
229
                            #else
250
                                #else
230
                                <td>-</td>
251
                                    <td>-</td>
231
                            #end
252
                                #end
232
 
253
 
233
                        </tr>
254
                            </tr>
-
 
255
                        #end
-
 
256
                    #else
-
 
257
                        $noData
234
                    #end
258
                    #end
235
                    #else $noData #end
-
 
236
                </table>
259
                </table>
237
            </div>
260
            </div>
238
        </div>
261
        </div>
239
    #end
262
    #end
240
 
263
 
Line 263... Line 286...
263
                                <td>$offer.getSchemeType()</td>
286
                                <td>$offer.getSchemeType()</td>
264
                                <td>$itemCriteriaPayout.getItemCriteriaString()</td>
287
                                <td>$itemCriteriaPayout.getItemCriteriaString()</td>
265
                                <td>Rs. <span
288
                                <td>Rs. <span
266
                                        class="currency">$offerSlabPayoutMap.get($offer.getId()).get($slab.getOnwardsAmount())</span>
289
                                        class="currency">$offerSlabPayoutMap.get($offer.getId()).get($slab.getOnwardsAmount())</span>
267
                                </td>
290
                                </td>
-
 
291
                                offerPayout
268
                            </tr>
292
                            </tr>
269
                        #end #else $noData #end
293
                        #end #else $noData #end
270
                </table>
294
                </table>
271
            </div>
295
            </div>
272
        </div>
296
        </div>