Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to email address #71

Closed
paulobunga opened this issue May 8, 2015 · 3 comments
Closed

Export to email address #71

paulobunga opened this issue May 8, 2015 · 3 comments

Comments

@paulobunga
Copy link

Instead of exporting to excel I would love to get the low inventory via email. Is this possible

@jekkos
Copy link
Member

jekkos commented May 8, 2015

This is certainly possible by editing the code. The excel can be generated and then attached to an email which should be sent to the selected email address. Suppose this would take about 2-3 hours to develop.

@jekkos jekkos closed this as completed May 8, 2015
@paulobunga
Copy link
Author

Ok I would love to try this out. Just wondering if you can offer any assistance incase I get stuck.

@jekkos
Copy link
Member

jekkos commented May 8, 2015

Yes give it a try ... I think you can leverage quite a bit of existing functionality.
First you will need to edit the input form for the report submission. Add an autocomplete box there with a query for customers with an email address (or maybe you just want to send it to the logged in user's address?).

Then it's a matter of using the existing export to excel functionality to store a temp file on the filesystem. You can look at the invoice generation for an example on how to attach this generated file to an email (think it's in the sales.php controller under send_invoice)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants