-
-
Notifications
You must be signed in to change notification settings - Fork 790
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
Adds "active" field for Company model #7024
Adds "active" field for Company model #7024
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7024 +/- ##
==========================================
+ Coverage 83.17% 83.24% +0.06%
==========================================
Files 1039 1038 -1
Lines 45515 45493 -22
Branches 1254 1244 -10
==========================================
+ Hits 37857 37870 +13
+ Misses 7405 7376 -29
+ Partials 253 247 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
- Add "inactive" badge to SupplierPart page - Update SupplierPartTable - Update backend API fields
- Also some refactoring
- Only override initialValues for specified fields
- Default values were overriding initial data
* Add "currency" to CompanyBriefSerializer * Fix nav.js bug - potential illegal chars in panel name * Update CUI tables * Update PUI tables * Bump API version
@matmair having some issues with the playwright tests here - it gets most of the way through but the "submit" button in one of the modal forms does not activate, even if I change the value of a field in the form. Any ideas here? I think this was one of the tests you added just recently so presumably it does work... |
This PR adds the the ability to disable individual companies by setting an "active" flag for companies (suppliers / manufacturers / customers) allowing them to be disabled by the user.
Additionally, adds an "active" field to the SupplierPart model - so that a particular SupplierPart instance can be marked as disabled, but not removed from the database - for the purpose of retaining historical purchase order information.
TODO
supplier__active
manufacturer__active