Sha256: 3025629c053dc4cdc76c8b00382314861c9ba3bb364bc32ba3f5c9dbb1ecf6a6

Contents?: true

Size: 561 Bytes

Versions: 34

Compression:

Stored size: 561 Bytes

Contents

module Workarea
  module Metrics
    class SkuByDay
      include ByDay

      field :sku, type: String
      field :orders, 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 :discounts, type: Float, default: 0.0
      field :tax, type: Float, default: 0.0
      field :revenue, type: Float, default: 0.0

      index(reporting_on: 1, orders: 1)
      index(reporting_on: 1, units_sold: 1)
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
workarea-core-3.4.45 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.44 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.43 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.42 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.41 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.40 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.39 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.38 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.37 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.36 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.35 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.34 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.33 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.32 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.31 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.30 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.29 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.28 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.27 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.4.26 app/models/workarea/metrics/sku_by_day.rb