Subversion Repositories SmartDukaan

Rev

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

Rev 24001 Rev 24245
Line 730... Line 730...
730
	}
730
	}
731
 
731
 
732
	@Override
732
	@Override
733
	public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException {
733
	public void processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException {
734
		FofoOrder fofoOrder = fofoOrderRepository.selectByFofoIdAndOrderId(retailerId, fofoOrderId);
734
		FofoOrder fofoOrder = fofoOrderRepository.selectByFofoIdAndOrderId(retailerId, fofoOrderId);
735
		List<Scheme> schemes = schemeRepository.selectActiveAll(SchemeType.OUT, LocalDateTime.now());
735
		List<Scheme> schemes = schemeRepository.selectActiveAll(SchemeType.OUT, fofoOrder.getCreateTimestamp());
736
		LOGGER.info("Active Schemes {}", schemes);
736
		LOGGER.info("Active Schemes {}", schemes);
737
		float totalCashback = 0;
737
		float totalCashback = 0;
738
		int count = 0;
738
		int count = 0;
739
		if (schemes.isEmpty()) {
739
		if (schemes.isEmpty()) {
740
			return;
740
			return;