Subversion Repositories SmartDukaan

Rev

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

Rev 25531 Rev 25532
Line 669... Line 669...
669
		System.out.println("id\tcode\tname\tcity\tstate\tsaved wallet\tcalculated wallet\tdifference");
669
		System.out.println("id\tcode\tname\tcity\tstate\tsaved wallet\tcalculated wallet\tdifference");
670
		for (FofoStore fofoStore : fofoStores) {
670
		for (FofoStore fofoStore : fofoStores) {
671
			UserWallet uw = userWalletRepository.selectByRetailerId(fofoStore.getId());
671
			UserWallet uw = userWalletRepository.selectByRetailerId(fofoStore.getId());
672
			User user = userRepository.selectById(fofoStore.getId());
672
			User user = userRepository.selectById(fofoStore.getId());
673
			Address address = addressRepository.selectById(user.getAddressId());
673
			Address address = addressRepository.selectById(user.getAddressId());
674
			double calculated = (int)userWalletHistoryRepository.selectSumByWallet(uw.getId());
674
			int calculated = (int)userWalletHistoryRepository.selectSumByWallet(uw.getId());
675
			System.out.printf("%d\t%s\t%s\t%s\t%s\t%d\t%d\t%f\t%s", fofoStore.getId(), fofoStore.getCode(), 
675
			System.out.printf("%d\t%s\t%s\t%s\t%s\t%d\t%d\t%d", fofoStore.getId(), fofoStore.getCode(), 
676
					address.getCity(), address.getName(), address.getState(), uw.getAmount(), calculated, 
676
					address.getCity(), address.getName(), address.getState(), uw.getAmount(), calculated, 
677
					calculated - uw.getAmount());
677
					calculated - uw.getAmount());
678
		}
678
		}
679
	}
679
	}
680
}
680
}