Rev 35245 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<style>.table {background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='100px' width='100px'><text transform='translate(20, 100) rotate(-45)' fill='rgb(211,211,211)' font-size='20'>$partnerCode</text></svg>");}</style><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><ahref="${rc.contextPath}/dashboard">Home</a></li><li><i class="icon_document_alt"></i>Model Wise Margins</li></ol></div></div><div class="row"><div class="col-lg-3"></div><div class="col-lg-3">#if($schemeInOut)<div style="padding: 12px"><span> <b> Model Name - $item.getItemDescriptionNoColor() </b></span></div>#end</div><div class="form-inline col-lg-8">#if(!$isAnalysis)<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 Model"#if($searchModel > 0)value="$modelName"#end/><span class="input-group-btn"><button class="btn btn-primary submit"id="scheme-item-search-button" type="button">Go!</button></span></div></div>#else<div class="form-group"><div class="input-group"><input type="date" class="form-control analysis-schemes-date"value="${date}"/></div><div class="input-group top_search"><input type="text" class="form-control"id="analysis-scheme-item-search-text" autocomplete="off"placeholder="Search Model"#if($searchModel > 0)value="$modelName"#end/><span class="input-group-btn"><button class="btn btn-primary submit"id="analysis-scheme-item-search-button" data-fofoid="$fofoId"type="button">Go!</button></span></div></div>#end</div><div class="form-inline col-lg-4">#if(!$isAnalysis)<div class="form-group"><label> Check Margins</label><div class="input-group top_search"><input type="text" class="form-control" hsdid="scheme-imei-search-text" autocomplete="off"placeholder="Search for Imei"/> <span class="input-group-btn"><button class="btn btn-primary submit"id="scheme-imei-search-button" type="button">Go!</button></span></div></div>#else<div class="form-group"><label> Check Margins</label><div class="input-group top_search"><input type="text" class="form-control" hsdid="analysis-scheme-imei-search-text" autocomplete="off"placeholder="Search for Imei"/> <span class="input-group-btn"><button class="btn btn-primary submit"id="analysis-scheme-imei-search-button" data-fofoid="$fofoId"type="button">Go!</button></span></div></div>#end</div></div>#if(!$isAdmin)#if($searchModel > 0 || $searchImei.length() > 0)#if($searchModel > 0)<div class="row" style="margin-top: 12px">#parse("price-circular-table.vm")</div><div class="row col-lg-12"><b>Alert</b> - While magins are that of on date the date chosen, The dp/mop is of Current date.</b><b>Hygiene Payout</b> - This is basis the customer details entered inthe system, pls refer to hygiene meter in your Dashboard. <br> <b>TertiaryPayout</b> - This is basis the activation of the handset.</div>#end#end#if($schemeInOut || $offerPayouts)<div class="row"><div class="col-lg-12"><h3 style="text-align:center; color:#4169e1;">IMEI Wise Margin Status</h3><div><h4>DP - <span class="currency">$inventoryItem.getUnitPrice()</span>,Net Margin - <span class="currency">$nf.format($netEarnings)</span></h4></div><table class="table table-border table-condensed table-bordered"><tr><th>ID</th>`<th>Name</th><th>Description</th><th>Type</th><th>Amount</th><th>Paid Amount</th><th>Status</th><th>Credit Timestamp</th><th>Description</th></tr>#if(!$schemeInOut && $schemeInOut.isEmpty() && !$offerPayouts && $offerPayouts.isEmpty())$noData#end#if($schemeInOut && !$schemeInOut.isEmpty())#foreach( $sio in $schemeInOut )<tr data="$schemeMap.get($sio.getSchemeId()).getId()"><td>$schemeMap.get($sio.getSchemeId()).getId()</td><td>$schemeMap.get($sio.getSchemeId()).getName()</td><td>$schemeMap.get($sio.getSchemeId()).getDescription()</td><td>$schemeMap.get($sio.getSchemeId()).getType()</td><td>$schemeMap.get($sio.getSchemeId()).getAmountModel()</td><td>$sio.getAmount()</td><td>$sio.getStatus()</td>#if($sio.getCreditTimestamp().format($dateTimeFormatter))<td>$sio.getCreditTimestamp().format($dateTimeFormatter)</td>#else<td>-</td>#end#if($sio.getStatusDescription())<td>$sio.getStatusDescription()</td>#else<td>-</td>#end</tr>#end#end#if($offerPayouts && !$offerPayouts.isEmpty())#foreach( $offerPayout in $offerPayouts )<tr data-offerid="$offerPayout.getOfferId()"><td colspan="3"><a href="javascript:void(0)"class="mk_offer_detail">$offerPayout.getDescription()</td><td>$offerRequestMap.get($offerPayout.getOfferId().intValue()).getSchemeType()</td><td>$nf.format($inventoryItem.getMarginPercentage($offerPayout.getAmount()))%</td><td>$offerPayout.getAmount()</td><td>$offerPayout.getStatus()</td><td>$offerPayout.getCreateTimestamp().format($dateTimeFormatter)</td><td>-</td></tr>#end#end</table></div></div>#end#if($searchImei.length() > 0)<div class="row"><div class="col-lg-6"><h3>Price Drop</h3><table class="table table-border table-condensed table-bordered"id="offr-des"><tr><th>Price Drop Id</th><th>Price Drop Date</th><th>Status</th><th>Amount</th><th>Credited On</th><th>Rejected On</th><th>Description</th></tr>#if($priceDropImeis && !$priceDropImeis.isEmpty())#foreach( $pdi in $priceDropImeis )<tr class="priceDrop-details"><td>$pdi.getPriceDrop().getId()</td><td>$pdi.getPriceDrop().getAffectedOn().format($dateFormatter)</td><td>$pdi.getStatus()</td><td>$pdi.getPriceDrop().getAmount()</td>#if($pdi.getCreditTimestamp())<td>$pdi.getCreditTimestamp().format($dateTimeFormatter)</td>#else<td>-</td>#end#if($pdi.getRejectTimestamp())<td>$pdi.getRejectTimestamp().format($dateFormatter)</td>#else<td>-</td>#end#if($pdi.getRejectionReason())<td>$pdi.getRejectionReason()</td>#else<td>-</td>#end</tr>#end#else$noData#end</table></div></div>#end#else#if($searchModel > 0)<div class="col-lg-3"><div style="padding: 12px"><span>DP - <span class="currency">$dp</span></span>#if($mop)<span>, MOP - <span class="currency">$mop</span></span>#end#if($nlc)<span>, NLC - <span class="currency">$nlc</span></span>#end</div></div>#end#end</div></section><script type="text/javascript">if ($searchModel > 0) {currentItem = $searchModel;}getEntityAheadOptions($("#scheme-item-search-text"), function (selectedItem) {currentItem = selectedItem.catalogId_i;});getImeiAheadOptions($("#scheme-imei-search-text"), $fofoId, function (inventoryItem) {imei = inventoryItem;console.log(imei)});getEntityAheadOptions($("#analysis-scheme-item-search-text"), function (selectedItem) {currentItem = selectedItem.catalogId_i;});getImeiAheadOptions($("#analysis-scheme-imei-search-text"), $fofoId, function (inventoryItem) {imei = inventoryItem;console.log(imei)});$(document).ready(function () {console.log('$partnerType')$('#partner-category').val('$partnerType');$('body').bind('cut copy paste', function (e) {return false;});$('#offr-des').contextmenu(function () {return false;});$('#sch-des').contextmenu(function () {return false;});});</script>