Subversion Repositories SmartDukaan

Rev

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

Rev 25910 Rev 25911
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
		//Send yesterday's report
1321
		if(now.getHour() < 12) {
1322
		if(now.getHour() < 12) {
1322
			from = now.minusDays(1);
1323
			from = now.minusDays(1);
1323
			now = from.with(LocalTime.MAX);
1324
			now = from.with(LocalTime.MAX);
1324
			  
1325
			  
1325
		}
1326
		}