Subversion Repositories SmartDukaan

Rev

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

Rev 37200 Rev 37442
Line 332... Line 332...
332
 
332
 
333
        let endPoint = `/getDateWiseRabmTargetAndAchievements?startDate=${startDate}&endDate=${endDate}`;
333
        let endPoint = `/getDateWiseRabmTargetAndAchievements?startDate=${startDate}&endDate=${endDate}`;
334
        window.open(endPoint, '_blank');
334
        window.open(endPoint, '_blank');
335
        ;
335
        ;
336
    });
336
    });
-
 
337
 
-
 
338
    // Open the standalone DRR dashboard; forwards the picked date range if the L3-only
-
 
339
    // picker is present, otherwise the dashboard defaults to today.
-
 
340
    $(document).on('click', '.rbm-drr-dashboard', function () {
-
 
341
        let qs = '';
-
 
342
        const picker = $('input[name="rbmArrPeriod"]');
-
 
343
        if (picker.length && picker.data('daterangepicker')) {
-
 
344
            const dates = getDatesFromPicker('input[name="rbmArrPeriod"]');
-
 
345
            if (dates.startDate && dates.endDate) {
-
 
346
                qs = `?startDate=${dates.startDate}&endDate=${dates.endDate}`;
-
 
347
            }
-
 
348
        }
-
 
349
        window.open(`/rbm-drr${qs}`, '_blank');
-
 
350
    });
337
</script>
351
</script>
338
 
352
 
339
<script>
353
<script>
340
    function refreshTodayPOTable() {
354
    function refreshTodayPOTable() {
341
        var selectedCategory = $('#categoryDropdown').val();
355
        var selectedCategory = $('#categoryDropdown').val();