snl-dev-team / snl-inventory-app

Scalable, user-friendly inventory management software with support for automated reporting and multi-level relations between orders, products, and materials.
2 stars 0 forks source link

Add Reporting #53

Closed znields closed 3 years ago

znields commented 3 years ago
jacksonet00 commented 3 years ago

@isaiahnields https://www.tutsandtips.com/javascript/how-to-download-a-text-file-with-javascript/

znields commented 3 years ago

Just added download buttons, but they only download the json rather than CSV. Will work on this later today.

jacksonet00 commented 3 years ago

Looks like we may need to change CORS settings. I get an error when I click download button.

Screen Shot 2020-12-06 at 3 37 59 PM
znields commented 3 years ago

Oh good catch. We need to pass in the JWT when we request the download.

znields commented 3 years ago

Should be fixed now.

jacksonet00 commented 3 years ago

working 👍🏼

jacksonet00 commented 3 years ago

@isaiahnields actually... yes it is working when i run master locally, but when I visit the deployed link now CORS is blocking all requests, so there is no data at all

znields commented 3 years ago

Order T3JkZXI6MjI= Report (2).xlsx

Here's an example of the new export.

jacksonet00 commented 3 years ago

Looks really cool!