Subversion Repositories SmartDukaan

Rev

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

Rev 23786 Rev 23796
Line 1... Line 1...
1
$(function() {
1
$(function() {
2
	$("a.allocation_po").live('click', function(){
2
	$("a.allocation_po").live('click', function(){
-
 
3
		currentFofoId=0;
-
 
4
		counterSize='';
3
		loadIndent('main-content');
5
		loadIndent('main-content');
4
	});
6
	});
-
 
7
	$("button.raise_po").live('click', function(){
-
 
8
		if (confirm("Please confirm the PO")) {
-
 
9
			raisePO();
-
 
10
		} else {
-
 
11
			return;
-
 
12
		}
-
 
13
	});
5
	$("li.mk_counter_size").live('click', function(){
14
	$("li.mk_counter_size").live('click', function(){
6
		if($(this).hasClass('active')){
15
		if($(this).hasClass('active')){
7
			return;
16
			return;
8
		}
17
		}
9
		currentFofoId = 0;
18
		currentFofoId = 0;
Line 238... Line 247...
238
function loadInprocessIndent(domId) {
247
function loadInprocessIndent(domId) {
239
	doAjaxRequestHandler(context + "/indent/inProcess", "GET", function(
248
	doAjaxRequestHandler(context + "/indent/inProcess", "GET", function(
240
			response) {
249
			response) {
241
		$('#' + domId).html(response);
250
		$('#' + domId).html(response);
242
	});
251
	});
-
 
252
}
-
 
253
function raisePO(){
-
 
254
	doPostAjaxRequestWithJsonHandler(context+"/indent/create-po", {}, function(response) {
-
 
255
		if(response) {
-
 
256
			alert("PO Created Successfully");
-
 
257
			$('a.allocation_po').click();								
-
 
258
		} else {
-
 
259
			alert("Problem while creating PO");
-
 
260
		}
-
 
261
	});
-
 
262
	
243
}
263
}
244
264