Subversion Repositories SmartDukaan

Rev

Rev 30767 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30767 Rev 33256
Line 114... Line 114...
114
			}
114
			}
115
			System.out.printf("%d\t%d\t%f%n", fofoId, investmentMaintainedDays, totalAmount);
115
			System.out.printf("%d\t%d\t%f%n", fofoId, investmentMaintainedDays, totalAmount);
116
		}
116
		}
117
	}
117
	}
118
 
118
 
119
	public void evaluateActualInvestmentPayout() {
119
	public void evaluateActualInvestmentPayout() throws ProfitMandiBusinessException {
120
		LocalDate firstDateOfCurrentMonth = LocalDateTime.now().withDayOfMonth(1).toLocalDate();
120
		LocalDate firstDateOfCurrentMonth = LocalDateTime.now().withDayOfMonth(1).toLocalDate();
121
		LocalDate startOfPreviousMonth = firstDateOfCurrentMonth.minusMonths(1);
121
		LocalDate startOfPreviousMonth = firstDateOfCurrentMonth.minusMonths(1);
122
		LocalDate lastOfPreviousMonth = firstDateOfCurrentMonth.minusDays(1);
122
		LocalDate lastOfPreviousMonth = firstDateOfCurrentMonth.minusDays(1);
123
		List<PartnerDailyInvestment> partnerDailyInvestments = partnerDailyInvestmentRepository
123
		List<PartnerDailyInvestment> partnerDailyInvestments = partnerDailyInvestmentRepository
124
				.selectAll(startOfPreviousMonth, lastOfPreviousMonth);
124
				.selectAll(startOfPreviousMonth, lastOfPreviousMonth);