Merge pull request #13 from ledgersmb/master

bringing this up to date
Adding master branch bit

--HG--
branch : master
Fixed COGS qty/allocated type mismatch

--HG--
branch : master
Merge pull request #103 from einhverfr/master

Altering invoice.allocated type to match invoice.qty