Subversion Repositories SmartDukaan

Rev

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

Rev 33750 Rev 36464
Line 233... Line 233...
233
 
233
 
234
		window.location.href = endPoint;
234
		window.location.href = endPoint;
235
 
235
 
236
 
236
 
237
	});
237
	});
-
 
238
 
-
 
239
	$(document).on('click', '.download-vendor-pricing-changes', function() {
-
 
240
		var startDate = $("#pricingChangesStartDate").val();
-
 
241
		var endDate = $("#pricingChangesEndDate").val();
-
 
242
		if (startDate === "" || startDate === undefined) {
-
 
243
			alert("Start date is required!");
-
 
244
			return;
-
 
245
		}
-
 
246
		if (endDate === "" || endDate === undefined) {
-
 
247
			alert("End date is required!");
-
 
248
			return;
-
 
249
		}
-
 
250
		if (startDate > endDate) {
-
 
251
			alert("Start date must be before end date!");
-
 
252
			return;
-
 
253
		}
-
 
254
		window.location.href = context + "/downloadVendorPricingChangesReport?startDate=" + startDate + "&endDate=" + endDate;
-
 
255
	});
238
});
256
});
239
 
257
 
240
function loadCreateVendorCatalogPricing(domId) {
258
function loadCreateVendorCatalogPricing(domId) {
241
	doGetAjaxRequestHandler(context + "/vendorCatalogPricing", function(response) {
259
	doGetAjaxRequestHandler(context + "/vendorCatalogPricing", function(response) {
242
		$('#' + domId).html(response);
260
		$('#' + domId).html(response);