minor logic fix.
Merge pull request #532 from jofomah/bug/editable-disabled-stock-count

minor logic fix.