Subversion Repositories SmartDukaan

Rev

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

Rev 31762 Rev 31784
Line 476... Line 476...
476
        Utils.sendMailWithAttachments(mailSender, new String[]{"kuldeep.kumar@smartdukaan.com"}, null, "Invoices List", "PFA", attachments.toArray(new Attachment[attachments.size()]));
476
        Utils.sendMailWithAttachments(mailSender, new String[]{"kuldeep.kumar@smartdukaan.com"}, null, "Invoices List", "PFA", attachments.toArray(new Attachment[attachments.size()]));
477
        return new ResponseEntity<Boolean>(true, HttpStatus.OK);
477
        return new ResponseEntity<Boolean>(true, HttpStatus.OK);
478
    }
478
    }
479
 
479
 
480
    @RequestMapping(value = "/getInventoryItemAgingByInterval", method = RequestMethod.POST)
480
    @RequestMapping(value = "/getInventoryItemAgingByInterval", method = RequestMethod.POST)
481
    public String getInventoryItemAgingByInterval(HttpServletRequest request, @RequestBody List<Integer> intervals, Model model, @RequestParam(name = "searchContent", defaultValue = "") String searchContent, @RequestParam(name = "offset", defaultValue = "0") int offset, @RequestParam(name = "limit", defaultValue = "10") int limit) throws ProfitMandiBusinessException {
481
    public String getInventoryItemAgingByInterval(HttpServletRequest request, @RequestBody List<Integer> intervals, Model model, @RequestParam(name = "searchContent", defaultValue = "") String searchContent, @RequestParam(name = "offset", defaultValue = "1000") int offset, @RequestParam(name = "limit", defaultValue = "10") int limit) throws ProfitMandiBusinessException {
482
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
482
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
483
        Map<String, Object> map = inventoryService.getPaginatedItemAgingByInterval(loginDetails.getFofoId(), intervals, searchContent, offset, limit);
483
        Map<String, Object> map = inventoryService.getPaginatedItemAgingByInterval(loginDetails.getFofoId(), intervals, searchContent, offset, limit);
484
        model.addAllAttributes(map);
484
        model.addAllAttributes(map);
485
        return "item-aging";
485
        return "item-aging";
486
    }
486
    }