Subversion Repositories SmartDukaan

Rev

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

Rev 8182 Rev 8194
Line 96... Line 96...
96
			logger.warn("Couldn't infer whether bill should be printed. Not printing the bill.", e);
96
			logger.warn("Couldn't infer whether bill should be printed. Not printing the bill.", e);
97
		}
97
		}
98
 
98
 
99
		logger.info("Printing invoice for order id: " + orderId);
99
		logger.info("Printing invoice for order id: " + orderId);
100
		
100
		
101
		//ByteArrayOutputStream baos = null;
101
		ByteArrayOutputStream baos = null;
102
	
102
	
103
		InvoiceGenerationService invoiceGenerationService = new InvoiceGenerationService();
103
		InvoiceGenerationService invoiceGenerationService = new InvoiceGenerationService();
104
		baos = invoiceGenerationService.generateInvoice(orderId, withBill, printAll, warehouseId);
104
		baos = invoiceGenerationService.generateInvoice(orderId, withBill, printAll, warehouseId);
105
 
105
 
106
		response.setContentType("application/pdf");
106
		response.setContentType("application/pdf");