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
Currently, a "Part" must be linked to a "SupplierPart" to be purchaseable, or be linked to data such as "manufacturer" / "supplier" etc.
This creates some unnecessary duplication for any Part where there is only one concrete SupplierPart reference. In such as case, the relationship:
Part <- SupplierPart is moot, it could simple be Part - *if the Part object could link to a Supplier, MPN, etc.
Proposal
Remove the "SupplierPart" model entirely
The "Part" model gets the following additional fields:
Supplier (Company)
SKU
MPN
price
The "Part" model becomes a tree-style model, with "child" parts that are more "refined" versions of the part above them.
For example, a part could be "10K_0805" (not "fully defined") but it has two child parts which point to concrete 10K_0805 resistors from various manufacturers.
Or, a Part could be a fully-defined resistor with complete link to MPN / SKU / etc
One advantage of such an approach is that a BOM could specify the top-level part (e.g. "10K_0805") to mean "It does not particularly matter which 10K 0805 resistor is used here, as long as it is found underneath this generic part".
Alternatively, a BOM can specify a "concrete" (fully defined) part.
I think this is the proper way to handle this. Passives are a great example of not caring about the endless SKU adaptations, but merely that it's a "10K_0805."
Should be a straightforward change to the current db, right? Just take existing SupplierPart entries and change them to the proposed "child" format, then add them as children to the appropriate Part entries.
I am very interested in this feature. I switched 1206 blue leds recently. In all my builds I had to update to be the new part#. Would be amazing if you could link criteria like 1206, BLUE, 10˚, 20mA. and have it point to all matching parts.
Activity
maholli commentedon Apr 4, 2020
I think this is the proper way to handle this. Passives are a great example of not caring about the endless SKU adaptations, but merely that it's a "10K_0805."
Should be a straightforward change to the current db, right? Just take existing SupplierPart entries and change them to the proposed "child" format, then add them as children to the appropriate Part entries.
a7hybnj2 commentedon Apr 13, 2020
I am very interested in this feature. I switched 1206 blue leds recently. In all my builds I had to update to be the new part#. Would be amazing if you could link criteria like 1206, BLUE, 10˚, 20mA. and have it point to all matching parts.