You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This update displays the "Damaged" and "Attention Needed" badges for parts with this status. This badge is specifically displayed in the drop-down menu within the stock allocation in Build Orders or Sales Orders. Only these two badges are displayed, any other statuses such as "OK" are not. The badge is gated by an opt-in flag so it appears only in these allocation dropdowns and does not leak into other stock-item dropdowns.
Why was this PR needed?
People allocating stock within these order forms needed to know if the stock needed attention or was damaged.
1 paths audited Performance: 92 (no change from production) Accessibility: 82 (no change from production) Best Practices: 100 (no change from production) SEO: 78 (no change from production) PWA: - View the detailed breakdown and full score reports
Hi @SchrodingersGat, this is my first contribution to InvenTree. I fixed #10769 by displaying “Damaged” and “Attention Needed” stock status badges in the Build Order and Sales Order allocation dropdowns. Would appreciate a review when you have time. Thank you!
@SchrodingersGat Thank you for your feedback and my apologies for the delay. So to clarify, when you say display the stock status all the time, do you mean to display every other status, such as "Ok" and "Returned", as well? Or do you mean to eliminate the checks in BuildForms and SalesOrderForms and display the stock status everywhere that RenderStockItem is used?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This update displays the "Damaged" and "Attention Needed" badges for parts with this status. This badge is specifically displayed in the drop-down menu within the stock allocation in Build Orders or Sales Orders. Only these two badges are displayed, any other statuses such as "OK" are not. The badge is gated by an opt-in flag so it appears only in these allocation dropdowns and does not leak into other stock-item dropdowns.
Why was this PR needed?
People allocating stock within these order forms needed to know if the stock needed attention or was damaged.
What are the relevant issue numbers?
Closes #10769
Screenshots / Recordings (if applicable)
Build Order allocation dropdown displays "Damaged" and "Attention Needed" badges
Build Order allocation dropdown does not display other status badges
Sales Order allocation dropdown displays "Damaged" and "Attention Needed" badges
Sales Order allocation dropdown does not display other status badges
Does this PR meet the acceptance criteria?