redmine issue  #4114 create discharge printout