Subversion Repositories SmartDukaan

Rev

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

Rev 25255 Rev 25258
Line 52... Line 52...
52
	}
52
	}
53
 
53
 
54
	@Override
54
	@Override
55
	public void consumeAmountFromWallet(int retailerId, int referenceId, WalletReferenceType referenceType,
55
	public void consumeAmountFromWallet(int retailerId, int referenceId, WalletReferenceType referenceType,
56
			String description, float amount) throws ProfitMandiBusinessException {
56
			String description, float amount) throws ProfitMandiBusinessException {
57
		if(underMaintainance && !referenceType.equals(WalletReferenceType.RECHARGE)) {
57
		if(underMaintainance && !referenceType.equals(WalletReferenceType.PURCHASE)) {
58
			throw pbse;
58
			throw pbse;
59
		}
59
		}
60
		if (amount == 0)
60
		if (amount == 0)
61
			return;
61
			return;
62
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);
62
		UserWallet userWallet = userWalletRepository.selectByRetailerId(retailerId);