solidus

https://github.com/solidusio/solidus

Ruby

🛒 Solidus, the open-source eCommerce framework for industry trailblazers.

Spree::ReturnItem#belongs_to_same_customer_order

This logic is also present in the customer return. The reason for the
duplication and not having a validates_associated on the customer_return
is that it would lead to duplicate error messages for the customer return.
Not specifying a stock location for example would add an error message about
the mandatory field when validating the customer return and again when saving
the associated return items.

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/app/models/spree/return_item.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--ReturnItem-belongs_to_same_customer_order-for-pr


# Commit to git

git add core/app/models/spree/return_item.rbgit commit -m "better docs for Spree::ReturnItem#belongs_to_same_customer_order"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Spree--ReturnItem-belongs_to_same_customer_order-for-pr

hub pull-request


# Celebrate!