Subversion Repositories SmartDukaan

Rev

Rev 32452 | Rev 32460 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

##$billingMilestoneCountMap.toString()
<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 {
            background-color: #F8E59C;
        }

        tr.gold:nth-child(odd) {
            background-color: #FDF8E3;
        }

    </style>
    <link href="../resources/css/brand-logo.css" rel="stylesheet"/>
</head>
<body>
<div class="container-fluid">
    <table class="table table-bordered">
        <thead>
        <tr>
            #set($colspan=$milestones.size()*3+1)
            <th colspan="$colspan" style="text-align: center;vertical-align: middle;background-color:#EBCA58">Partners
                Split By Actual Billing
            </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;">$milestone.getValue()</th>
            #end
        </tr>
        <tr>
            #foreach($milestone in $milestones)
                <th class="gold">PMTD</th>
                <th class="gold">MTD</th>
                <th class="gold">DIFF</th>
            #end
        </tr>
        </thead>
        <tbody>
            #foreach($rbmBillingMilestoneCountEntry in $billingMilestoneCountMap.entrySet())
                #set($rbmName = $rbmBillingMilestoneCountEntry.getKey())
            <tr class="gold">
                <td style="text-align: center;vertical-align: middle;">
                    $rbmName
                </td>
                #foreach($milestone in $milestones)
                    #set($diff = 0)
                    <td>
                        #if($lastDayMilestoneCountMap.get($rbmName).containsKey($milestone))
                            $lastDayMilestoneCountMap.get($rbmName).get($milestone)
                            #set($diff = $diff - $lastDayMilestoneCountMap.get($rbmName).get($milestone))
                        #else
                            -
                        #end
                    </td>
                    <td>
                        #if($rbmBillingMilestoneCountEntry.getValue().containsKey($milestone))
                            #set($diff = $diff + $rbmBillingMilestoneCountEntry.getValue().get($milestone))
                            $rbmBillingMilestoneCountEntry.getValue().get($milestone)
                        #else
                            -
                        #end
                    </td>
                    <td>
                        #if($diff==0)
                            -
                        #else
                            $diff
                        #end
                    </td>
                #end
            </tr>
            #end
        </tbody>
        <tfoot>
        <tr class="gold">
            <th>Total</th>
            #foreach($milestone in $milestones)
                <th>$lastDayAggregateMilestoneCountMap.get($milestone)</th>
                <th>$billedAggregatedMilestoneContMap.get($milestone)</th>
                #set($diff=$billedAggregatedMilestoneContMap.get($milestone) - $lastDayAggregateMilestoneCountMap.get($milestone))
                <th>$diff</th>
            #end
        </tr>
        </tfoot>
    </table>
</div>
</body>
</html>