Rev 32577 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<html lang="en"><head><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta http-equiv="refresh" content="180"><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"><style>html, body {margin-top: 10px;padding: 0;}td, th {font-size: 20px;}.table td, .table th {padding: 0.25rem;}tr:first-child.green td {font-weight: bold;background-color: #00d6b2;}td {font-size: 24px;}th.gold, tr.gold th {border-bottom: 1px solid black;background-color: #F8E59C;/*border-top:3px solid black;border-bottom:4px solid black;*/}/*td {border-top:2px solid black !important;}*/tr.gold:nth-child(odd) {background-color: #FDF8E3;}.table, .table th {border-top: 3px solid black;}</style><link href="../resources/css/brand-logo.css" rel="stylesheet"/></head><body><div class="container-fluid"><div class="row"><div class="col-lg-6 purchaseMilestoneContainer"></div></div><table class="table" style="border:2px solid black"><thead><tr>#set($colspan=$milestones.size()*3+1)<th colspan="$colspan" style="text-align: center;vertical-align: middle;background-color:#EBCA58">PartnersSplit By PO Creation</th></tr><tr><th class="gold" rowspan="2" style="text-align: center;vertical-align: middle;">RBM</th>#foreach($milestone in $milestones)<th class="gold" colspan="3"style="text-align: center;vertical-align: middle;border-left:1.5px solid black">$milestone.getValue()</th>#end</tr><tr style="border-bottom:3px solid black">#foreach($milestone in $milestones)<th class="gold" style="border-left:1.5px solid black">LMS</th><th class="gold">MTYD</th><th class="gold" style="background-color:yellowgreen;border-right:1.5px solid black">MTD</th>#end</tr></thead><tbody>#foreach($rbmTotalBilliedMilestoneCountEntry in $totalMilestoneCountMap.entrySet())#set($rbmName = $rbmTotalBilliedMilestoneCountEntry.getKey())<tr class="gold"><td style="text-align: center;vertical-align: middle;">$rbmName</td>#foreach($milestone in $milestones)#set($diff = 0)<td style="border-left:1.5px solid black">#if($poLastMonthMilestoneCountMap.get($rbmName).containsKey($milestone))$poLastMonthMilestoneCountMap.get($rbmName).get($milestone)#end</td><td>#if($poTillYesterdayMilestoneCountMap.get($rbmName).containsKey($milestone))$poTillYesterdayMilestoneCountMap.get($rbmName).get($milestone)#end</td><td>#if($poMonthTillDateMilestoneCountMap.get($rbmName).containsKey($milestone))$poMonthTillDateMilestoneCountMap.get($rbmName).get($milestone)#end</td>#end</tr>#end</tbody><tfoot><tr class="gold"><th style="text-align: center;vertical-align: middle;">Total</th>#foreach($milestone in $milestones)<th style="border-left:1.5px solid black">$poLastMonthAggregatedMilestoneCountMap.get($milestone)</th><th>#if($poTillYesterdayAggregatedMilestoneCountMap.get($milestone))$poTillYesterdayAggregatedMilestoneCountMap.get($milestone)#end</th><th style="background-color:yellowgreen;">#if($poMonthTillDateAggregatedMilestoneCountMap.get($milestone))$poMonthTillDateAggregatedMilestoneCountMap.get($milestone)#end</th>#end</tr></tfoot></table><table class="table" style="border:2px solid black"><thead><tr>#set($colspan=$milestones.size()*3+1)<th colspan="$colspan" style="text-align: center;vertical-align: middle;background-color:#EBCA58">PartnersSplit By Actual Billing + Pending PO</th></tr><tr><th class="gold" rowspan="2" style="text-align: center;vertical-align: middle;">RBM</th>#foreach($milestone in $milestones)<th class="gold" colspan="3"style="text-align: center;vertical-align: middle;border-left:1.5px solid black">$milestone.getValue()</th>#end</tr><tr style="border-bottom:3px solid black">#foreach($milestone in $milestones)<th class="gold" style="border-left:1.5px solid black">PMTD</th><th class="gold">MTD</th><th class="gold" style="background-color:yellowgreen;border-right:1.5px solid black">DIFF</th>#end</tr></thead><tbody>#foreach($rbmTotalBilliedMilestoneCountEntry in $totalMilestoneCountMap.entrySet())#set($rbmName = $rbmTotalBilliedMilestoneCountEntry.getKey())<tr class="gold"><td style="text-align: center;vertical-align: middle;">$rbmName</td>#foreach($milestone in $milestones)#set($diff = 0)<td style="border-left:1.5px solid black">#if($lastDayMilestoneCountMap.get($rbmName).containsKey($milestone))$lastDayMilestoneCountMap.get($rbmName).get($milestone)#set($diff = $diff - $lastDayMilestoneCountMap.get($rbmName).get($milestone))#end</td><td>#if($rbmTotalBilliedMilestoneCountEntry.getValue().containsKey($milestone))#set($diff = $diff + $rbmTotalBilliedMilestoneCountEntry.getValue().get($milestone))$rbmTotalBilliedMilestoneCountEntry.getValue().get($milestone)#end</td><td style="background-color:yellowgreen;border-right:1.5px solid black">#if($diff != 0)$diff#end</td>#end</tr>#end</tbody><tfoot><tr class="gold"><th style="text-align: center;vertical-align: middle;">Total</th>#foreach($milestone in $milestones)<th style="border-left:1.5px solid black">#if($lastDayAggregateMilestoneCountMap.get($milestone))$lastDayAggregateMilestoneCountMap.get($milestone)#end</th><th>#if($totalAggregatedMilestoneCountMap.get($milestone))$totalAggregatedMilestoneCountMap.get($milestone)#end</th>#set($diff=$totalAggregatedMilestoneCountMap.get($milestone) - $lastDayAggregateMilestoneCountMap.get($milestone))<th style="background-color:yellowgreen;">#if($diff)$diff#end</th>#end</tr></tfoot></table></div><div class="row warehouseMilestone" style="margin: 5px"></div><script type="text/javascript">context = "${rc.contextPath}";</script>#parse("include-scripts.vm")<script type="text/javascript">function changeWarehousePurchaseMilestone() {var warehouseId = $('#warehousepurchasemil').val();doGetAjaxRequestHandler(context + "/getPurchaseCountByMileStone?warehouseId="+ warehouseId, function (response) {$('.purchaseMilestoneContainer').html(response);});}$(document).ready(function () {doGetAjaxRequestHandler(context + "/getPurchaseCountByMileStone", function (response) {$('.purchaseMilestoneContainer').html(response);});})</script></body></html>