inventory service: fixed syntax to access available quantities
updated version