# Insufficient inventory Problem?

**URL:** <https://community.open-emr.org/t/insufficient-inventory-problem/6682>\
**Category:** OpenEMR Development\
**Created:** [June 28, 2012, 8:43am UTC](https://community.open-emr.org/t/insufficient-inventory-problem/6682 "2012-06-28T08:43:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 28, 2012, 8:43am UTC](https://community.open-emr.org/t/insufficient-inventory-problem/6682/1 "2012-06-28T08:43:27Z")

</div>

**[haovn577](https://sourceforge.net/u/haovn577/)** wrote on [Thursday, June 28, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/9f56439f/#0adb):

Hi all,

when I use Fee Sheet, choose product (drug) to billing, but have a\*\* notification is Insufficient inventory for product ID\*\* “1” when I click save!

Pleases help me find this problem.  
Thanks,  
Hao Tran

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 28, 2012, 3:38pm UTC](https://community.open-emr.org/t/insufficient-inventory-problem/6682/2 "2012-06-28T15:38:28Z")

</div>

**[sunsetsystems](https://sourceforge.net/u/sunsetsystems/)** wrote on [Thursday, June 28, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/9f56439f/#c6eb):

When you sell a product via the Fee Sheet, it’s taken from inventory.&nbsp; If you don’t have enough in inventory, or if what’s needed is expired, or must be taken from multiple lots but that is not allowed, then you will get this message.

See the sellDrug() function in interface/drugs/drugs.inc.php for the relevant logic.

Rod  
[www.sunsetsystems.com](http://www.sunsetsystems.com)
