Subversion Repositories SmartDukaan

Rev

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

Rev 25923 Rev 25925
Line 1316... Line 1316...
1316
	public void sendDailySalesNotificationToPartner(Integer fofoIdInt)
1316
	public void sendDailySalesNotificationToPartner(Integer fofoIdInt)
1317
			throws ProfitMandiBusinessException, MessagingException, IOException {
1317
			throws ProfitMandiBusinessException, MessagingException, IOException {
1318
		
1318
		
1319
		LocalDateTime now = LocalDateTime.now();
1319
		LocalDateTime now = LocalDateTime.now();
1320
		LocalDateTime from = now.with(LocalTime.MIN);
1320
		LocalDateTime from = now.with(LocalTime.MIN);
1321
		String timeString = "Today {}";
1321
		String timeString = "Today %s";
1322
		//Send yesterday's report
1322
		//Send yesterday's report
1323
		if(now.getHour() < 13) {
1323
		if(now.getHour() < 13) {
1324
			timeString = "Yesterday {}";
1324
			timeString = "Yesterday %s";
1325
			from = now.minusDays(1);
1325
			from = now.minusDays(1);
1326
			now = from.with(LocalTime.MAX);
1326
			now = from.with(LocalTime.MAX);
1327
			  
1327
			  
1328
		}
1328
		}
1329
		List<Integer> fofoIds = null;
1329
		List<Integer> fofoIds = null;