Subversion Repositories SmartDukaan

Rev

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

Rev 36720 Rev 36746
Line 225... Line 225...
225
        try {
225
        try {
226
            countItems = walletService.getSizeByRetailerId(fofoDetails.getFofoId(), startDateTime, endDateTime);
226
            countItems = walletService.getSizeByRetailerId(fofoDetails.getFofoId(), startDateTime, endDateTime);
227
        } catch (ProfitMandiBusinessException profitMandiBusinessException) {
227
        } catch (ProfitMandiBusinessException profitMandiBusinessException) {
228
            LOGGER.error("UserWallet not found : ", profitMandiBusinessException);
228
            LOGGER.error("UserWallet not found : ", profitMandiBusinessException);
229
        }
229
        }
-
 
230
        com.spice.profitmandi.dao.model.CreditSummary creditSummary = sdCreditService.getCreditSummary(fofoId);
230
        model.addAttribute("userWallet", userWallet);
231
        model.addAttribute("userWallet", userWallet);
231
        model.addAttribute("walletHistories", userWalletHistories);
232
        model.addAttribute("walletHistories", userWalletHistories);
232
        model.addAttribute("walletAttachmentMap", buildWalletHistoryAttachmentMap(userWalletHistories));
233
        model.addAttribute("walletAttachmentMap", buildWalletHistoryAttachmentMap(userWalletHistories));
233
        model.addAttribute("start", offset + 1);
234
        model.addAttribute("start", offset + 1);
234
        model.addAttribute("size", countItems);
235
        model.addAttribute("size", countItems);
235
        model.addAttribute("isAdmin", isAdmin);
236
        model.addAttribute("isAdmin", isAdmin);
-
 
237
        model.addAttribute("totalDue", creditSummary.getTotalDue());
-
 
238
        model.addAttribute("utilization", creditSummary.getUtilization());
236
        model.addAttribute(ProfitMandiConstants.START_TIME, startTimeString);
239
        model.addAttribute(ProfitMandiConstants.START_TIME, startTimeString);
237
        model.addAttribute(ProfitMandiConstants.END_TIME, endTimeString);
240
        model.addAttribute(ProfitMandiConstants.END_TIME, endTimeString);
238
 
241
 
239
        if (userWalletHistories.size() < limit) {
242
        if (userWalletHistories.size() < limit) {
240
            model.addAttribute("end", offset + userWalletHistories.size());
243
            model.addAttribute("end", offset + userWalletHistories.size());