Allow for non-integer stock quantities

It looks like a3b522aff87dc89c37dd4b6bbb85a9b208ffe15a removed this
ability.
This would be very useful for extensions like Measurement Price
Calculator.
Merge pull request #6559 from tamarazuk/non-integer-stock

Allow for non-integer stock quantities