Subversion Repositories SmartDukaan

Rev

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

Rev 25606 Rev 25607
Line 569... Line 569...
569
			throws ProfitMandiBusinessException {
569
			throws ProfitMandiBusinessException {
570
		LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
570
		LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
571
 
571
 
572
		Map<String, Object> map = orderService.getSaleHistory(loginDetails.getFofoId(), searchType, searchValue,
572
		Map<String, Object> map = orderService.getSaleHistory(loginDetails.getFofoId(), searchType, searchValue,
573
				startTime, endTime, offset, limit);
573
				startTime, endTime, offset, limit);
574
		long size = 0;
-
 
575
		model.addAllAttributes(map);
-
 
576
		size = map.size();
-
 
577
 
574
 
578
		model.addAttribute("start", offset + 1);
-
 
579
		model.addAttribute("size", size);
575
		model.addAllAttributes(map);
580
 
576
 
581
		model.addAttribute("url", "/getPaginatedSaleHistory");
577
		model.addAttribute("url", "/getPaginatedSaleHistory");
582
 
578
 
583
		if (map.size() < limit) {
-
 
584
			model.addAttribute("end", offset + map.size());
-
 
585
		} else {
-
 
586
			model.addAttribute("end", offset + limit);
-
 
587
		}
-
 
588
 
-
 
589
		return "sale-history";
579
		return "sale-history";
590
	}
580
	}
591
 
581
 
592
	@RequestMapping(value = "/downloadInvoices")
582
	@RequestMapping(value = "/downloadInvoices")
593
	public ResponseEntity<?> downloadInvoices(HttpServletRequest request,
583
	public ResponseEntity<?> downloadInvoices(HttpServletRequest request,