Sha256: f52eb34b79e8ada4655716a29b8488a6fa8115dc6801c2b79f4b0dbb18fa3872

Contents?: true

Size: 711 Bytes

Versions: 28

Compression:

Stored size: 711 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
      field :units_canceled, type: Integer, default: 0
      field :refund, type: Float, default: 0.0

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.6 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.5.5 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.5.4 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.5.3 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.5.2 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.5.1 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.5.0 app/models/workarea/metrics/sku_by_day.rb
workarea-core-3.5.0.beta.1 app/models/workarea/metrics/sku_by_day.rb