-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[RFC] New stock management #2862
Conversation
Thanks @tvdeyen . I agree we need a UX/UI person opinion but in the meantime I personally think it's better than what we have now. |
6356e06
to
b4a5ba7
Compare
Thanks @kennyadsl I think so as well. |
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.
Tons of room for improvement on this part of the admin, but this is a huge step in the right direction!
b4a5ba7
to
38d34b5
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.
I like this a lot!
@tvdeyen the changes looks good. Definitely better than the current view. But, I'm not sure we should allow the user just update the stock. I think will be better keep a record about why the stock change, maybe generating a stock movement, that way is more easy track an error when occurred. |
@ccarruitero thanks for the feedback.
This PR does not make any changes to our current stock API at all. It behaves exactly like before. It's only UI. The only difference is that instead of passing the |
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.
Thanks @tvdeyen !
The both stylesheets treat the same table.
If no stock location is selected in the variant search forms stock location select we display all stock locations.
Nest the stock location stock items into the stock management table. Previous we misused the rowspan table attribute that led to broken table layouts if shop is having multiple stock locations.
1. Fixes add stock item validation. Since we use native selects instead of select2 for most of our selects, this feature was broken. 2. Clarify what the purpose of add stock item select actually is 3. Update the behavior to reflect the changes we made to the edit stock item view.
38d34b5
to
a47f881
Compare
I updated the PR in that you are not able to create negative stock via UI. This is prevented in the API already, but I call this better UX if we check that already in the UI. |
Agreed, I like to have the UI handle those edge cases before a server call is made when possible. Good change! |
The current stock management view had some flaws:
This view could definitely be improved even more, but for now I am proposing to make these
smallchanges.Update stock
Propagate stock to location not fulfilling the variant yet
Closes #2857 #2028 #2530