Subversion Repositories SmartDukaan

Rev

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

Rev 31785 Rev 32075
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,
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 = "1000") int limit) throws ProfitMandiBusinessException {
482
                                                  @RequestParam(name = "searchContent", defaultValue = "") String searchContent,
-
 
483
                                                  @RequestParam(name = "offset", defaultValue = "0") int offset,
-
 
484
                                                  @RequestParam(name = "limit", defaultValue = "1000") int limit) throws ProfitMandiBusinessException {
-
 
485
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
482
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
486
        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);
487
        model.addAllAttributes(map);
484
        model.addAllAttributes(map);
488
        return "item-aging";
485
        return "item-aging";
489
    }
486
    }
Line 1788... Line 1785...
1788
        model.addAttribute("response1", mvcResponseSender.createResponseString(true));
1785
        model.addAttribute("response1", mvcResponseSender.createResponseString(true));
1789
 
1786
 
1790
        return "response";
1787
        return "response";
1791
 
1788
 
1792
    }
1789
    }
-
 
1790
 
-
 
1791
 
1793
}
1792
}