Subversion Repositories SmartDukaan

Rev

Rev 34713 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34713 Rev 34728
Line 1586... Line 1586...
1586
                    loanStatement.getStatus()  // Status (calculated value)
1586
                    loanStatement.getStatus()  // Status (calculated value)
1587
            ));
1587
            ));
1588
        }
1588
        }
1589
 
1589
 
1590
        // Set up the headers and create the CSV
1590
        // Set up the headers and create the CSV
1591
        List<String> headers = Arrays.asList("Code", "ID", "Store Name", "State", "Zone", "Area", "Territory", "Loan ID",
1591
        List<String> headers = Arrays.asList("Code", "ID", "Store Name", "State", "Zone", "Area", "Territory", "Credit ID",
1592
                "Interest Rate", "Initial Amount", "Pending Amount", "Invoice Number", "Created On", "Due Date",
1592
                "Interest Rate", "Initial Amount", "Pending Amount", "Invoice Number", "Created On", "Due Date",
1593
                "Interest Accrued", "Interest Paid", "Free Days", "Loan Reference Type",
1593
                "Interest Accrued", "Interest Paid", "Free Days", "Credit Reference Type",
1594
                "Amount", "Business Date", "Created At", "Description", "Status");
1594
                "Amount", "Business Date", "Created At", "Description", "Status");
1595
 
1595
 
1596
        // Create the CSV byte stream
1596
        // Create the CSV byte stream
1597
        org.apache.commons.io.output.ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, rows);
1597
        org.apache.commons.io.output.ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, rows);
1598
        ResponseEntity<?> responseEntity = orderService.downloadReportInCsv(baos, rows, "Partner Loan Summary Report");
1598
        ResponseEntity<?> responseEntity = orderService.downloadReportInCsv(baos, rows, "Partner Credit Summary Report");
1599
 
1599
 
1600
        return responseEntity;
1600
        return responseEntity;
1601
 
1601
 
1602
    }
1602
    }
1603
 
1603