spree/spree — pull request #5788 by richardnuno (2014-12-16 14:14:38+00:00)
Title: Improve default return eligibility rules

Verifies that a return item’s inventory unit is in a shipped state and that there are no other reimbursements already associated with the inventory unit.

`process_inventory_unit!` is now called after calling `attempt_accept` as we wouldn’t want to process the inventory unit if it’s not accepted.