Subversion Repositories SmartDukaan

Rev

Rev 33997 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33997 Rev 34098
Line 48... Line 48...
48
                    <th>%</th>
48
                    <th>%</th>
49
                    <th>FAST (ACH/TGT)</th>
49
                    <th>FAST (ACH/TGT)</th>
50
                    <th>%</th>
50
                    <th>%</th>
51
                    <th>RUN (ACH/TGT)</th>
51
                    <th>RUN (ACH/TGT)</th>
52
                    <th>%</th>
52
                    <th>%</th>
53
                    <th>EOL (ACH/TGT)</th>
53
                    <th>SLOW (ACH/TGT)</th>
54
                    <th>%</th>
54
                    <th>%</th>
55
                    <th>Other (ACH/TGT)</th>
55
                    <th>Other (ACH/TGT)</th>
56
                    <th>%</th>
56
                    <th>%</th>
57
                </tr>
57
                </tr>
58
                #foreach($target in $rbmTargetAndAchievementsModels)
58
                #foreach($target in $rbmTargetAndAchievementsModels)
Line 62... Line 62...
62
                                class="target-cell">$target.getTotalTarget()</span></td>
62
                                class="target-cell">$target.getTotalTarget()</span></td>
63
                        <td class="total-percent"></td>
63
                        <td class="total-percent"></td>
64
                        <td><span class="achieved-cell">$target.getAchievedHid()</span> / <span
64
                        <td><span class="achieved-cell">$target.getAchievedHid()</span> / <span
65
                                class="target-cell">$target.getHidTarget()</span></td>
65
                                class="target-cell">$target.getHidTarget()</span></td>
66
                        <td class="hid-percent"></td>
66
                        <td class="hid-percent"></td>
-
 
67
 
67
                        <td><span class="achieved-cell">$target.getAchievedFastMoving()</span> / <span
68
                        <td><span class="achieved-cell">$target.getAchievedFastMoving()</span> / <span
68
                                class="target-cell">$target.getFastMovingTarget()</span></td>
69
                                class="target-cell">$target.getFastMovingTarget()</span></td>
-
 
70
                        <td class="fast-percent"></td>
-
 
71
 
-
 
72
                        <td><span class="achieved-cell">$target.getAchievedRunning()</span> / <span
-
 
73
                                class="target-cell">$target.getRunningTarget()</span></td>
69
                        <td class="run-percent"></td>
74
                        <td class="run-percent"></td>
-
 
75
 
70
                        <td><span class="achieved-cell">$target.getAchievedSlowMoving()</span> / <span
76
                        <td><span class="achieved-cell">$target.getAchievedSlowMoving()</span> / <span
71
                                class="target-cell">$target.getSlowMovingTarget()</span></td>
77
                                class="target-cell">$target.getSlowMovingTarget()</span></td>
72
                        <td class="slow-percent"></td>
78
                        <td class="slow-percent"></td>
73
                        <td><span class="achieved-cell">$target.getAchievedEol()</span> / <span
-
 
74
                                class="target-cell">$target.getEolTarget()</span></td>
-
 
75
                        <td class="eol-percent"></td>
-
 
-
 
79
 
76
                        <td><span class="achieved-cell">$target.getAchievedOtherMoving()</span> / <span
80
                        <td><span class="achieved-cell">$target.getAchievedOtherMoving()</span> / <span
77
                                class="target-cell">$target.getOtherMovingTarget()</span></td>
81
                                class="target-cell">$target.getOtherMovingTarget()</span></td>
78
                        <td class="other-percent"></td>
82
                        <td class="other-percent"></td>
79
                    </tr>
83
                    </tr>
80
                #end
84
                #end
Line 89... Line 93...
89
                            class="target-cell">$totalTargetHid</span></td>
93
                            class="target-cell">$totalTargetHid</span></td>
90
                    <td class="hid-percent text-bold"></td>
94
                    <td class="hid-percent text-bold"></td>
91
 
95
 
92
                    <td class="text-bold"><span class="achieved-cell">$totalAchievedFast</span> / <span
96
                    <td class="text-bold"><span class="achieved-cell">$totalAchievedFast</span> / <span
93
                            class="target-cell">$totalTargetFast</span></td>
97
                            class="target-cell">$totalTargetFast</span></td>
-
 
98
                    <td class="fast-percent text-bold"></td>
-
 
99
 
-
 
100
                    <td class="text-bold"><span class="achieved-cell">$totalAchievedRunning</span> / <span
-
 
101
                            class="target-cell">$totalTargetRunning</span></td>
