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

feat(invoices): raise an InvoiceEvent before and after invoice save #10

Merged
merged 3 commits into from
Aug 27, 2021

Conversation

judereid
Copy link

@judereid judereid commented Jun 7, 2021

@thejoshsmith We needed the ability to hook in and add some additional data to contacts and invoices when saving. I saw the todos in there so thought I'd have a crack and send through a PR.

Is this what you had in mind? Am I missing anything?

@moacode
Copy link
Contributor

moacode commented Jun 7, 2021

Hey @judereid, looks good to me at first glance. Will have a proper look over it as soon as I can and get it merged.

@moacode moacode self-requested a review June 7, 2021 20:54
@judereid
Copy link
Author

@thejoshsmith polite bump here 😅

Let me know if you don't think you'll get a chance to look at this in the next few days and I'll set us up to use the forked version instead in the meantime.

@moacode
Copy link
Contributor

moacode commented Jun 15, 2021 via email

@moacode
Copy link
Contributor

moacode commented Aug 26, 2021

@judereid I finally got around to this! Looks great mate, thanks for that. I see you have a branch for naturalpaintco and dinefind—Did you want to get that line item event in here too and I'll merge them all together?

@judereid
Copy link
Author

judereid commented Aug 26, 2021

@thejoshsmith Nice! Yeah cool, I've pulled in the LineItem one too which is handy for customising the line item descriptions etc. We've been using this in prod across both those projects for a while and haven't had any issues.

FYI as well as #7, you can solve #11 and #8 by setting $event->invoice->setLineAmountType('Inclusive'); in the InvoiceEvent listener.

@moacode
Copy link
Contributor

moacode commented Aug 26, 2021

Awesome, thanks @judereid!

@moacode
Copy link
Contributor

moacode commented Aug 26, 2021

We've been using this in prod across both those projects for a while and haven't had any issues.

Were you planning on purchasing licenses? 😛😛😛

@judereid
Copy link
Author

Were you planning on purchasing licenses? 😛😛😛

Will you accept code and a cheese scone as payment? 😅

I'll chase it up today!

@moacode
Copy link
Contributor

moacode commented Aug 26, 2021

Were you planning on purchasing licenses? 😛😛😛

Will you accept code and a cheese scone as payment? 😅

Oh mannnn, I haven't had one of those in a long time. Definitely YES!

@moacode moacode merged commit e6cbd48 into verbb:master Aug 27, 2021
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

Successfully merging this pull request may close these issues.

2 participants