How to set inventory condition