94
                    <td class="run-percent text-bold"></td>
102
                    <td class="run-percent text-bold"></td>
95
 
103
 
96
                    <td class="text-bold"><span class="achieved-cell">$totalAchievedSlow</span> / <span
104
                    <td class="text-bold"><span class="achieved-cell">$totalAchievedSlow</span> / <span
97
                            class="target-cell">$totalTargetSlow</span></td>
105
                            class="target-cell">$totalTargetSlow</span></td>
98
                    <td class="slow-percent text-bold"></td>
106
                    <td class="slow-percent text-bold"></td>
99
 
107
 
100
                    <td class="text-bold"><span class="achieved-cell">$totalAchievedEol</span> / <span
-
 
101
                            class="target-cell">$totalTargetEol</span></td>
-
 
102
                    <td class="eol-percent text-bold"></td>
-
 
103
 
-
 
104
                    <td class="text-bold"><span class="achieved-cell">$totalAchievedOther</span> / <span
108
                    <td class="text-bold"><span class="achieved-cell">$totalAchievedOther</span> / <span
105
                            class="target-cell">$totalTargetOther</span></td>
109
                            class="target-cell">$totalTargetOther</span></td>
106
                    <td class="other-percent text-bold"></td>
110
                    <td class="other-percent text-bold"></td>
107
                </tr>
111
                </tr>
108
 
112
 
Line 118... Line 122...
118
 
122
 
119
    function formatTargets() {
123
    function formatTargets() {
120
        const rows = document.querySelectorAll('#rbm-arr-table tbody tr');
124
        const rows = document.querySelectorAll('#rbm-arr-table tbody tr');
121
        let totalAchieved = 0, totalTarget = 0;
125
        let totalAchieved = 0, totalTarget = 0;
122
        let totalAchievedHid = 0, totalTargetHid = 0;
126
        let totalAchievedHid = 0, totalTargetHid = 0;
-
 
127
        let totalAchievedFast = 0, totalTargetFast = 0;
123
        let totalAchievedRun = 0, totalTargetRun = 0;
128
        let totalAchievedRunning = 0, totalTargetRunning = 0;
124
        let totalAchievedSlow = 0, totalTargetSlow = 0;
129
        let totalAchievedSlow = 0, totalTargetSlow = 0;
125
        let totalAchievedEol = 0, totalTargetEol = 0;
-
 
126
        let totalAchievedOther = 0, totalTargetOther = 0;
130
        let totalAchievedOther = 0, totalTargetOther = 0;
127
 
131
 
128
        rows.forEach(row => {
132
        rows.forEach(row => {
129
            const cells = row.querySelectorAll('td');
133
            const cells = row.querySelectorAll('td');
130
            cells.forEach((cell, index) => {
134
            cells.forEach((cell, index) => {
Line 140... Line 144...
140
                        totalTarget += targetValue || 0;
144
                        totalTarget += targetValue || 0;
141
                    } else if (index === 3) {
145
                    } else if (index === 3) {
142
                        totalAchievedHid += achievedValue || 0;
146
                        totalAchievedHid += achievedValue || 0;
143
                        totalTargetHid += targetValue || 0;
147
                        totalTargetHid += targetValue || 0;
144
                    } else if (index === 5) {
148
                    } else if (index === 5) {
145
                        totalAchievedRun += achievedValue || 0;
149
                        totalAchievedFast += achievedValue || 0;
146
                        totalTargetRun += targetValue || 0;
150
                        totalTargetFast += targetValue || 0;
147
                    } else if (index === 7) {
151
                    } else if (index === 7) {
-
 
152
                        totalAchievedRunning += achievedValue || 0;
-
 
153
                        totalTargetRunning += targetValue || 0;
-
 
154
                    } else if (index === 9) {
148
                        totalAchievedSlow += achievedValue || 0;
155
                        totalAchievedSlow += achievedValue || 0;
149
                        totalTargetSlow += targetValue || 0;
156
                        totalTargetSlow += targetValue || 0;
150
                    } else if (index === 9) {
-
 
151
                        totalAchievedEol += achievedValue || 0;
-
 
152
                        totalTargetEol += targetValue || 0;
-
 
153
                    } else if (index === 11) {
157
                    } else if (index === 11) {
154
                        totalAchievedOther += achievedValue || 0;
158
                        totalAchievedOther += achievedValue || 0;
155
                        totalTargetOther += targetValue || 0;
159
                        totalTargetOther += targetValue || 0;
156
                    }
160
                    }
157
 
161