-
-
Notifications
You must be signed in to change notification settings - Fork 718
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
Fix supplier loading on Product & inventory report #12797
base: master
Are you sure you want to change the base?
Conversation
Plus spec Left over from product refactor, it was missed because it's not covered by unit or integration test
1d8945a
to
ef6e37e
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.
Nice cleanup. I hope that nobody will be confused by additional data in the report. This may need running past the product team. Kirsten had doubts about the use of this report, didn't she?
Anyway, it seems a good change.
@mkllnk @rioug Kirsten was speaking about the bulk coop report. Here I guess if no one has reported it, that the report is rarely used, but maybe this bug also prevented the use of it? If I understand clearly, a distributor with no product, but managing it's suppliers would never see data on it. It makes sense to me that we show the data the user has access to. Otherwise we should hide the report from them. So I'm ok with moving forward with that PR 👍 |
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.
Great, I can see this is fixed thanks to the spec 💪
From what I understand, it is now meant to be more accurate, and will now show only suppliers that I have distributed products for? Instead of all suppliers that I have access to?
I don't see this new feature covered in the spec, but I don't know enough to judge how important it is...
The part that I fixed only affect the supplier dropdown, it should not display additional data in the report. It means that before a user was not able to filter by supplier from a product distributed by the distributor. |
Opened an issue to track this here. |
Work in Progress
Before
Check that enterprise is removed from supplier dropdown when set to non-producer. |
What? Why?
I came across this when fixing #12768
Not all supplier are loaded in the "Product & inventory" report it's missing the suppliers of products distributed by the distributors the current user manages. As far as I could tell it wasn't covered by spec.
What should we test?
Set up an enterprise user that can manage another enterprise, and create an order cycle including the managed enterprise products. Place an order including at least one of the managed enterprise products.
As an admin
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