# Validity on purchase pricing

**URL:** <https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969>\
**Category:** PM modules\
**Created:** [February 3, 2026, 12:37pm UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969 "2026-02-03T12:37:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![swalen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/9fc348/32.png) [@swalen](https://www.dolibarr.org/forum/u/swalen)\
**Post date:** [February 3, 2026, 12:37pm UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969/1 "2026-02-03T12:37:11Z")

</div>

Hello all,

Would like to know if something like this exists. I want to put a valid until on my buying prices. We receive new pricelist every 3 months from our suppliers. When the valid until date is expired i would like to get a pop-up that we need to check pricing.

Is something like this possible?

Regards,  
Sebastiaan

---

<div class="post-metadata">

**Author:** ![Kim\_KW1975](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/k/46a35a/32.png) [@Kim\_KW1975](https://www.dolibarr.org/forum/u/Kim_KW1975)\
**Post date:** [February 3, 2026, 6:44pm UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969/2 "2026-02-03T18:44:41Z")

</div>

Hi Sebastiaan,

you could add an Extra field in the products → Additional Attributes (Supplier Prices) section to enter the valid until date.

 ![grafik](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/1/198f8dbd66aaecd479d9e356a5273e5a50f09edd.png)

as soon as the filed is there you can easily create a query to get lists, pop-ups…

Regards,  
Kim

---

<div class="post-metadata">

**Author:** ![swalen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/9fc348/32.png) [@swalen](https://www.dolibarr.org/forum/u/swalen)\
**Post date:** [February 3, 2026, 8:10pm UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969/3 "2026-02-03T20:10:37Z")

</div>

Hi Kim,

Thanks for this info. I have created to extra field. Can you help me out setting up a pop-up on the moment you select a product but the price is not valid anymore.

I’m fairly new to Dolibarr so i don’t have a clue how to do this.

Thanks,

Sebastiaan

---

<div class="post-metadata">

**Author:** ![Kim\_KW1975](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/k/46a35a/32.png) [@Kim\_KW1975](https://www.dolibarr.org/forum/u/Kim_KW1975)\
**Post date:** [February 3, 2026, 8:22pm UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969/4 "2026-02-03T20:22:36Z")

</div>

Hi Sebastiaan,  
a pup-up is not in the standard of Dolibarr.  
Besides that I think you need some more “clever” way for this. Just imagine you will have  
200 articles expireing the same day → 200 pop-ups?  
I guess one per supplier or one per “list” would be good.  
Just send me a PM and we’ll have a chat to find the most suitable soltuion.

Speak to you,  
Kim

---

<div class="post-metadata">

**Author:** ![mgribaudo](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/mgribaudo/32/3096_2.png) [@mgribaudo](https://www.dolibarr.org/forum/u/mgribaudo)\
**Post date:** [March 11, 2026, 9:35am UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969/5 "2026-03-11T09:35:06Z")

</div>

Hi Kim,  
The only way “I think” you could achieve your goal (for example, displaying expired products in a different color) is to create a custom module and use one of the many [hooks Dolibarr provides](https://wiki.dolibarr.org/index.php/Hooks_system).  
But this requires programming expertise.

---

<div class="post-metadata">

**Author:** ![Kim\_KW1975](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/k/46a35a/32.png) [@Kim\_KW1975](https://www.dolibarr.org/forum/u/Kim_KW1975)\
**Post date:** [March 11, 2026, 10:30am UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969/6 "2026-03-11T10:30:57Z")

</div>

Thank you @mgribaudo,

I would have couple ideas to solve it but “pop up window” per product I don’t see as a good solution.

I know about the hooks and such a module can be quickly done. Sebastiaan need to tell what exactly he like to have.

Thanks anyways for the hints.

---

<div class="post-metadata">

**Author:** ![swalen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/9fc348/32.png) [@swalen](https://www.dolibarr.org/forum/u/swalen)\
**Post date:** [March 11, 2026, 10:46am UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969/7 "2026-03-11T10:46:38Z")

</div>

Hi Guys, i have build a custom module that checks the validity of the price as soon as i add a product to a quotation / order. When the price is expired i’ll get a pop-up telling me the price is expired and i’m unable to add the product untill i updated the price.

So topic can be closed, but thanks anyway for your suggestions and tips!

---

<div class="post-metadata">

**Author:** ![mgribaudo](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/mgribaudo/32/3096_2.png) [@mgribaudo](https://www.dolibarr.org/forum/u/mgribaudo)\
**Post date:** [March 11, 2026, 10:47am UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969/8 "2026-03-11T10:47:36Z")

</div>

You’re right, I was in a hurry to reply to you, but I actually meant to address Sebastian.  
Sorry for the oversight 🙂

---

<div class="post-metadata">

**Author:** ![Kim\_KW1975](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/k/46a35a/32.png) [@Kim\_KW1975](https://www.dolibarr.org/forum/u/Kim_KW1975)\
**Post date:** [March 11, 2026, 8:08pm UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969/9 "2026-03-11T20:08:58Z")

</div>

your input is appreciated anyway. Thank you!

---

<div class="post-metadata">

**Author:** ![saikatkoley](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/saikatkoley/32/8716_2.png) [@saikatkoley](https://www.dolibarr.org/forum/u/saikatkoley)\
**Post date:** [March 12, 2026, 4:15pm UTC](https://www.dolibarr.org/forum/t/validity-on-purchase-pricing/30969/10 "2026-03-12T16:15:49Z")

</div>

> [@swalen](#):
>
> Would like to know if something like this exists. I want to put a valid until on my buying prices. We receive new pricelist every 3 months from our suppliers. When the valid until date is expired i would like to get a pop-up that we need to check pricing.
> 
> Is something like this possible?

Hi @swalen, as @Kim_KW1975 said, create an extra field on the supplier price, then use hooks to write some code there (IF valid\_until \< today  
THEN show a warning pop-up) , so it’s easy to check the validity date, and it will show a pop-up on your screen. It will be better to do this by developing a custom module, particularly for the hook.

**Thanks & Regards  
Saikat Koley  
Software Developer(Dolibarr)  
Call/WhatsApp : +919903256573  
Email : [saikatkoley@hotmail.com](mailto:saikatkoley@hotmail.com)  
 [https://www.linkedin.com/in/saikatkoley/](https://www.linkedin.com/in/saikatkoley/)**
