Subversion Repositories SmartDukaan

Rev

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

Rev 34240 Rev 34427
Line 2... Line 2...
2
    doGetAjaxRequestHandler(`${context}/pur-sale-ratio/panel`, function (response) {
2
    doGetAjaxRequestHandler(`${context}/pur-sale-ratio/panel`, function (response) {
3
        $('#main-content').html(response);
3
        $('#main-content').html(response);
4
    });
4
    });
5
});
5
});
6
 
6
 
7
$(document).on('change', 'input[name="endDate"], input[name="startDate"], select[name="brand"]', function () {
7
$(document).on('change', '#purSaleStartDate, #purSaleEndDate, #purSaleBrand', function () {
8
    console.log("change clicked...");
8
    console.log("change clicked...");
9
    let startDate = $('input[name="startDate"]').val();
9
    let startDate = $('input[name="startDate"]').val();
10
    let endDate = $('input[name="endDate"]').val();
10
    let endDate = $('input[name="endDate"]').val();
11
    let brand = $('select[name="brand"]').val();
11
    let brand = $('select[name="brand"]').val();
12
    let supplierId = $('select[name="supplier"]').val();
12
    let supplierId = $('select[name="supplier"]').val();
Line 42... Line 42...
42
            });
42
            });
43
        }
43
        }
44
    });
44
    });
45
});
45
});
46
 
46
 
47
$(document).on('change', 'select[name="supplier"]', function () {
47
$(document).on('change', '#purSaleSupplier', function () {
48
    let startDate = $('input[name="startDate"]').val();
48
    let startDate = $('input[name="startDate"]').val();
49
    let endDate = $('input[name="endDate"]').val();
49
    let endDate = $('input[name="endDate"]').val();
50
    let brand = $('select[name="brand"]').val();
50
    let brand = $('select[name="brand"]').val();
51
    let supplierId = $(this).val();
51
    let supplierId = $(this).val();
52
    doGetAjaxRequestHandler(`${context}/pur-sale-ratio/data?startDate=${startDate}&endDate=${endDate}&brand=${brand}&supplierId=${supplierId}`, function (response) {
52
    doGetAjaxRequestHandler(`${context}/pur-sale-ratio/data?startDate=${startDate}&endDate=${endDate}&brand=${brand}&supplierId=${supplierId}`, function (response) {