# How to add costs to products

**URL:** <https://www.dolibarr.org/forum/t/how-to-add-costs-to-products/16819>\
**Category:** Using my Dolibarr\
**Created:** [August 12, 2018, 9:06pm UTC](https://www.dolibarr.org/forum/t/how-to-add-costs-to-products/16819 "2018-08-12T21:06:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![raed](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/r/ad7895/32.png) [@raed](https://www.dolibarr.org/forum/u/raed)\
**Post date:** [August 12, 2018, 9:06pm UTC](https://www.dolibarr.org/forum/t/how-to-add-costs-to-products/16819/1 "2018-08-12T21:06:41Z")

</div>

Hi,  
I have been facing a challenge of adding costs to procured products on FOB basis. Besides the supplier invoice, I pay Freight, custom duties, VAT and logistics costs which I cannot link to the product total cost to get an actual stock value.

I tried a turn around solution as follows: (Example on duties)

1. Create a supplier called “custom duties”
2. Issue a PO with the product under duties, quantity = 1 and price = duties value.
3. I receive the virtual product at the warehouse. (now the weighted average price at warehouse is correct)
4. I do stock correction and deduct the quantity “1”.
5. Now I have a correct stock and value.

Of course, there must be a more professional and straight forward way. If anyone could help, I would appreciate it.

Thanks

---

<div class="post-metadata">

**Author:** ![aljawaid](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/aljawaid/32/388_2.png) [@aljawaid](https://www.dolibarr.org/forum/u/aljawaid)\
**Post date:** [August 13, 2018, 8:33am UTC](https://www.dolibarr.org/forum/t/how-to-add-costs-to-products/16819/2 "2018-08-13T08:33:24Z")

</div>

What version?

There is a charges field in products which lets you add extra charges for that product.

[code]  
PRODUCT\_CHARGES =\> Adds an extra field for adhoc charges at the product buying price stage. The Cost price is then calculated with supplier price + charges if defined. Useful for extra costs for a product or certain delivery charges to the product. [/code

---

<div class="post-metadata">

**Author:** ![ZOG](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/z/8491ac/32.png) [@ZOG](https://www.dolibarr.org/forum/u/ZOG)\
**Post date:** [December 17, 2018, 5:09pm UTC](https://www.dolibarr.org/forum/t/how-to-add-costs-to-products/16819/3 "2018-12-17T17:09:23Z")

</div>

HI,

I’m using 8.0.2, I can’t find this PRODUCT\_CHARGES field in products. Does it require particular action?

Thank you.

---

<div class="post-metadata">

**Author:** ![kotrotsios](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/k/8491ac/32.png) [@kotrotsios](https://www.dolibarr.org/forum/u/kotrotsios)\
**Post date:** [March 20, 2019, 10:34am UTC](https://www.dolibarr.org/forum/t/how-to-add-costs-to-products/16819/4 "2019-03-20T10:34:43Z")

</div>

Hi. An news about it? I have version 8 and that variable is not working.

---

<div class="post-metadata">

**Author:** ![ejudsierra](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/e/49beb7/32.png) [@ejudsierra](https://www.dolibarr.org/forum/u/ejudsierra)\
**Post date:** [April 23, 2020, 10:36am UTC](https://www.dolibarr.org/forum/t/how-to-add-costs-to-products/16819/5 "2020-04-23T10:36:08Z")

</div>

Hello.  
We have the same problem. When we buy a product, we sometimes have additional cost, such as shipping or customs duties. Is it possible to add it to the purchasing price of a product? I have tried PRODUCT\_CHARGES, with values none/0/1, but I don’t see an extra field coming up in the product card (purchasing price).  
Please help if possible. 🙂

---

<div class="post-metadata">

**Author:** ![Hanyha](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hanyha](https://www.dolibarr.org/forum/u/Hanyha)\
**Post date:** [March 12, 2022, 9:00am UTC](https://www.dolibarr.org/forum/t/how-to-add-costs-to-products/16819/6 "2022-03-12T09:00:45Z")

</div>

Hello,

I have the same issue , and also if I want to divide the extra charges depend on the items quantity or item cost or items volumes is this option available in dolibarr

---

<div class="post-metadata">

**Author:** ![Niwar](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@Niwar](https://www.dolibarr.org/forum/u/Niwar)\
**Post date:** [April 5, 2022, 4:59pm UTC](https://www.dolibarr.org/forum/t/how-to-add-costs-to-products/16819/7 "2022-04-05T16:59:31Z")

</div>

Please check this post:

> [@Product purchase and sale price](https://www.dolibarr.org/forum/t/product-purchase-and-sale-price/22019):
>
> Hi, How can I put a percentage on the purchase price and make it available in the sale price? Ex. “product x” purchase value U$D 100.00 and I have to put a percentage of 15% (freight expenses/commission, etc) on the U$D 100.00 and U$D 115.00 appears as the sale price. Thanks

BTW, I haven’t tried PRODUCT\_CHARGES. I’m using ver 14. I will check if that would work.

---

<div class="post-metadata">

**Author:** ![Peterromao](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/p/e0b2c6/32.png) [@Peterromao](https://www.dolibarr.org/forum/u/Peterromao)\
**Post date:** [August 9, 2022, 2:32pm UTC](https://www.dolibarr.org/forum/t/how-to-add-costs-to-products/16819/8 "2022-08-09T14:32:19Z")

</div>

The field comes up though it doesn’t seem to do anything. Look just above Vendor description when you open Vendor prices.
