Subversion Repositories SmartDukaan

Rev

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

Rev 28241 Rev 28518
Line 224... Line 224...
224
	@Override
224
	@Override
225
	public float getOpeningTill(int fofoId, LocalDateTime date) throws ProfitMandiBusinessException {
225
	public float getOpeningTill(int fofoId, LocalDateTime date) throws ProfitMandiBusinessException {
226
		UserWallet wallet = userWalletRepository.selectByRetailerId(fofoId);
226
		UserWallet wallet = userWalletRepository.selectByRetailerId(fofoId);
227
		return userWalletHistoryRepository.getSumTillDate(wallet.getId(), date);
227
		return userWalletHistoryRepository.getSumTillDate(wallet.getId(), date);
228
	}
228
	}
-
 
229
	
-
 
230
	@Override
-
 
231
	public float getOpeningTillExcludingPurchase(int fofoId, LocalDateTime date) throws ProfitMandiBusinessException {
-
 
232
		UserWallet wallet = userWalletRepository.selectByRetailerId(fofoId);
-
 
233
		return userWalletHistoryRepository.getSumTillDate(wallet.getId(), date) -userWalletHistoryRepository.getSumTillDate(wallet.getId(), date, WalletReferenceType.PURCHASE);
-
 
234
	}
229
 
235
 
230
	@Override
236
	@Override
231
	public boolean refundToWallet(int retailerId, float amountToRefund, int transactionId,
237
	public boolean refundToWallet(int retailerId, float amountToRefund, int transactionId,
232
			WalletReferenceType walletReferenceType, String description) throws ProfitMandiBusinessException {
238
			WalletReferenceType walletReferenceType, String description) throws ProfitMandiBusinessException {
233
 
239