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

Feature/addattachment #156

Merged
merged 3 commits into from
Jul 11, 2018
Merged

Conversation

derkgort
Copy link
Contributor

@derkgort derkgort commented Jul 2, 2018

Added option to upload/add an attachment to an SalesInvoice.
This is mostly heavily inspired by the change suggested by @dannyvw in #102. New issue: #157

'multipart' => [
[
'name' => 'file',
'contents' => fopen($file, 'r'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just pass the file contents to the addAttachment method. This way anyone who implements it has their own choice of how to get the contents. For example if someone has contents in a database, they would query it and pass it to the method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable. I will change it to do that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gizburdt
Copy link

Would love this feature! Can this be merged? :)

This will support anything, and not only files.
@stephangroen
Copy link
Member

Thanks for the change @derkgort :)

@stephangroen stephangroen merged commit f9e344d into picqer:master Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants