Subversion Repositories SmartDukaan

Rev

Rev 36400 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36400 Rev 36946
Line 156... Line 156...
156
        addWalletRequests = addWalletRequests.stream().filter(x -> Arrays.asList(approved, AddWalletRequestStatus.pending).contains(x.getStatus())).collect(Collectors.toList());
156
        addWalletRequests = addWalletRequests.stream().filter(x -> Arrays.asList(approved, AddWalletRequestStatus.pending).contains(x.getStatus())).collect(Collectors.toList());
157
        if (addWalletRequests.size() > 0) {
157
        if (addWalletRequests.size() > 0) {
158
            throw new ProfitMandiBusinessException("Transaction Reference (UTR)", transactionReference, "Already added");
158
            throw new ProfitMandiBusinessException("Transaction Reference (UTR)", transactionReference, "Already added");
159
        }
159
        }
160
        HdfcPayment hdfcPayment = hdfcPaymentRepository.selectByUtrNo(transactionReference);
160
        HdfcPayment hdfcPayment = hdfcPaymentRepository.selectByUtrNo(transactionReference);
161
        if (hdfcPayment != null) {
161
        if (hdfcPayment != null && hdfcPayment.isCredited()) {
162
            throw new ProfitMandiBusinessException("Transaction Reference (UTR)", transactionReference, "Already added");
162
            throw new ProfitMandiBusinessException("Transaction Reference (UTR)", transactionReference, "Already added");
163
        }
163
        }
164
		int retailerId = userAccountRepository.selectRetailerIdByUserId(userId);
164
		int retailerId = userAccountRepository.selectRetailerIdByUserId(userId);
165
		CustomRetailer customRetailer = retailerService.getFofoRetailer(retailerId);
165
		CustomRetailer customRetailer = retailerService.getFofoRetailer(retailerId);
166
		AddWalletRequest addWalletrequest = new AddWalletRequest();
166
		AddWalletRequest addWalletrequest = new AddWalletRequest();