code updates for producing sale reports, removing code duplication