tweaked inventory table style
moved gen_order() over to InventoryItem so values are validated from the model instances, and to reduce lookups in views
added order generation functionality