Subversion Repositories SmartDukaan

Rev

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

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