Sha256: 5eadeab61a87114182f3c4491cb74306203db25f051c867e6fd60dc8b8db2d08

Contents?: true

Size: 896 Bytes

Versions: 28

Compression:

Stored size: 896 Bytes

Contents

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.27 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.26 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.25 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.23 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.22 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.21 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.20 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.19 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.18 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.17 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.16 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.15 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.14 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.13 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.12 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.11 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.10 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.9 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.8 app/models/workarea/metrics/sales_by_day.rb
workarea-core-3.5.7 app/models/workarea/metrics/sales_by_day.rb