Fix purchase report and line endings