modified stock count to use appConfig facility instead of facility.getCurrentFacility