Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
32451 amit.gupta 1
##$billingMilestoneCountMap.toString()
32438 amit.gupta 2
<html lang="en">
3
<head>
4
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
5
    <meta http-equiv="refresh" content="180">
6
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
7
          integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
8
    <style>
9
        html, body {
10
            margin-top: 10px;
11
            padding: 0;
12
        }
13
 
14
 
15
        td, th {
16
            font-size: 20px;
17
        }
18
 
19
 
20
        .table td, .table th {
21
            padding: 0.25rem;
22
        }
23
 
24
        tr:first-child.green td {
25
            font-weight: bold;
26
            background-color: #00d6b2;
27
        }
28
 
29
        td {
30
            font-size: 24px;
31
        }
32451 amit.gupta 32
 
33
        th.gold {
34
            background-color: #F8E59C;
35
        }
36
 
37
        tr.gold:nth-child(odd) {
38
            background-color: #FDF8E3;
39
        }
40
 
32438 amit.gupta 41
    </style>
42
    <link href="../resources/css/brand-logo.css" rel="stylesheet"/>
43
</head>
44
<body>
45
<div class="container-fluid">
32451 amit.gupta 46
    <table class="table table-bordered">
32444 amit.gupta 47
        <thead>
48
        <tr>
32449 amit.gupta 49
            #set($colspan=$milestones.size()*3+1)
32451 amit.gupta 50
            <th colspan="$colspan" style="text-align: center;vertical-align: middle;background-color:#EBCA58">Partners
51
                Split By Actual Billing
32445 amit.gupta 52
            </th>
32444 amit.gupta 53
        </tr>
54
        <tr>
32451 amit.gupta 55
            <th class="gold" rowspan="2" style="text-align: center;vertical-align: middle;">RBM</th>
32444 amit.gupta 56
            #foreach($milestone in $milestones)
32451 amit.gupta 57
                <th class="gold" colspan="3"
58
                    style="text-align: center;vertical-align: middle;">$milestone.getValue()</th>
32444 amit.gupta 59
            #end
60
        </tr>
61
        <tr>
62
            #foreach($milestone in $milestones)
32451 amit.gupta 63
                <th class="gold">PMTD</th>
64
                <th class="gold">MTD</th>
65
                <th class="gold">DIFF</th>
32444 amit.gupta 66
            #end
67
        </tr>
68
        </thead>
69
        <tbody>
32449 amit.gupta 70
            #foreach($rbmBillingMilestoneCountEntry in $billingMilestoneCountMap.entrySet())
71
                #set($rbmName = $rbmBillingMilestoneCountEntry.getKey())
32451 amit.gupta 72
            <tr class="gold">
32449 amit.gupta 73
                <td style="text-align: center;vertical-align: middle;">
32445 amit.gupta 74
                    $rbmName
75
                </td>
32449 amit.gupta 76
                #foreach($milestone in $milestones)
77
                    #set($diff = 0)
32445 amit.gupta 78
                    <td>
32449 amit.gupta 79
                        #if($lastDayMilestoneCountMap.get($rbmName).containsKey($milestone))
80
                            $lastDayMilestoneCountMap.get($rbmName).get($milestone)
81
                            #set($diff = $diff - $lastDayMilestoneCountMap.get($rbmName).get($milestone))
82
                        #else
83
                            -
84
                        #end
32445 amit.gupta 85
                    </td>
32449 amit.gupta 86
                    <td>
87
                        #if($rbmBillingMilestoneCountEntry.getValue().containsKey($milestone))
88
                            #set($diff = $diff + $rbmBillingMilestoneCountEntry.getValue().get($milestone))
89
                            $rbmBillingMilestoneCountEntry.getValue().get($milestone)
90
                        #else
91
                            -
92
                        #end
93
                    </td>
94
                    <td>
95
                        #if($diff==0)
96
                            -
97
                        #else
98
                            $diff
99
                        #end
100
                    </td>
32445 amit.gupta 101
                #end
102
            </tr>
103
            #end
32444 amit.gupta 104
        </tbody>
105
    </table>
32438 amit.gupta 106
</div>
107
</body>
108
</html>