Fixing minnor bugs and PDF for export Sales