CheckInventory Function in new.php

Hi,

I have problem in Fee Sheet when I add medicine, it doesn’t allow to issue quantities have more than one batch. e.g. I have two batches batch xyz have 20 qty expiring in 2019 and batch abc has 15 quantity expiring in 2020.So i am not able to issue 25 quantity and pops message insufficient quantity.

I am new to PHP. I was just looking C:\xampp\htdocs\openemr\interface\forms\fee_sheet/new.php. There is checkinventory function called. I ma not where this function is written.

Can some body help me

Saif