Subversion Repositories SmartDukaan

Rev

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

Rev 28088 Rev 28089
Line 582... Line 582...
582
				}
582
				}
583
			}
583
			}
584
			attachments.add(new Attachment("invoice-" + serialNumber + ".pdf", new ByteArrayResource(bytes)));
584
			attachments.add(new Attachment("invoice-" + serialNumber + ".pdf", new ByteArrayResource(bytes)));
585
		}
585
		}
586
		
586
		
587
		Utils.sendMailWithAttachments(mailSender, new String[] {"kuldeep.kumar@smartdukaan.com"}, null, "Invoices List", null, attachments.toArray(new Attachment[attachments.size()]));
587
		Utils.sendMailWithAttachments(mailSender, new String[] {"kuldeep.kumar@smartdukaan.com"}, null, "Invoices List", "PFA", attachments.toArray(new Attachment[attachments.size()]));
588
		return new ResponseEntity<Boolean>(true, HttpStatus.OK);
588
		return new ResponseEntity<Boolean>(true, HttpStatus.OK);
589
	}
589
	}
590
 
590
 
591
	@RequestMapping(value = "/getInventoryItemAgingByInterval", method = RequestMethod.POST)
591
	@RequestMapping(value = "/getInventoryItemAgingByInterval", method = RequestMethod.POST)
592
	public String getInventoryItemAgingByInterval(HttpServletRequest request, @RequestBody List<Integer> intervals,
592
	public String getInventoryItemAgingByInterval(HttpServletRequest request, @RequestBody List<Integer> intervals,