Class: Spree::Admin::CustomerReturnsController

Inherits:
ResourceController show all
Defined in:
app/controllers/spree/admin/customer_returns_controller.rb

Instance Method Summary collapse

Methods inherited from ResourceController

belongs_to, #create, #destroy, #new, #update, #update_positions

Methods included from SetsUserLanguageLocaleKey

#set_user_language_locale_key

Instance Method Details

#editObject



15
16
17
18
19
20
21
22
23
# File 'app/controllers/spree/admin/customer_returns_controller.rb', line 15

def edit
  @pending_return_items = @customer_return.return_items.select(&:pending?)
  @accepted_return_items = @customer_return.return_items.select(&:accepted?)
  @rejected_return_items = @customer_return.return_items.select(&:rejected?)
  @manual_intervention_return_items = @customer_return.return_items.select(&:manual_intervention_required?)
  @pending_reimbursements = @customer_return.reimbursements.select(&:pending?)

  super
end