Skip to content
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]Merge the additional BoM item lines if having matching name with a connector in the cable #166

Closed
martonmiklos opened this issue Sep 11, 2020 · 4 comments

Comments

@martonmiklos
Copy link
Contributor

martonmiklos commented Sep 11, 2020

Hi folks!

Recently I created a cable documentation for a contract manufacturer where I faced with the following issue:

One end of the cable needed to be equipped with crimps only, without connector installed and they need to bundle one connector to each cable assembly, so it adds that the connector should be added to the BoM.

The other end of the cable is equipped with the same connector, so one item from that connector is already added to the BoM.

It is straightforward to add this extra connector manually to the additional BoM items however the lines does not get merged to the connector in the cable even if they have the exactly same name:
kép

I could imagine two solutions for this problem:
A) Sixup the BoM generation to merge the identical lines
B) Introduce some syntax to being able to referring to connectors from the additional BoM items

I would support the A solution due to it's simplicity. B variant I think just would add some more complexity which might not make a lot of sense.

If some decision is made on this I am glad to work on this issue.

@Tyler-Ward
Copy link
Contributor

Adding deduplication for the bom lines sounds sensible. I am working on adding the option for specifying additional components for a connector or cable in #115 which will add even more ways to creater duplicate BOM entries.

From a code standpoint there are several seperate deduplication steps in the bom generation code, The current implementation of the additional components sections add more as well, populating all items into a list and then deduplicating at the end might simplify this code as well.

@Tyler-Ward
Copy link
Contributor

Deduplication of BOM items was implemented as part of #115 which has now been merged into dev, this should cover your use case.

The following fields will need to match to be deduplicated.

  • Item
  • Unit
  • P/N
  • Manufacturer
  • Mpn

@kvid
Copy link
Collaborator

kvid commented Oct 31, 2020

@martonmiklos are you able to test the YAML input that caused the problem you describe using the current dev branch and check if your problem now is solved?

@martonmiklos
Copy link
Contributor Author

martonmiklos commented Nov 6, 2020

@kvid Thanks for the heads up, the dev does the merging correctly!

kép

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants