Subversion Repositories SmartDukaan

Rev

Rev 32445 | Rev 32451 | 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;
        }
    </style>
    <link href="../resources/css/brand-logo.css" rel="stylesheet"/>
</head>
<body>
<div class="container-fluid">
    <table class="table table-bordered table-striped">
        <thead>
        <tr>
            #set($colspan=$milestones.size()*3+1)
            <th colspan="$colspan" style="text-align: center;vertical-align: middle;">Partners Split By Actual Billing
            </th>
        </tr>
        <tr>
            <th rowspan="2" style="text-align: center;vertical-align: middle;">RBM</th>
            #*<th rowspan="2" style="text-align: center;vertical-align: middle;">State</th>*#
            #foreach($milestone in $milestones)
                <th colspan="3" style="text-align: center;vertical-align: middle;">$milestone.getValue()</th>
            #end
        </tr>
        <tr>
            #foreach($milestone in $milestones)
                <th>PMTD</th>
                <th>MTD</th>
                <th>DIFF</th>
            #end
        </tr>
        </thead>
        <tbody>
            #foreach($rbmBillingMilestoneCountEntry in $billingMilestoneCountMap.entrySet())
                #set($rbmName = $rbmBillingMilestoneCountEntry.getKey())
            <tr>
                <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>
    </table>
</div>
</body>
</html>