Discharge printouts

Changes to allow printing of documents directly from discharge window