Verify the value of the variable configuration check-available-stock

Verify the value of the variable configuration check-available-stock before throwing an exception "Not enough stock" in Order actions.