Subversion Repositories SmartDukaan

Rev

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

Rev 33729 Rev 33737
Line 32... Line 32...
32
 
32
 
33
       // doGetAjaxRequestHandler(context + "/getWarehouseInvoicesByVendor?vendorId=" + vendorId + "&startDate=" + startDate + "&endDate=" + endDate, function (response) {
33
       // doGetAjaxRequestHandler(context + "/getWarehouseInvoicesByVendor?vendorId=" + vendorId + "&startDate=" + startDate + "&endDate=" + endDate, function (response) {
34
           // $('.invoicesviewcontainer').html(response);
34
           // $('.invoicesviewcontainer').html(response);
35
            doGetAjaxRequestHandler(context + "/getWarehouseInvoicesBydateWise?dateWiseInvoices="  + "&startDate=" + startDate + "&endDate=" + endDate, function (response) {
35
            doGetAjaxRequestHandler(context + "/getWarehouseInvoicesBydateWise?dateWiseInvoices="  + "&startDate=" + startDate + "&endDate=" + endDate, function (response) {
36
                        $('.invoicesviewcontainer').html(response);
36
                        $('.invoicesviewcontainer').html(response);
-
 
37
            });
37
 
38
 
38
        });
39
    });
39
 
40
 
-
 
41
    $(document).on('click', '.generateInvoicesExcel', function () {
40
 
42
 
-
 
43
        var startDate = getDatesFromPicker('input[name="invoice-duration"]').startDate;
-
 
44
        var endDate = getDatesFromPicker('input[name="invoice-duration"]').endDate;
-
 
45
        doAjaxGetDownload(context + "/generateDatewiseInvoiceExcel?startDate=" + startDate + "&endDate=" + endDate, "PurchaseInvoicesReport.xlsx");
41
    });
46
    });
42
 
47
 
43
 
48
 
44
    $(document)
49
    $(document)
45
        .on(
50
        .on(