Subversion Repositories SmartDukaan

Rev

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

Rev 28632 Rev 28709
Line 293... Line 293...
293
			"kuldeep.kumar@smartdukaan.com", "manish.gupta@smartdukaan.com" };
293
			"kuldeep.kumar@smartdukaan.com", "manish.gupta@smartdukaan.com" };
294
 
294
 
295
	private static final String[] ITEMWISE_PENDING_INDENT_MAIL_LIST = new String[] { "kamini.sharma@smartdukaan.com",
295
	private static final String[] ITEMWISE_PENDING_INDENT_MAIL_LIST = new String[] { "kamini.sharma@smartdukaan.com",
296
			"tarun.verma@smartdukaan.com", "uday.singh@smartdukaan.com", "kuldeep.kumar@smartdukaan.com",
296
			"tarun.verma@smartdukaan.com", "uday.singh@smartdukaan.com", "kuldeep.kumar@smartdukaan.com",
297
			"niranjan.kala@smartdukaan.com" };
297
			"niranjan.kala@smartdukaan.com" };
298
	
298
 
299
	private static final String[] INDENT_TERTIARY_MAIL_LIST = new String[] { "uday.singh@smartdukaan.com","kuldeep.kumar@smartdukaan.com"};
299
	private static final String[] INDENT_TERTIARY_MAIL_LIST = new String[] { "uday.singh@smartdukaan.com",
-
 
300
			"kuldeep.kumar@smartdukaan.com" };
300
 
301
 
301
	private List<OrderStatus> orderStatusList = Arrays.asList(OrderStatus.SUBMITTED_FOR_PROCESSING);
302
	private List<OrderStatus> orderStatusList = Arrays.asList(OrderStatus.SUBMITTED_FOR_PROCESSING);
302
 
303
 
303
	@Autowired
304
	@Autowired
304
	private ReporticoService reporticoService;
305
	private ReporticoService reporticoService;
Line 1081... Line 1082...
1081
					"Franchise Stock Report", "PFA", attache);
1082
					"Franchise Stock Report", "PFA", attache);
1082
		}
1083
		}
1083
 
1084
 
1084
	}
1085
	}
1085
 
1086
 
1086
	
-
 
1087
	public void sendIndentTertiary() throws Exception {
1087
	public void sendIndentTertiary() throws Exception {
1088
	
1088
 
1089
		InputStreamSource isr = reporticoService.getReportInputStreamSource(ReporticoProject.FOCO,
1089
		InputStreamSource isr = reporticoService.getReportInputStreamSource(ReporticoProject.FOCO,
1090
				"indentandtertiary.xml");
1090
				"indentandtertiary.xml");
1091
		Attachment attachment = new Attachment(
1091
		Attachment attachment = new Attachment(
1092
				"indentandtertiary-report-" + FormattingUtils.formatDate(LocalDateTime.now().minusDays(1)) + ".csv", isr);
1092
				"indentandtertiary-report-" + FormattingUtils.formatDate(LocalDateTime.now().minusDays(1)) + ".csv",
-
 
1093
				isr);
1093
			Utils.sendMailWithAttachments(googleMailSender, INDENT_TERTIARY_MAIL_LIST, null, "Indent Tertiary Report", "PFA",
1094
		Utils.sendMailWithAttachments(googleMailSender, INDENT_TERTIARY_MAIL_LIST, null, "Indent Tertiary Report",
1094
				attachment);
1095
				"PFA", attachment);
-
 
1096
 
1095
	
1097
	}
-
 
1098
 
-
 
1099
	public void checkPartnerActiveStore() throws Exception {
-
 
1100
 
-
 
1101
		List<FofoStore> fofoStores = fofoStoreRepository.selectByStatus(true);
-
 
1102
 
-
 
1103
		LocalDateTime currentDate = LocalDate.now().atStartOfDay();
-
 
1104
 
-
 
1105
		for (FofoStore fofoStore : fofoStores) {
-
 
1106
 
-
 
1107
			if (currentDate.isBefore(fofoStore.getActiveTimeStamp())) {
-
 
1108
 
-
 
1109
				fofoStore.setActive(true);
-
 
1110
				fofoStoreRepository.persist(fofoStore);
-
 
1111
				LOGGER.info("inserted into InActiveFofoStore successfully");
-
 
1112
 
-
 
1113
			}
-
 
1114
 
-
 
1115
			else {
-
 
1116
				fofoStore.setActive(false);
-
 
1117
				fofoStore.setActiveTimeStamp(null);
-
 
1118
				fofoStoreRepository.persist(fofoStore);
-
 
1119
				LOGGER.info("inserted into InActiveFofoStore successfully");
-
 
1120
			}
-
 
1121
 
-
 
1122
		}
-
 
1123
 
1096
	}
1124
	}
1097
 
1125
 
1098
	public void sendAgeingReport() throws Exception {
1126
	public void sendAgeingReport() throws Exception {
1099
		sendAgeingReport("kamini.sharma@smartdukaan.com", "amit.babu@smartdukaan.com", "tarun.verma@smartdukaan.com",
1127
		sendAgeingReport("kamini.sharma@smartdukaan.com", "amit.babu@smartdukaan.com", "tarun.verma@smartdukaan.com",
1100
				"niranjan.kala@smartdukaan.com", "manish.gupta@smartdukaan.com", "kuldeep.kumar@smartdukaan.com");
1128
				"niranjan.kala@smartdukaan.com", "manish.gupta@smartdukaan.com", "kuldeep.kumar@smartdukaan.com");