-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
[Invoices] Notify if any order cannot be invoiced on bulk invoice sending #12458
[Invoices] Notify if any order cannot be invoiced on bulk invoice sending #12458
Conversation
3e86db5
to
3d32f70
Compare
app/reflexes/admin/orders_reflex.rb
Outdated
def distributors_without_abn(orders) | ||
Enterprise.where( | ||
id: orders.select(:distributor_id), | ||
abn: [nil,""], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The empty string abn
isn't cover by specs, could you update that ?
7a05c7f
to
9caa9db
Compare
9caa9db
to
b0862d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All Good now, Thanks @abdellani !
Hey @abdellani , Tried both described scenarios, after making ABN mandatory for the instance, and deleting the ABN for the enterprise. On the orders page:
Looks great! Merging :-) |
b1f7807
into
openfoodfoundation:master
What? Why?
What should we test?
Release notes
Changelog Category (reviewers may add a label for the release notes):
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates