Subversion Repositories SmartDukaan

Rev

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

Rev 25902 Rev 26035
Line 238... Line 238...
238
			LOGGER.info("walletAmount" + amountToRefund);
238
			LOGGER.info("walletAmount" + amountToRefund);
239
 
239
 
240
		}
240
		}
241
		if (creditable_amount_for_reference < amountToRefund) {
241
		if (creditable_amount_for_reference < amountToRefund) {
242
 
242
 
243
			LOGGER.info("order" + "Cant be credited back to wallet as most of it has been already credited");
243
			LOGGER.info("Cant be credited back to wallet as most of it has been already credited");
244
			throw new ProfitMandiBusinessException(ProfitMandiConstants.USER_ID, userWallet.getUserId(),
244
			throw new ProfitMandiBusinessException(ProfitMandiConstants.USER_ID, userWallet.getUserId(),
245
					"Cant be credited back to wallet as most of it has been already credited");
245
					"Cant be credited back to wallet as most of it has been already credited");
246
		}
246
		}
247
 
247
 
248
		userWallet.setAmount(walletAmount + Math.round(amountToRefund));
248
		userWallet.setAmount(walletAmount + Math.round(amountToRefund));