Subversion Repositories SmartDukaan

Rev

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

Rev 18047 Rev 18511
Line 66... Line 66...
66
        }
66
        }
67
	});
67
	});
68
	
68
	
69
});
69
});
70
 
70
 
-
 
71
$('a.pendingPoReport').live('click', function(){
-
 
72
	$('div#pendingPoReport').attr('style','color:blue;');
-
 
73
	$('div#pendingPoReport').show();
-
 
74
	setTimeout(function () {$('div#pendingPoReport').fadeOut('slow');}, 10000);
-
 
75
	$.ajax({
-
 
76
		type : "GET",
-
 
77
        url : "/inventory/inventory-reader!moveOrdersCorrectWarehouse",
-
 
78
        dataType  : 'json',
-
 
79
        success : function(response) {
-
 
80
        	$.each(response, function(key,value) {
-
 
81
        		$('div#pendingPoReport').attr('style','color:blue;');
-
 
82
        		$('div#pendingPoReport').text(value);
-
 
83
        		$('div#pendingPoReport').show();
-
 
84
        		setTimeout(function () {$('div#pendingPoReport').fadeOut('slow');}, 10000);
-
 
85
        	});
-
 
86
        },
-
 
87
        error : function() {
-
 
88
        	$('div#pendingPoReport').attr('style','color:red;');
-
 
89
        	$('div#pendingPoReport').text('Some Error Occured. Please Try After Some Time.');
-
 
90
        	$('div#pendingPoReport').show();
-
 
91
        	setTimeout(function () {$('div#pendingPoReport').fadeOut('slow');}, 10000);
-
 
92
        }
-
 
93
	});
-
 
94
	
-
 
95
});
-
 
96
 
71
function selectWarehouseForPOCreation() {
97
function selectWarehouseForPOCreation() {
72
	$('#warehouse-selector-po-creation').show();
98
	$('#warehouse-selector-po-creation').show();
73
	$.colorbox({
99
	$.colorbox({
74
		inline : true,
100
		inline : true,
75
        width : "325px",
101
        width : "325px",