Subversion Repositories SmartDukaan

Rev

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

Rev 25558 Rev 25563
Line 645... Line 645...
645
				new ByteArrayResource(baos.toByteArray()));
645
				new ByteArrayResource(baos.toByteArray()));
646
 
646
 
647
	}
647
	}
648
 
648
 
649
	public void sendPartnerInvestmentDetails() throws Exception {
649
	public void sendPartnerInvestmentDetails() throws Exception {
650
		this.sendPartnerInvestmentDetails();
-
 
651
		this.sendTargetVsSalesReport(null);
650
		this.sendTargetVsSalesReport(null);
652
 
651
 
653
	}
652
	}
654
 
653
 
655
	public void sendTargetVsSalesReport(List<String> sendTo) throws Exception {
654
	public void sendTargetVsSalesReport(List<String> sendTo) throws Exception {
Line 1535... Line 1534...
1535
 
1534
 
1536
	public void grouping() throws Exception {
1535
	public void grouping() throws Exception {
1537
		for (FofoStore fofoStore : fofoStoreRepository.selectAll()) {
1536
		for (FofoStore fofoStore : fofoStoreRepository.selectAll()) {
1538
			/*LOGGER.info("{}, {}", fofoStore.getId(),
1537
			/*LOGGER.info("{}, {}", fofoStore.getId(),
1539
					partnerTypeChangeService.getTypeOnDate(fofoStore.getId(), LocalDate.now().plusDays(1)));*/
1538
					partnerTypeChangeService.getTypeOnDate(fofoStore.getId(), LocalDate.now().plusDays(1)));*/
1540
				UserWallet userWallet = userWalletRepository.selectById(fofoStore.getId());
1539
				UserWallet userWallet = userWalletRepository.selectByRetailerId(fofoStore.getId());
1541
				if(userWallet==null) continue;
1540
				if(userWallet==null) continue;
1542
				System.out.printf("Store Code %s, Wallet amount %d, Sum amount %f%n", fofoStore.getCode(), userWallet.getAmount(), walletService.getWalletAmount(fofoStore.getId()));
1541
				System.out.printf("Store Code %s, Wallet amount %d, Sum amount %f%n", fofoStore.getCode(), userWallet.getAmount(), walletService.getWalletAmount(fofoStore.getId()));
1543
		}
1542
		}
1544
	}
1543
	}
1545
}
1544
}