Assembly cogs errors

Fixes errors when trying to post invoices with assemblies.