Subversion Repositories SmartDukaan

Rev

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

Rev 29760 Rev 29761
Line 149... Line 149...
149
		
149
		
150
			});
150
			});
151
	
151
	
152
	$(document).on('click', ".process-investment", function() {
152
	$(document).on('click', ".process-investment", function() {
153
		if (confirm("Are you sure you want to Process Investment")) {
153
		if (confirm("Are you sure you want to Process Investment")) {
154
			processInvestment(schemeId);
154
			processInvestment();
155
		}
155
		}
156
	});
156
	});
157
 
157
 
158
	$(document).on('click', ".processInvestmentDryRun",
158
	$(document).on('click', ".processInvestmentDryRun",
159
			function() {
159
			function() {
Line 399... Line 399...
399
				schemes("main-content");
399
				schemes("main-content");
400
			}
400
			}
401
		});
401
		});
402
 
402
 
403
}
403
}
404
function processInvestment(schemeId) {
404
function processInvestment() {
405
	doPostAjaxRequestWithJsonHandler(context + "/processInvestment", function(response) {
405
	doPostAjaxRequestWithJsonHandler(context + "/processInvestment", function(response) {
406
		alert("InvestmentPayout processed successfully");
406
		alert("InvestmentPayout processed successfully");
407
	});
407
	});
408
}
408
}
409
 
409