Subversion Repositories SmartDukaan

Rev

Rev 27754 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27723 tejbeer 1
$(function() {
27754 amit.gupta 2
	$(document).on('click', ".inventory-listing", function() {
27723 tejbeer 3
		loadInventory("main-content");
4
	});
5
 
27755 amit.gupta 6
	$(document).on('click', "#warehouse-wise-billing",
27723 tejbeer 7
			function() {
8
				var warehouseId = $('#warehouseMap').val();
9
				doGetAjaxRequestHandler(context + "/inventory?warehouseIds=" + warehouseId,
10
					function(response) {
11
						$('#' + "main-content").html(response);
12
						console.log(response)
13
					});
14
			});
15
});
16
 
17
function loadInventory(domId) {
18
	doGetAjaxRequestHandler(context + "/inventory",
19
		function(response) {
20
			$('#' + domId).html(response);
21
 
22
		});
23
}