Make sure to associate newly built inventory units to their order
Fixes #5088
Add return item eligibility validator and associated state machine updates. Add a column to persist state transition errors
Fixes #5089

Conflicts:
	core/app/models/spree/return_item.rb
Fix syntax error.