Subtract quantity sold from quantity available

Fixes #138
Merge pull request #139 from theodi/bugfix-138-ticket-count

Subtract quantity sold from quantity available