| Line 813... |
Line 813... |
| 813 |
CustomRetailer cr = customRetailerMap.get(retailerId);
|
813 |
CustomRetailer cr = customRetailerMap.get(retailerId);
|
| 814 |
|
814 |
|
| 815 |
rows.add(Arrays.asList(retailerId, cr.getBusinessName(), cr.getAddress().getCity(), cr.getAddress().getState(), accountClosing, wallet, pendingIndent, loanOutstanding));
|
815 |
rows.add(Arrays.asList(retailerId, cr.getBusinessName(), cr.getAddress().getCity(), cr.getAddress().getState(), accountClosing, wallet, pendingIndent, loanOutstanding));
|
| 816 |
}
|
816 |
}
|
| 817 |
|
817 |
|
| 818 |
org.apache.commons.io.output.ByteArrayOutputStream byteArrayOutputStream = FileUtil.getCSVByteStream(Arrays.asList("Id", "Partner Name", "City", "State", "Closing Balance", "Closing Wallet", "In Transit", "Loan Outstanding"), rows);
|
818 |
org.apache.commons.io.output.ByteArrayOutputStream byteArrayOutputStream = FileUtil.getCSVByteStream(Arrays.asList("Id", "Partner Name", "City", "State", "Closing Balance", "Closing Wallet", "Unbilled PO", "Loan Outstanding"), rows);
|
| 819 |
final HttpHeaders headers = new HttpHeaders();
|
819 |
final HttpHeaders headers = new HttpHeaders();
|
| 820 |
headers.set("Content-Type", "text/csv");
|
820 |
headers.set("Content-Type", "text/csv");
|
| 821 |
headers.set("Content-disposition", "inline; filename=account-statement-closing-." + StringUtils.toHyphenatedString(closingDate) + ".csv");
|
821 |
headers.set("Content-disposition", "inline; filename=account-statement-closing-." + StringUtils.toHyphenatedString(closingDate) + ".csv");
|
| 822 |
headers.setContentLength(byteArrayOutputStream.toByteArray().length);
|
822 |
headers.setContentLength(byteArrayOutputStream.toByteArray().length);
|
| 823 |
|
823 |
|