update stockaudit functions due to change in entity- Yunnie