Rev 27899 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script type="text/javascript">$('input[name="extendDatetime"]').daterangepicker(getSingleDatePicker(), dateRangeCallback);getItemAheadOptions($("#scheme-item-search-text"), false, function (selectedItem) {currentItem = selectedItem;});$(document).ready(function () {console.log('$partnerType')$('#partner-category').val('$partnerType');});</script><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>MARGINS</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>MARGINS</li></ol></div></div><div class="row"><div class="col-lg-4"></div><div class="col-lg-2">#if(!$searchItem.equals("") && !$schemes.isEmpty())<div style="padding:12px"><span> DP - <span class="currency">$dp</span>, <span> MOP - <span class="currency">$mop</span></div>#elseif(!$searchItem.equals("") && $schemes.isEmpty() )<div style="padding:12px"><span> DP - <span class="currency">0</span>, <span> MOP - <span class="currency">0</span></div>#end</div><div class="col-lg-2"></div><div class="form-inline col-lg-4"><div class="form-group"><div class="input-group"><input type="date" class="form-control schemes-date" value="${date}"/></div><div class="input-group top_search"><input type="text" class="form-control" id="scheme-item-search-text" autocomplete="off"placeholder="Search for Item" value="$searchItem"/><span class="input-group-btn"><button class="btn btn-primary submit" id="scheme-item-search-button"type="button">Go!</button></span></div></div></div></div><div id="schemes-table"><div class="row"><div class="col-lg-12"><table class="table table-striped table-advance table-hover"><tbody><tr><th>ID</th><th>Name</th><th>Description</th><th>Type</th><th>Amount</th><th>Start Date</th><th>End Date</th></tr>#if($schemes && !$schemes.isEmpty())#foreach( $scheme in $schemes )<tr class="scheme-details" data="$scheme.getId()"><td>$scheme.getId()</td><td>$scheme.getName()</td><td>$scheme.getDescription()</td><td>$scheme.getType()</td><td>$scheme.getAmountModel()</td><td>$scheme.getFormattedStartDateTime()</td><td>$dateTimeFormatter.format($scheme.getEndDateTime())</td></tr>#end#else$noData#end</tbody></table></div></div></div>#if($schemes && !$schemes.isEmpty())<div class="row" id="schemes-paginated"><div class="col-lg-9"><p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <spanclass="size">$size</span> items</p></div><div class="col-lg-3" style="text-align:right;"><div class="btn-group" style="width:40%"><button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button></div><div class="btn-group" style="width:40%">#if($end >= $size)<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>#else<button class="btn btn-primary next" style="width:100%">Next</button>#end</div></div></div>#end<div class="row"><div class="col-lg-12"><h3>Other Schemes</h3><table class="table table-striped table-advance"><tr><th>Name</th><th>Target Type</th><th>Scheme Type</th><th>Brand %</th><th>Sellin %</th><th>Target Criteria</th><th>Start</th><th>End</th></tr>#if(!$offers.isEmpty())#foreach( $offer in $offers )<tr class="offer-details" data-offerid="$offer.getId()"><td><a class="mk_offer_detail" href="javascript:void(0)">$offer.getName()</a></td><td>$offer.getTargetType()</td><td>$offer.getSchemeType()</td><td>$offer.getBrandShareTerms()</td><td>$offer.getSellinPercentage()</td><td>$offer.getItemCriteriaString()</td><td>$offer.getStartDate().format($dateFormatter)</td><td>$offer.getEndDate().format($dateFormatter)</td></tr>#end#else$noData#end</table></div></div>#if(!$searchItem.equals(""))<div class="col-lg-12"><h5>Note</h5><b>Hygiene Payout</b> - This is basis the customer details entered in the system, pls refer to hygienemeterin your Dashboard.<br><b>Tertiary Payout</b> - This is basis the activation of the handset.<br><b>Investment Payout</b> - Investments in stocks should be above 90% for minimum 12 days in a monthtoearn 2%, between 8-11 days will earn 1%, less then 8 days there will be no payout.</div>#end<div id="scheme-details-container" style="background:white;background-color:white;"></div></section>