Blame | Last modification | View Log | RSS feed
## IMEI-wise margin results only - no breadcrumbs, no search boxes#if($searchImei && $searchImei.length() > 0)<div style="background: #e8f5e9; padding: 8px 12px; border-radius: 4px; margin-bottom: 10px; font-weight: 600; color: #2e7d32;"><i class="fa fa-barcode"></i> IMEI: $searchImei#if($customRetailer)<span style="margin-left: 15px; background-color: #d4edda; color: #155724; padding: 3px 8px; border-radius: 3px;">$customRetailer.getBusinessName()</span>#end#if($item)<span style="margin-left: 15px; font-weight: 600; color: #333;">Model: $item.getItemDescription()</span>#end</div><div class="row"><div class="col-md-6"><div style="font-size: 13px; font-weight: 600; color: #4169e1; text-align: center; margin: 8px 0;">PurchaseSummary</div><table class="table table-bordered table-condensed" style="font-size: 12px;"><thead><tr><th>Item Id</th><th>Invoice No</th><th>Buy Price</th><th>Invoice Date</th></tr></thead><tbody>#if($itemPurchaseSummaryModels && !$itemPurchaseSummaryModels.isEmpty())#foreach($itemPurchaseSummaryMode in $itemPurchaseSummaryModels)<tr><td>$itemPurchaseSummaryMode.getItem().getId()</td><td>$itemPurchaseSummaryMode.getInvoiceNumber()</td><td>$itemPurchaseSummaryMode.getBuyPrice()</td><td>$itemPurchaseSummaryMode.getInvoiceDate().format($dateFormatter)</td></tr>#end#else<tr><td colspan="4" class="text-center">No data</td></tr>#end</tbody></table></div><div class="col-md-6"><div style="font-size: 13px; font-weight: 600; color: #4169e1; text-align: center; margin: 8px 0;">SalesSummary</div><table class="table table-bordered table-condensed" style="font-size: 12px;"><thead><tr><th>Invoice No</th><th>Sale Price</th><th>Invoice Date</th><th>Activation</th></tr></thead><tbody>#if($fofoOrders && !$fofoOrders.isEmpty())#foreach($fo in $fofoOrders)<tr><td>$fo.getInvoiceNumber()</td><td>$fo.getTotalAmount()</td><td>$fo.getCreateTimestamp().format($dateFormatter)</td>#if($activatedImei && $activatedImei.getActivationTimestamp())<td>$activatedImei.getActivationTimestamp().format($dateFormatter)</td>#else<td>--</td>#end</tr>#end#else<tr><td colspan="4" class="text-center">No data</td></tr>#end</tbody></table></div></div>#if($schemeInOut || $offerPayouts)<div style="font-size: 14px; font-weight: 600; color: #28a745; margin: 5px 0 10px 0;">Net Margin:Rs. $nf.format($netEarnings)</div><div style="font-size: 13px; font-weight: 600; color: #4169e1; text-align: center; margin: 8px 0;">Margin Status</div><table class="table table-bordered table-condensed" style="font-size: 12px;"><thead><tr><th>ID</th><th>Name</th><th>Type</th><th>Amount</th><th>Paid</th><th>Status</th><th>Credit Date</th></tr></thead><tbody>#if($schemeInOut && !$schemeInOut.isEmpty())#foreach($sio in $schemeInOut)<tr><td>$schemeMap.get($sio.getSchemeId()).getId()</td><td>$schemeMap.get($sio.getSchemeId()).getName()</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())<td>$sio.getCreditTimestamp().format($dateFormatter)</td>#else<td>-</td>#end</tr>#end#end#if($offerPayouts && !$offerPayouts.isEmpty())#foreach($offerPayout in $offerPayouts)<tr><td colspan="2">$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($dateFormatter)</td></tr>#end#end</tbody></table>#end#if($priceDropImeis && !$priceDropImeis.isEmpty())<div style="font-size: 13px; font-weight: 600; color: #4169e1; text-align: center; margin: 8px 0;">Price Drop</div><table class="table table-bordered table-condensed" style="font-size: 12px;"><thead><tr><th>ID</th><th>Date</th><th>Status</th><th>Amount</th><th>Credited On</th></tr></thead><tbody>#foreach($pdi in $priceDropImeis)<tr><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($dateFormatter)</td>#else<td>-</td>#end</tr>#end</tbody></table>#end#else<div class="text-center" style="padding: 30px; color: #666;"><i class="fa fa-exclamation-circle fa-2x" style="margin-bottom: 10px;"></i><p>No data found for this IMEI</p></div>#end