Subversion Repositories SmartDukaan

Rev

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

Rev 31420 Rev 31521
Line 176... Line 176...
176
	//Definition is now changed, active also means valid investment should be ok
176
	//Definition is now changed, active also means valid investment should be ok
177
	private boolean isActive(int userId) {
177
	private boolean isActive(int userId) {
178
		boolean active = true;
178
		boolean active = true;
179
		try {
179
		try {
180
			FofoStore fs = fofoStoreRepository.selectByRetailerId(userId);
180
			FofoStore fs = fofoStoreRepository.selectByRetailerId(userId);
181
			active = fs.isActive() && partnerInvestmentService.isInvestmentOk(userId, 10, ProfitMandiConstants.CUTOFF_INVESTMENT);
181
			active = fs.isActive() && partnerInvestmentService.isInvestmentOk(userId, ProfitMandiConstants.MIN_INVESTMENT_PERCENTAGE, ProfitMandiConstants.CUTOFF_INVESTMENT);
182
		} catch (Exception e) {
182
		} catch (Exception e) {
183
 
183
 
184
		}
184
		}
185
		return active;
185
		return active;
186
	}
186
	}