diff --git a/backend/app/controllers/spree/admin/customer_returns_controller.rb b/backend/app/controllers/spree/admin/customer_returns_controller.rb index 294281292bf..2d9e90a8bb6 100644 --- a/backend/app/controllers/spree/admin/customer_returns_controller.rb +++ b/backend/app/controllers/spree/admin/customer_returns_controller.rb @@ -1,6 +1,8 @@ module Spree module Admin class CustomerReturnsController < ResourceController + helper 'spree/admin/reimbursements' + helper 'spree/admin/reimbursement_type' belongs_to 'spree/order', find_by: :number before_action :parent # ensure order gets loaded to support our pseudo parent-child relationship diff --git a/backend/app/controllers/spree/admin/reimbursements_controller.rb b/backend/app/controllers/spree/admin/reimbursements_controller.rb index 6a1b5211d25..24896a1b6fa 100644 --- a/backend/app/controllers/spree/admin/reimbursements_controller.rb +++ b/backend/app/controllers/spree/admin/reimbursements_controller.rb @@ -1,6 +1,8 @@ module Spree module Admin class ReimbursementsController < ResourceController + helper 'spree/admin/reimbursement_type' + helper 'spree/admin/customer_returns' belongs_to 'spree/order', find_by: :number before_action :load_stock_locations, only: :edit