Subversion Repositories SmartDukaan

Rev

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

Rev 36904 Rev 36928
Line 1214... Line 1214...
1214
        UserWallet userWallet = userWalletRepository.selectById(userWalletHistory.get(0).getWalletId());
1214
        UserWallet userWallet = userWalletRepository.selectById(userWalletHistory.get(0).getWalletId());
1215
 
1215
 
1216
        LOGGER.info("userWallet" + userWallet);
1216
        LOGGER.info("userWallet" + userWallet);
1217
        CustomRetailer customretailer = retailerService.getFofoRetailer(userWallet.getUserId());
1217
        CustomRetailer customretailer = retailerService.getFofoRetailer(userWallet.getUserId());
1218
 
1218
 
-
 
1219
        com.spice.profitmandi.dao.model.CreditSummary creditSummary = sdCreditService.getCreditSummary(userWallet.getUserId());
-
 
1220
 
1219
        model.addAttribute("userWallet", userWallet);
1221
        model.addAttribute("userWallet", userWallet);
1220
        model.addAttribute("customretailer", customretailer);
1222
        model.addAttribute("customretailer", customretailer);
1221
 
1223
 
1222
        model.addAttribute("wallethistory", userWalletHistory);
1224
        model.addAttribute("wallethistory", userWalletHistory);
-
 
1225
        model.addAttribute("totalDue", creditSummary.getTotalDue());
-
 
1226
        model.addAttribute("creditlimit", creditSummary.getCreditLimit());
-
 
1227
        model.addAttribute("availableLimit", creditSummary.getAvailableLimit());
1223
        model.addAttribute("response1", mvcResponseSender.createResponseString(true));
1228
        model.addAttribute("response1", mvcResponseSender.createResponseString(true));
1224
        return "wallet-history";
1229
        return "wallet-history";
1225
 
1230
 
1226
    }
1231
    }
1227
 
1232