Subversion Repositories SmartDukaan

Rev

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

Rev 32267 Rev 34651
Line 150... Line 150...
150
$(document).on('click', 'button.download-imeis', function () {
150
$(document).on('click', 'button.download-imeis', function () {
151
    let affectedDate = getDatesFromPicker('#affectedDate').startDate;
151
    let affectedDate = getDatesFromPicker('#affectedDate').startDate;
152
    doAjaxGetDownload(context + "/price-drop/imes/download/?affectedDate=" + affectedDate + "&itemId=" + currentItem.itemId, "pricedrop.csv")
152
    doAjaxGetDownload(context + "/price-drop/imes/download/?affectedDate=" + affectedDate + "&itemId=" + currentItem.itemId, "pricedrop.csv")
153
});
153
});
154
 
154
 
-
 
155
$(document).on('click', '.download-price-drop-statement-report', function () {
-
 
156
    var startDate = getDatesFromPicker('input[name="priceDropStatementPeriod"]').startDate;
-
 
157
    var endDate = getDatesFromPicker('input[name="priceDropStatementPeriod"]').endDate;
-
 
158
    let endPoint = `${context}/pricedropByDate/download?startDate=${startDate}&endDate=${endDate}`;
-
 
159
    window.location.href = endPoint;
-
 
160
});
-
 
161
 
-
 
162
$(document).on('click', '.fetch-price-drop-statement-report', function () {
-
 
163
 
-
 
164
    var startDate = getDatesFromPicker('input[name="priceDropStatementPeriod"]').startDate;
-
 
165
    var endDate = getDatesFromPicker('input[name="priceDropStatementPeriod"]').endDate;
-
 
166
 
-
 
167
    if (startDate == "" || startDate == undefined) {
-
 
168
        alert("start date is not be empty!!");
-
 
169
        return;
-
 
170
    }
-
 
171
    if (endDate == "" || endDate == undefined) {
-
 
172
 
-
 
173
        alert("end date is not be empty!!");
-
 
174
        return;
-
 
175
    }
-
 
176
 
-
 
177
    doGetAjaxRequestHandler(context + "/getPricedropByDate?startDate=" + startDate + "&endDate=" + endDate,
-
 
178
        function (response) {
-
 
179
            $('#table-container').html(response);
-
 
180
        });
-
 
181
 
-
 
182
});
-
 
183
 
155
$(document).on('click', 'button.mk_download_pricing', function () {
184
$(document).on('click', 'button.mk_download_pricing', function () {
156
    doAjaxGetDownload(context + "/tagListing/download/4", "pricing.xlsx")
185
    doAjaxGetDownload(context + "/tagListing/download/4", "pricing.xlsx")
157
});
186
});
158
 
187
 
159
$(document).on('click', '.mk_auto_process', function () {
188
$(document).on('click', '.mk_auto_process', function () {