Passing selected organisation to the document generation function