1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.kuali.kfs.gl.report;
20
21 import org.kuali.kfs.sys.service.ReportWriterService;
22
23 public class PreScrubberReport {
24 public void generateReport(PreScrubberReportData preScrubberReportData, ReportWriterService reportWriterService) {
25 reportWriterService.writeFormattedMessageLine("Origin Entries In %,20d", preScrubberReportData.getInputRecords());
26 reportWriterService.writeFormattedMessageLine("Origin Entries Out%,20d", preScrubberReportData.getOutputRecords());
27 if (!preScrubberReportData.getAccountsWithNoCharts().isEmpty()) {
28 reportWriterService.writeNewLines(2);
29 reportWriterService.writeFormattedMessageLine("The following account numbers were not associated with any chart of accounts code:");
30 for (String accountNumber : preScrubberReportData.getAccountsWithNoCharts()) {
31 reportWriterService.writeFormattedMessageLine("%15s", accountNumber);
32 }
33 }
34 if (!preScrubberReportData.getAccountsWithMultipleCharts().isEmpty()) {
35 reportWriterService.writeNewLines(2);
36 reportWriterService.writeFormattedMessageLine("The following account numbers were associated with multiple chart of accounts codes:");
37 for (String accountNumber : preScrubberReportData.getAccountsWithMultipleCharts()) {
38 reportWriterService.writeFormattedMessageLine("%15s", accountNumber);
39 }
40 }
41 }
42 }