Skip to content

Comments

Add Price and Extended price to Project Bom#1221

Open
whinis wants to merge 1 commit intoPart-DB:masterfrom
whinis:add-bom-price
Open

Add Price and Extended price to Project Bom#1221
whinis wants to merge 1 commit intoPart-DB:masterfrom
whinis:add-bom-price

Conversation

@whinis
Copy link

@whinis whinis commented Feb 2, 2026

This seems to be one of the most requested changes and I also needed this particular feature.
requested in #603 and others in discussion. So this allows one to see the price of each item in the bom if it exists in any way. It currently selects just the first supplier and the first (likely most expensive) unit price for the part.

@whinis whinis force-pushed the add-bom-price branch 4 times, most recently from 166bcb5 to 35262a2 Compare February 4, 2026 04:08
@jbtronics
Copy link
Member

Thanks,

The PricedetailHelper has an calculateAvg() price to calculate an average price across all suppliers, it also handles currency conversions correctly.
Also you should use the correct Intl Number Formatter to get the correctly formatted price for users locale. The currency symbol should be included, to mark which currency this is.

Unfortunatley the whole price infrastructure in Part-DB is quite limited and ideally would need some heavy rewrites, with some more powerful functions to make things like this easier...

@mkne mkne mentioned this pull request Feb 19, 2026
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

Successfully merging this pull request may close these issues.

2 participants