Insufficient inventory Problem?

haovn577 wrote on Thursday, June 28, 2012:

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

sunsetsystems wrote on Thursday, June 28, 2012:

When you sell a product via the Fee Sheet, it’s taken from inventory.  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