Altering invoice.allocated type to match invoice.qty

This should avoid some odd COGS issues.