Subversion Repositories SmartDukaan

Rev

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

Rev 24737 Rev 24754
Line 701... Line 701...
701
	public void sendAgeingReport(String... sendTo) throws Exception {
701
	public void sendAgeingReport(String... sendTo) throws Exception {
702
 
702
 
703
		InputStreamSource isr = reporticoService.getReportInputStreamSource(ReporticoProject.WAREHOUSENEW,
703
		InputStreamSource isr = reporticoService.getReportInputStreamSource(ReporticoProject.WAREHOUSENEW,
704
				"itemstockageing.xml");
704
				"itemstockageing.xml");
705
		InputStreamSource isr1 = reporticoService.getReportInputStreamSource(ReporticoProject.FOCO,
705
		InputStreamSource isr1 = reporticoService.getReportInputStreamSource(ReporticoProject.FOCO,
706
				"ItemwiseOverallPendingIndent");
706
				"ItemwiseOverallPendingIndent.xml");
707
		Attachment attachment = new Attachment(
707
		Attachment attachment = new Attachment(
708
				"aeging-report-" + FormattingUtils.formatDate(LocalDateTime.now().minusDays(1)) + ".csv", isr);
708
				"aeging-report-" + FormattingUtils.formatDate(LocalDateTime.now().minusDays(1)) + ".csv", isr);
709
		Attachment attachment1 = new Attachment(
709
		Attachment attachment1 = new Attachment(
710
				"aeging-report-" + FormattingUtils.formatDate(LocalDateTime.now().minusDays(1)) + ".csv", isr1);
710
				"aeging-report-" + FormattingUtils.formatDate(LocalDateTime.now().minusDays(1)) + ".csv", isr1);
711
		Utils.sendMailWithAttachments(googleMailSender, sendTo, null, "Stock Aeging Report", "PFA", attachment, attachment1);
711
		Utils.sendMailWithAttachments(googleMailSender, sendTo, null, "Stock Aeging Report", "PFA", attachment, attachment1);