public String printTransactionReceipt(ArrayList<Tuple4<String, String, Integer, Date>> purchases, int finaldeem, String memberID, float totalAmt, int deempoint, float dis, float grandtotal) throws AppException {
boolean success = true;
String reportfilename = "";
CheckoutReport checkoutReport = new CheckoutReport();
try {
success = checkoutReport.generateReport(purchases, finaldeem, memberID, totalAmt, deempoint, dis, grandtotal);
if (success) {
reportfilename = checkoutReport.getFileOutputName();
}
} catch (AppException ex) {
success = false;
Logger.getLogger(AppController.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
throw ex;