module Workarea module Metrics class SalesByDay include ByDay field :orders, type: Integer, default: 0 field :returning_orders, type: Integer, default: 0 field :customers, type: Integer, default: 0 field :units_sold, type: Integer, default: 0 field :discounted_units_sold, type: Integer, default: 0 field :merchandise, type: Float, default: 0.0 field :shipping, type: Float, default: 0.0 field :discounts, type: Float, default: 0.0 field :tax, type: Float, default: 0.0 field :revenue, type: Float, default: 0.0 field :cancellations, type: Integer, default: 0 field :units_canceled, type: Integer, default: 0 field :refund, type: Float, default: 0.0 field :sessions, type: Integer, default: 0 index(reporting_on: 1, orders: 1) index(reporting_on: 1, cancellations: 1) end end end