Subversion Repositories SmartDukaan

Rev

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

Rev 7207 Rev 7282
Line 297... Line 297...
297
	    reportSheetHeader.createCell(5).setCellValue("Recharge Amount");
297
	    reportSheetHeader.createCell(5).setCellValue("Recharge Amount");
298
	    reportSheetHeader.createCell(6).setCellValue("Discount");
298
	    reportSheetHeader.createCell(6).setCellValue("Discount");
299
	    reportSheetHeader.createCell(7).setCellValue("Net Amount");
299
	    reportSheetHeader.createCell(7).setCellValue("Net Amount");
300
	    reportSheetHeader.createCell(8).setCellValue("Type");
300
	    reportSheetHeader.createCell(8).setCellValue("Type");
301
	    reportSheetHeader.createCell(9).setCellValue("Pay Method");
301
	    reportSheetHeader.createCell(9).setCellValue("Pay Method");
-
 
302
	    reportSheetHeader.createCell(10).setCellValue("Refund Date");
302
	    
303
	    
303
	    int serialNo = 0;
304
	    int serialNo = 0;
304
	    
305
	    
305
	    for(RechargeTransaction transaction : rechargeTrans) {
306
	    for(RechargeTransaction transaction : rechargeTrans) {
306
	    	serialNo++;
307
	    	serialNo++;
Line 313... Line 314...
313
	    	contentRow.createCell(5).setCellValue(transaction.getAmount());
314
	    	contentRow.createCell(5).setCellValue(transaction.getAmount());
314
	    	contentRow.createCell(6).setCellValue(transaction.getDiscount());
315
	    	contentRow.createCell(6).setCellValue(transaction.getDiscount());
315
	    	contentRow.createCell(7).setCellValue(transaction.getPaymentAmount());
316
	    	contentRow.createCell(7).setCellValue(transaction.getPaymentAmount());
316
	    	contentRow.createCell(8).setCellValue(transaction.isIsFrc() ? "FRC" : "Normal");
317
	    	contentRow.createCell(8).setCellValue(transaction.isIsFrc() ? "FRC" : "Normal");
317
	    	contentRow.createCell(9).setCellValue(transaction.getPayMethod().name());
318
	    	contentRow.createCell(9).setCellValue(transaction.getPayMethod().name());
-
 
319
	    	if(transaction.getStatus() == RechargeOrderStatus.RECHARGE_FAILED_REFUNDED) {
-
 
320
	    	    contentRow.createCell(10).setCellValue(transaction.getResponseTime());
-
 
321
	    	} else {
-
 
322
	    	    contentRow.createCell(10).setCellValue("N/A");
-
 
323
	    	}
318
	    }
324
	    }
319
	    try {
325
	    try {
320
			wb.write(baosXLS);
326
			wb.write(baosXLS);
321
		} catch (IOException e) {
327
		} catch (IOException e) {
322
			// TODO Auto-generated catch block
328
			// TODO Auto-generated catch block