Subversion Repositories SmartDukaan

Rev

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

Rev 35458 Rev 35572
Line 478... Line 478...
478
        }
478
        }
479
        if (addWalletRequest.getStatus().equals(AddWalletRequestStatus.pending)) {
479
        if (addWalletRequest.getStatus().equals(AddWalletRequestStatus.pending)) {
480
            walletService.addAmountToWallet(addWalletRequest.getRetailerId(), walletRequestid, WalletReferenceType.ADVANCE_AMOUNT, "ntfs/rgfs", addWalletRequest.getAmount(), addWalletRequest.getCreateTimestamp());
480
            walletService.addAmountToWallet(addWalletRequest.getRetailerId(), walletRequestid, WalletReferenceType.ADVANCE_AMOUNT, "ntfs/rgfs", addWalletRequest.getAmount(), addWalletRequest.getCreateTimestamp());
481
            addWalletRequest.setStatus(AddWalletRequestStatus.approved);
481
            addWalletRequest.setStatus(AddWalletRequestStatus.approved);
482
            addWalletRequest.setUpdateTimestamp(LocalDateTime.now());
482
            addWalletRequest.setUpdateTimestamp(LocalDateTime.now());
483
            addWalletRequestRepository.persist(addWalletRequest);
-
 
484
            unsettledPaymentsRepository.deleteById(id);
483
            unsettledPaymentsRepository.deleteById(id);
485
 
484
 
486
            // check full stock payment if partner comes from Loi process
485
            // check full stock payment if partner comes from Loi process
487
            String code = fofoStoreRepository.selectByRetailerId(addWalletRequest.getRetailerId()).getCode();
486
            String code = fofoStoreRepository.selectByRetailerId(addWalletRequest.getRetailerId()).getCode();
488
            StoreTimelineModel storeTimelineModel = partnerOnBoardingPanelRepository.selectStoreTimeLine(code);
487
            StoreTimelineModel storeTimelineModel = partnerOnBoardingPanelRepository.selectStoreTimeLine(code);