@RequestMapping(value = "/receipts/getLotLocations", method = RequestMethod.POST)
 public @ResponseBody List<SelectOption> getLotLocations() {
   logger.info("In ReceiptsController-getLotLocations()...");
   List<SelectOption> lotLocations = null;
   try {
     lotLocations = receiptsService.getLotLocations();
   } catch (Exception e) {
     logger.error(e);
   }
   return lotLocations;
 }
 @RequestMapping(value = "/displayReceipts", method = RequestMethod.POST)
 public ModelAndView getReceiptsDetails(SearchCriteria criteria, ModelAndView model) {
   logger.info("In AllInvoicesController-getAllInvoicesList()...");
   try {
     SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
     SimpleDateFormat sdf1 = new SimpleDateFormat("MM/dd/yyyy");
     Receipts receipts = receiptsService.getReceiptsDetails(criteria);
     Date fromDate = sdf.parse(receipts.getFromDate());
     model.addObject("fromDate", sdf1.format(fromDate));
     Date toDate = sdf.parse(receipts.getToDate());
     model.addObject("toDate", sdf1.format(toDate));
     model.addObject("location", criteria.getLocation());
     logger.info("receipts.getReceiptDetails().size() : " + receipts.getReceiptDetails().size());
     model.addObject("receiptDetails", receipts.getReceiptDetails());
     model.addObject("receiptTotals", receipts.getReceiptsTotals());
     model.addObject("paymentTypeTotal", receipts.getPaymentTypeTotal());
     model.setViewName("receipts");
   } catch (Exception e) {
     logger.error(e);
     e.printStackTrace();
   }
   return model;
 }