Repository navigation
Supplier Part Updates - #11303
Supplier Part Updates#11303
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…venTree into default-supplier-part
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #11303 +/- ##
==========================================
- Coverage 87.99% 87.98% -0.01%
==========================================
Files 1292 1295 +3
Lines 58720 58755 +35
Branches 1943 1943
==========================================
+ Hits 51668 51696 +28
- Misses 6568 6575 +7
Partials 484 484
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Merging this PR will improve performance by 22.72%
|

Currently the "primary" supplier part for a given "part" is specified on the Part model itself, which is contrary to the data pattern we use for other tables, which keeps them "self contained".
This PR does the following:
primaryfield to theSupplierPartmodeldefault_supplierinfo fromPartmodel to the new fielddefault_supplierfield from thePartmodelAnd also:
This means that we get better filtering for "primary" supplier parts, and more self-contained database tables
Important Note
The
default_supplierfield is not currently used for any business logic in the applicationTODO