Subversion Repositories SmartDukaan

Rev

Rev 34071 | Rev 34075 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34071 Rev 34074
Line 157... Line 157...
157
                <table id="rbm-aging-table" class="table table-border table-condensed table-bordered"
157
                <table id="rbm-aging-table" class="table table-border table-condensed table-bordered"
158
                       style="width:100%">
158
                       style="width:100%">
159
                    <thead>
159
                    <thead>
160
                    <tr>
160
                    <tr>
161
                        <th>RBM</th>
161
                        <th>RBM</th>
162
                        <th>EOL</th>
-
 
163
                        <th>RUNNING</th>
-
 
164
                        <th>FASTMOVING</th>
-
 
165
                        <th>HID</th>
162
                        <th>HID</th>
-
 
163
                        <th>FASTMOVING</th>
-
 
164
                        <th>RUNNING</th>
-
 
165
                        <th>EOL</th>
166
                        <th>OTHER</th>
166
                        <th>OTHER</th>
167
                        <th>TOTAL</th>
167
                        <th>TOTAL</th>
168
                    </tr>
168
                    </tr>
169
                    </thead>
169
                    </thead>
170
                    <tbody>
170
                    <tbody>
171
                        #foreach($model in $sold15daysOldAgingModels)
171
                        #foreach($model in $sold15daysOldAgingModels)
172
                        <tr>
172
                        <tr>
173
                            <th>$model.getRbmName()</th>
173
                            <th>$model.getRbmName()</th>
174
                            <td>$model.getEolBilled()</td>
174
                            <td class="format-indian">$model.getHidBilled()</td>
175
                            <td>$model.getRunningBilled()</td>
175
                            <td class="format-indian">$model.getFastmovingBilled()</td>
176
                            <td>$model.getFastmovingBilled()</td>
176
                            <td class="format-indian">$model.getRunningBilled()</td>
177
                            <td>$model.getHidBilled()</td>
177
                            <td class="format-indian">$model.getEolBilled()</td>
178
                            <td>$model.getOthersBilled()</td>
178
                            <td class="format-indian">$model.getOthersBilled()</td>
179
                            <td>$model.getTotalBilled()</td>
179
                            <td class="format-indian">$model.getTotalBilled()</td>
180
                        </tr>
180
                        </tr>
181
                        #end
181
                        #end
182
                    <tr>
182
                    <tr>
183
                        <th class="border-top-bottom"> Total</th>
183
                        <th class="border-top-bottom"> Total</th>
184
                        <td class="border-top-bottom">$totalSoldEol</td>
184
                        <td class="border-top-bottom format-indian">$totalSoldHid</td>
185
                        <td class="border-top-bottom">$totalSoldRun</td>
185
                        <td class="border-top-bottom format-indian">$totalSoldFast</td>
186
                        <td class="border-top-bottom">$totalSoldFast</td>
186
                        <td class="border-top-bottom format-indian">$totalSoldRun</td>
187
                        <td class="border-top-bottom">$totalSoldHid</td>
187
                        <td class="border-top-bottom format-indian">$totalSoldEol</td>
188
                        <td class="border-top-bottom">$totalSoldOther</td>
188
                        <td class="border-top-bottom format-indian">$totalSoldOther</td>
189
                        <td class="border-top-bottom">$totalSoldAging</td>
189
                        <td class="border-top-bottom format-indian">$totalSoldAging</td>
190
                    </tr>
190
                    </tr>
191
                        #foreach($aging in $our15DaysOldAgingStocks)
191
                        #foreach($aging in $our15DaysOldAgingStocks)
192
                        <tr>
192
                        <tr>
193
                            <th class="border-top-bottom"> 15 days Balance Value</th>
193
                            <th class="border-top-bottom"> 15 days Balance Value</th>
194
                            <td class="border-top-bottom">$aging.getEolAgingStock()</td>
194
                            <td class="border-top-bottom format-indian">$aging.getHidAgingStock()</td>
195
                            <td class="border-top-bottom">$aging.getRunningAgingStock()</td>
195
                            <td class="border-top-bottom format-indian">$aging.getFastmovingAgingStock()</td>
196
                            <td class="border-top-bottom">$aging.getFastmovingAgingStock()</td>
196
                            <td class="border-top-bottom format-indian">$aging.getRunningAgingStock()</td>
197
                            <td class="border-top-bottom">$aging.getHidAgingStock()</td>
197
                            <td class="border-top-bottom format-indian">$aging.getEolAgingStock()</td>
198
                            <td class="border-top-bottom">$aging.getOtherAgingStock()</td>
198
                            <td class="border-top-bottom format-indian">$aging.getOtherAgingStock()</td>
199
                            <td class="border-top-bottom">$aging.getTotal()</td>
199
                            <td class="border-top-bottom format-indian">$aging.getTotal()</td>
200
                        </tr>
200
                        </tr>
201
                        #end
201
                        #end
202
                    </tbody>
202
                    </tbody>
203
                </table>
203
                </table>
204
            </div>
204
            </div>
205
    </div>
205
    </div>
206
</section>
206
</section>
207
 
207
 
208
<script>
208
<script>
-
 
209
    function formatNumberIndian(num) {
-
 
210
        return num.toString().replace(/\B(?=(\d{2})+(?!\d))/g, ",").replace(/,(\d{3})$/, "$1");
-
 
211
    }
-
 
212
 
-
 
213
    document.addEventListener("DOMContentLoaded", function () {
-
 
214
        document.querySelectorAll(".format-indian").forEach(function (el) {
-
 
215
            el.textContent = formatNumberIndian(el.textContent.trim());
-
 
216
        });
-
 
217
    });
-
 
218
</script>
-
 
219
 
-
 
220
 
-
 
221
<script>
209
    function formatValueInLakh(value) {
222
    function formatValueInLakh(value) {
210
        return (value / 100000).toFixed(1) + 'L';
223
        return (value / 100000).toFixed(1) + 'L';
211
    }
224
    }
212
 
225
 
213
    function formatTargets() {
226
    function formatTargets() {