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

Use of the correct helper to check available stock