| 27875 |
amit.gupta |
1 |
<div class="modal-header">
|
|
|
2 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
3 |
<h4 class="modal-title">Offer Detail</h4>
|
|
|
4 |
</div>
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
<div class="modal-body">
|
|
|
8 |
<div style="margin-top: 15px;" class="offer-margin-table container">
|
|
|
9 |
<div class = "row">
|
|
|
10 |
<div class="col-lg-12">
|
|
|
11 |
<div class="row"><div class="col-lg-12">$offer.getName(), Offer based on $offer.getSchemeType()</div></div>
|
|
|
12 |
<div class="row"><div class="col-lg-12">From $offer.getStartDate().format($dateFormatter) to $offer.getEndDate().format($dateFormatter)</div></div>
|
|
|
13 |
<div class="row"><div class="col-lg-12">On $offer.getItemCriteriaString()</div></div>
|
|
|
14 |
<div class="row"><div class="col-lg-12">Status -
|
|
|
15 |
<span class="mk_active" data-id="$offer.getId()">
|
|
|
16 |
#if($offer.isActive())
|
|
|
17 |
Active
|
|
|
18 |
#else
|
|
|
19 |
Inactive (<a href="javascript:void(0)" class="mk_offer_active">Mark active</a>)
|
|
|
20 |
#end
|
|
|
21 |
</span>
|
|
|
22 |
</div></div>
|
|
|
23 |
<div class="row">
|
|
|
24 |
<div class="col-lg-4" style="border:1px solid #cecece;padding:6px;border-radius:3px">
|
| 29789 |
amit.gupta |
25 |
#set($targetSlab = $offer.getTargetSlabs().get(0))
|
| 27875 |
amit.gupta |
26 |
<div class="col-lg-12">
|
|
|
27 |
#foreach($itemCriteriaPayout in $targetSlab.getItemCriteriaPayouts())
|
|
|
28 |
<div class="col-lg-12" style="border:1px solid #cecece;padding:6px;border-radius:3px">
|
|
|
29 |
Amount type $itemCriteriaPayout.getAmountType(), On
|
|
|
30 |
#if($itemCriteriaPayout.getItemCriteriaString()!="All Brands")
|
|
|
31 |
$itemCriteriaPayout.getItemCriteriaString()
|
|
|
32 |
#else
|
|
|
33 |
$offer.getItemCriteriaString()
|
|
|
34 |
#end
|
|
|
35 |
<table class="table table-bordered">
|
|
|
36 |
<tr>
|
|
|
37 |
<th>Slab Onwards</th>
|
|
|
38 |
<th>Payout</th>
|
|
|
39 |
</tr>
|
|
|
40 |
#foreach($payoutSlab in $itemCriteriaPayout.getPayoutSlabs())
|
|
|
41 |
<tr>
|
|
|
42 |
<td>
|
|
|
43 |
#if($offer.getTargetType().toString()=="VALUE") Rs. <span class="currency">$payoutSlab.getOnwardsAmount()</span> #else $payoutSlab.getOnwardsAmount() pcs #end
|
|
|
44 |
|
|
|
45 |
</td>
|
|
|
46 |
<td>
|
| 29171 |
amit.gupta |
47 |
#if($itemCriteriaPayout.getAmountType().toString().equals("FIXED"))
|
| 27875 |
amit.gupta |
48 |
Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span> per pc
|
|
|
49 |
#else
|
|
|
50 |
$payoutSlab.getPayoutAmount()%
|
|
|
51 |
#end
|
|
|
52 |
</td>
|
|
|
53 |
</tr>
|
|
|
54 |
#end
|
|
|
55 |
</table>
|
|
|
56 |
</div>
|
|
|
57 |
#end
|
|
|
58 |
</div>
|
|
|
59 |
</div>
|
|
|
60 |
</div>
|
|
|
61 |
|
|
|
62 |
<table class="table table-advance" id="margin-detail">
|
|
|
63 |
<thead>
|
|
|
64 |
<tr>
|
|
|
65 |
</tr>
|
|
|
66 |
</thead>
|
|
|
67 |
<tbody>
|
|
|
68 |
</tbody>
|
|
|
69 |
</table>
|
|
|
70 |
</div>
|
|
|
71 |
</div>
|
|
|
72 |
</div>
|
|
|
73 |
</div>
|
|
|
74 |
|
|
|
75 |
<div class="modal-footer">
|
|
|
76 |
<button type="button" data-dismiss="modal" class="btn btn-default cancel-request">Ok</button>
|
|
|
77 |
</div>
|