# Calculate BOM cost?

**URL:** https://discuss.tryton.org/t/calculate-bom-cost/2857
**Category:** User
**Created:** [June 11, 2020, 12:17pm UTC](https://discuss.tryton.org/t/calculate-bom-cost/2857 "2020-06-11T12:17:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![hdt551](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@hdt551](https://discuss.tryton.org/u/hdt551)
#### Post date: [June 11, 2020, 12:17pm UTC](https://discuss.tryton.org/t/calculate-bom-cost/2857/1 "2020-06-11T12:17:17Z")

</div>

Is there a way to calculate the total cost of a BOM, maybe from the Product/Variants General tab ,Cost Price?

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [June 12, 2020, 8:20am UTC](https://discuss.tryton.org/t/calculate-bom-cost/2857/2 "2020-06-12T08:20:00Z")

</div>

There is a relate button on the variant to show the BOM Tree. This includes the list of components and quantites to produce a product but it does not include the cost price.

Do you think it makes sense to include the cost of each compnenet by it’s quantity and the total cost of the production there?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [June 12, 2020, 8:32am UTC](https://discuss.tryton.org/t/calculate-bom-cost/2857/3 "2020-06-12T08:32:26Z")

</div>

But this will not necessary give the cost of the product because:

- there could be multiple outputs
- it is missing the routing cost

Also the cost price of a production is not necessary linear (not supported in base but designed to allow such customization) so it may not be reduced to a single value.

---

<div class="post-metadata">

### Author: ![hdt551](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@hdt551](https://discuss.tryton.org/u/hdt551)
#### Post date: [June 12, 2020, 11:21am UTC](https://discuss.tryton.org/t/calculate-bom-cost/2857/4 "2020-06-12T11:21:58Z")

</div>

I thought maybe there was a way and I was not seeing how it was done but I guess that is not so.

Thank you for the information.

---

<div class="post-metadata">

### Author: ![josesalvador](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/josesalvador/32/602_2.png) [@josesalvador](https://discuss.tryton.org/u/josesalvador)
#### Post date: [June 12, 2020, 11:55am UTC](https://discuss.tryton.org/t/calculate-bom-cost/2857/5 "2020-06-12T11:55:06Z")

</div>

> [@ced](#):
>
> But this will not necessary give the cost of the product because:
> 
> - there could be multiple outputs
> - it is missing the routing cost
> 
> Also the cost price of a production is not necessary linear (not supported in base but designed to allow such customization) so it may not be reduced to a single value.

Right but perhaps it is still a good idea to implement something like @pokoli says so user can see the ‘raw’ cost of the materials/components (not production, of course) just for user can query that info, don’t you?

---

<div class="post-metadata">

### Author: ![albert](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/albert/32/21_2.png) [@albert](https://discuss.tryton.org/u/albert)
#### Post date: [June 12, 2020, 2:46pm UTC](https://discuss.tryton.org/t/calculate-bom-cost/2857/6 "2020-06-12T14:46:13Z")

</div>

You might be interested in the product\_cost\_plan modules:

> **[NaN-tic](https://github.com/NaN-tic?q=product_cost_plan&type=&language=)**
>
> NaN-tic has 1253 repositories available. Follow their code on GitHub.

Which allows you to compute the cost taking into account materials and routing costs (product\_cost\_plan\_operation). The product\_cost\_plan\_margin module allows you to apply different % on materials, operations and other concepts to compute a sale price.

Also they allow you to compute the cost of potential BOMs, that is, even if you don’t have input products created, which is useful to compute the sale price of a product that requires custom bom and processes.

Note, however that product\_cost\_plan\_operation depends on the operation modules developed by NaN-tic which predate the ones in core and thus have some differences.

---

<div class="post-metadata">

### Author: ![SISalp](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/sisalp/32/200_2.png) [@SISalp](https://discuss.tryton.org/u/SISalp)
#### Post date: [June 12, 2020, 5:21pm UTC](https://discuss.tryton.org/t/calculate-bom-cost/2857/7 "2020-06-12T17:21:19Z")

</div>

I agree. A useful number is the estimated cost by typical quantities : for ex: By 10, By 100 etc…

---

<div class="post-metadata">

### Author: ![hdt551](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@hdt551](https://discuss.tryton.org/u/hdt551)
#### Post date: [June 12, 2020, 7:45pm UTC](https://discuss.tryton.org/t/calculate-bom-cost/2857/8 "2020-06-12T19:45:06Z")

</div>

> [@albert](#):
>
> You might be interested in the product\_cost\_plan modules:
> 
> [NaN-tic · GitHub](https://github.com/NaN-tic?q=product_cost_plan&type=&language=)

I will check it out.

Thank you for the suggestion.
