Subversion Repositories SmartDukaan

Rev

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

Rev 30722 Rev 31322
Line 17... Line 17...
17
			console.log(addValue)
17
			console.log(addValue)
18
 
18
 
19
			doGetAjaxRequestHandler(context
19
			doGetAjaxRequestHandler(context
20
				+ "/getPlacementPlanByCatalogId?catalogItemIds=" +
20
				+ "/getPlacementPlanByCatalogId?catalogItemIds=" +
21
				catalogIds + "&addValue=" + addValue + "&subValue=" + subValue + "&date=" + startDateTime + "&warehouseId=" + warehouseId,
21
				catalogIds + "&addValue=" + addValue + "&subValue=" + subValue + "&date=" + startDateTime + "&warehouseId=" + warehouseId,
22
				function (response) {
22
				function(response) {
23
					$('.placement-plan-detail').html(response);
23
					$('.placement-plan-detail').html(response);
24
					console.log(response)
24
					console.log(response)
25
				});
25
				});
26
		});
26
		});
27
 
27
 
Line 31... Line 31...
31
 
31
 
32
			var catalogIds = $('.criteria-item-catalogids').val();
32
			var catalogIds = $('.criteria-item-catalogids').val();
33
			console.log(catalogIds);
33
			console.log(catalogIds);
34
			var addValue = $('#addRange').val();
34
			var addValue = $('#addRange').val();
35
			var subValue = $('#subNumber').val();
35
			var subValue = $('#subNumber').val();
36
			var startDateTime = $('input[name="saleDate"]').val();
36
			var startDateTime = getDatesFromPicker('input[name="saleDate"]').startDate;
37
 
37
 
38
			var warehouseId = $('#warehouseMap').val();
38
			var warehouseId = $('#warehouseMap').val();
39
 
39
 
40
			window.location.href = context + "/placementPlan/statement?catalogItemIds=" +
40
			window.location.href = context + "/placementPlan/statement?catalogItemIds=" +
41
				catalogIds + "&addValue=" + addValue + "&subValue=" + subValue + "&date=" + startDate + "&warehouseId=" + warehouseId;
41
				catalogIds + "&addValue=" + addValue + "&subValue=" + subValue + "&date=" + startDateTime + "&warehouseId=" + warehouseId;
42
 
42
 
43
		});
43
		});
44
 
44
 
45
 
45
 
46
	$(document).on('click', ".resetValue",
46
	$(document).on('click', ".resetValue",