diff --git a/app/controllers/spree/admin/reports_controller_decorator.rb b/app/controllers/spree/admin/reports_controller_decorator.rb index 2c0b0180ea..b1f229038d 100644 --- a/app/controllers/spree/admin/reports_controller_decorator.rb +++ b/app/controllers/spree/admin/reports_controller_decorator.rb @@ -526,7 +526,7 @@ Spree::Admin::ReportsController.class_eval do @include_blank = 'All' header = ["Hub", "Customer", "Email", "Phone", "Producer", "Product", "Variant", "Amount", "Item (#{currency_symbol})", "Item + Fees (#{currency_symbol})", "Admin & Handling (#{currency_symbol})", "Ship (#{currency_symbol})", "Total (#{currency_symbol})", "Paid?", - "Shipping", "Delivery?", "Ship street", "Ship street 2", "Ship city", "Ship postcode", "Ship state", "Order notes"] + "Shipping", "Delivery?", "Ship street", "Ship street 2", "Ship city", "Ship postcode", "Ship state", "Order notes", "SKU"] rsa = proc { |line_items| line_items.first.order.shipping_method.andand.require_ship_address } @@ -553,7 +553,8 @@ Spree::Admin::ReportsController.class_eval do proc { |line_items| line_items.first.order.ship_address.andand.zipcode if rsa.call(line_items) }, proc { |line_items| line_items.first.order.ship_address.andand.state if rsa.call(line_items) }, - proc { |line_items| line_items.first.order.special_instructions }] + proc { |line_items| line_items.first.order.special_instructions } , + proc { |line_items| line_items.first.variant.product.sku } ] rules = [ { group_by: proc { |line_item| line_item.order.distributor }, sort_by: proc { |distributor| distributor.name } }, @@ -582,6 +583,7 @@ Spree::Admin::ReportsController.class_eval do proc { |line_items| "" }, proc { |line_items| "" }, + proc { |line_items| "" }, proc { |line_items| "" } ] }, { group_by: proc { |line_item| line_item.variant.product },