Subversion Repositories SmartDukaan

Rev

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

Rev 7427 Rev 7527
Line 296... Line 296...
296
            serialNo++;
296
            serialNo++;
297
            Row contentRow = reportSheet.createRow((short)serialNo);
297
            Row contentRow = reportSheet.createRow((short)serialNo);
298
            contentRow.createCell(0).setCellValue(order.getId());
298
            contentRow.createCell(0).setCellValue(order.getId());
299
            contentRow.createCell(1).setCellValue(formatter.format(new Date(order.getCreated_timestamp())));
299
            contentRow.createCell(1).setCellValue(formatter.format(new Date(order.getCreated_timestamp())));
300
            contentRow.createCell(2).setCellValue(getProductName(order.getLineitems().get(0)));
300
            contentRow.createCell(2).setCellValue(getProductName(order.getLineitems().get(0)));
301
            contentRow.createCell(3).setCellValue(order.getStatusDescription());
301
            contentRow.createCell(3).setCellValue(order.getStatus().getDescription());
302
            contentRow.createCell(4).setCellValue(order.getTotal_amount());
302
            contentRow.createCell(4).setCellValue(order.getTotal_amount());
303
            contentRow.createCell(5).setCellValue(order.getAdvanceAmount());
303
            contentRow.createCell(5).setCellValue(order.getAdvanceAmount());
304
        }
304
        }
305
        try {
305
        try {
306
            wb.write(baosXLS);
306
            wb.write(baosXLS);